hdu1002
来源:互联网 发布:安装boost ubuntu 编辑:程序博客网 时间:2024/05/05 22:46
import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static void main(String args[]){
BigInteger a,b;
int t;
Scanner in = new Scanner(System.in);
t=in.nextInt();
for(int i = 1; i <= t; i++){
System.out.println("Case" + " " + i + ":");
a=in.nextBigInteger();
b=in.nextBigInteger();
if(i < t){
System.out.println(a + " + " + b + " = " + a.add(b) );
System.out.println();
} else {
System.out.println(a + " + " + b + " = " + a.add(b));
}
}
}
}
import java.util.Scanner;
public class Main {
public static void main(String args[]){
BigInteger a,b;
int t;
Scanner in = new Scanner(System.in);
t=in.nextInt();
for(int i = 1; i <= t; i++){
System.out.println("Case" + " " + i + ":");
a=in.nextBigInteger();
b=in.nextBigInteger();
if(i < t){
System.out.println(a + " + " + b + " = " + a.add(b) );
System.out.println();
} else {
System.out.println(a + " + " + b + " = " + a.add(b));
}
}
}
}
0 0
- hdu1002
- hdu1002
- hdu1002
- hdu1002
- HDU1002
- hdu1002
- hdu1002
- hdu1002
- hdu1002
- hdu1002
- hdu1002
- HDU1002
- hdu1002
- hdu1002
- hdu1002
- HDU1002
- HDU1002
- hdu1002
- 剑指offer系列之49:数组中重复的数字
- C++ 虚函数表解析
- java内存泄漏的定位与分析
- Category
- Opencl研究学习
- hdu1002
- 在浏览器中显示TXT 文本中的换行(html/txt)
- Android5.0通过Palette来动态决定UI色彩风格
- 网络:GET 与自设缓存方法
- 异或运算实现两个数的交换
- Socket编程之ServerSocketThread
- StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind java.ne
- ACM第二次练习—1003
- Java第六次实验要求