How to deal with large input?


#1

A : 71045970
B : 41535484
C : 64735492
Expected result is 20805472. My method returns -17412928.


#2

Use of long long INT helped me


#3

Thank you, it works. Though it sounds like a hack to me.


#4

Mine showed the following error.
error: prototype for does not match;
Where to use long long INT you are talking about?


#5

There is no data type in java as long long INT. Can you share more insights into it?


#6

Just use “long” type.


#7

What should we do in javascript for large values?