import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); BigInteger a=new BigInteger(sc.next()); BigInteger b=new BigInteger(sc.next()); System.out.println(a.gcd(b)); } }
0.0分
0 人评分
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:684 |
C语言程序设计教程(第三版)课后习题8.3 (Java代码)浏览:1373 |
C语言训练-字符串正反连接 (C语言代码)浏览:622 |
本人酷爱递归实现很多问题,这里也是浏览:557 |
C语言程序设计教程(第三版)课后习题8.8 (C语言代码)浏览:642 |
A+B for Input-Output Practice (VII) (C语言代码)浏览:528 |
A+B for Input-Output Practice (C语言代码)浏览:468 |
【亲和数】 (C语言代码)浏览:600 |
1124题解浏览:595 |
图形输出 (C语言代码)浏览:1387 |