HDOJ 1089 A+B for Input-Output Practice (I)


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

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;
7     return 0;
8 }

 

 

posted on 2013-05-02 09:32  wsxjbcy  阅读(97)  评论(0编辑  收藏  举报

导航