Code Chef:: FLOW001
#include <iostream>
using namespace std ;
int main(){
int t ;
cin >> t ;
int a[t] ;
int b[t] ;
for (int i = 0; i < t; ++i) {
cin >> a[i] >> b[i] ;
}
for (int i = 0; i < t; ++i) {
cout << a[i] + b[i] << '\n' ;
}
return 0 ;
}
#include <iostream>
using namespace std ;
int main(){
int t ;
cin >> t ;
int a[t] ;
int b[t] ;
for (int i = 0; i < t; ++i) {
cin >> a[i] >> b[i] ;
}
for (int i = 0; i < t; ++i) {
cout << a[i] + b[i] << '\n' ;
}
return 0 ;
}
Comments
Post a Comment