22166 多组输入a+b II
多组输入a+b II
https://ac.nowcoder.com/acm/problem/22166
#include<bits/stdc++.h> using namespace std; int main() { int n,i,a,b,c; cin>>n; for(i=1;i<=n;i++) { cin>>a>>b; c=a+b; cout<<c<<endl; } return 0; }
多组输入a+b II
https://ac.nowcoder.com/acm/problem/22166
#include<bits/stdc++.h> using namespace std; int main() { int n,i,a,b,c; cin>>n; for(i=1;i<=n;i++) { cin>>a>>b; c=a+b; cout<<c<<endl; } return 0; }
相关推荐