import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(sc.hasNext()){ BigInteger n = new BigInteger (sc.next()); BigInteger m =new BigInteger (sc.nextInt()+""); System.out.println( n.remainder(m)); } } }
0.0分
1 人评分
C二级辅导-求偶数和 (C语言代码)浏览:630 |
母牛的故事 (C语言代码)浏览:1300 |
矩阵乘法 (C++代码)浏览:1463 |
C语言训练-排序问题<1> (C语言代码)浏览:601 |
C语言程序设计教程(第三版)课后习题8.6 (C语言代码)浏览:600 |
求组合数 (C语言代码)浏览:1161 |
简单的a+b (C语言代码)浏览:633 |
数对 (C语言代码)浏览:703 |
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:589 |
C语言程序设计教程(第三版)课后习题9.10 (C语言代码)浏览:624 |