My input is of 10^19 ;
How can i store this number.
int input ; // Of order 10^19;
int answer = input%(10^10+3)
How to perform above operations and what if i want to have an array
A[input][input] // showing me an error
My input is of 10^19 ;
How can i store this number.
int input ; // Of order 10^19;
int answer = input%(10^10+3)
How to perform above operations and what if i want to have an array
A[input][input] // showing me an error
Instead of int, declare it as long. Its maximum value is of 2^63-1
Check this: http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html