HDOJ 1095 A+B for Input-Output Practice (VII)

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

acm常见的输入输出类型,就是一种模板,花一点点时间背下来就可以了,

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

 

posted on 2013-05-02 09:53  wsxjbcy  阅读(145)  评论(0)    收藏  举报

导航