摘要: 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 = ... 阅读全文
posted @ 2013-05-02 13:07 Sinker 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 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(); ... 阅读全文
posted @ 2013-05-02 13:01 Sinker 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 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() ) ... 阅读全文
posted @ 2013-05-02 00:58 Sinker 阅读(117) 评论(0) 推荐(0) 编辑