You are viewing a single comment's thread. Return to all comments →
using the BigInteger Class in java
Scanner in=new Scanner(System.in); int T=in.nextInt(); for(int i=0;i<T;i++){ BigInteger n=in.nextBigInteger(); System.out.println(n.multiply(n).mod(new BigInteger("1000000007")));
Seems like cookies are disabled on this browser, please enable them to open this website
Summing the N series
You are viewing a single comment's thread. Return to all comments →
using the BigInteger Class in java