摘要:
import java.math.*;import java.util.*;import java.io.*;public class Main { public static void main(String[] args) { Scanner cin = new Scanner(new BufferedInputStream(System.in)); BigInteger p,m,ans; int b; while ( cin.hasNext() ) { b = ... 阅读全文
摘要:
import java.math.*;import java.util.*;import java.io.*;public class Main { public static void main(String[] args) { Scanner cin = new Scanner(new BufferedInputStream(System.in)); BigInteger a,b,c,d; while ( cin.hasNext() ) { a = cin.nextBigInteger(); ... 阅读全文
摘要:
import java.math.*;import java.util.*;import java.io.*;public class Main { public static void main(String[] args) { Scanner cin = new Scanner(new BufferedInputStream(System.in)); BigInteger sum = BigInteger.valueOf(0); BigInteger curr; while ( cin.hasNext() ) ... 阅读全文