A + B Problem

http://acm.hdu.edu.cn/showproblem.php?pid=1000

   1 /*written by czk*/
   2 #include <stdio.h>
   3 
   4 int main() {
   5     int a, b;
   6     while(scanf("%d%d", &a, &b) != EOF)
   7         printf("%d\n", a+b);
   8 }

   1 //written by czk
   2 #include <iostream>
   3 using namespace std;
   4 
   5 int main() {
   6     int a, b;
   7     while(cin >> a >> b)
   8         cout << a+b << endl;
   9 }

hdu1000 (2008-06-01 13:44:23由czk编辑)

ch3n2k.com | Copyright (c) 2004-2020 czk.