import java.io.*; /** * a + b 直接打印,没啥好说的。 */ public class Main { public static BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); public static BufferedWriter out = new BufferedWriter(new OutputStreamWriter(System.out)); public static StreamTokenizer cin = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in))); public static PrintWriter cout = new PrintWriter(new OutputStreamWriter(System.out)); public static void main(String[] args) throws Exception { int a, b; while (cin.nextToken() != StreamTokenizer.TT_EOF) {// 注意这里检测输入结束的标志 a = (int) cin.nval; cin.nextToken(); b = (int) cin.nval; cout.println(a + b); } cout.flush(); } }
0.0分
0 人评分
矩阵乘法 (C++代码)浏览:1646 |
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:784 |
【亲和数】 (C语言代码)浏览:538 |
【排队买票】 (C语言代码)浏览:935 |
C语言程序设计教程(第三版)课后习题8.8 (C语言代码)浏览:1476 |
P1000 (C语言代码)浏览:897 |
C语言程序设计教程(第三版)课后习题10.3 (C语言代码)浏览:1962 |
Hello, world! (C语言代码)浏览:910 |
陈教主的三角形 (C语言代码)浏览:1186 |
C语言程序设计教程(第三版)课后习题5.6 (C语言代码)浏览:546 |