9 条题解
-
2许栋轶 LV 10 @ 2022-10-25 18:03:36
#include <iostream> #include <stack> #include <cmath> #include <vector> #include <string.h> #include <queue> #include <stdio.h> #include <iomanip> #include <cstdio> #include <algorithm> #define int long long using namespace std; const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; signed main() { int n; int a, b; cin >> n; for(int i = 1; i <= n; i++) { cin >> a >> b; cout << a + b << endl; } return 0; }
-
22022-3-27 18:47:06@
#include<iostream>
using namespace std;
int main() {
int n,a,b;
cin>>n;
for(int i=1;i<=n;i++){
cin>>a>>b; cout<<a+b<<endl;
}
}
-
02024-8-8 20:49:56@
#include<cstdio> int a,b,n; signed main(){ scanf("%d",&n); for(int i=1;i<=n;i++){ scanf("%d%d",&a,&b); printf("%d\n",a+b); } return 0; }
-
02023-12-29 17:18:25@
#include <bits/stdc++.h> using namespace std; int main(){ int a,d,e; int b[114514],c[114514]; cin>>a; for(int i=0;i<a;i++){ cin>>d>>e; b[i] = d; c[i] = e; } for(int i=0;i<a;i++){ cout<<b[i]+c[i]<<endl; } }
-
02023-3-31 20:51:44@
#include<bits/stdc++.h> using namespace std; int main() { int a,b,n; cin>>n; for(int i=1; i<=n; i++) { cin>>a>>b; cout<<a+b<<endl; } return 0; }
-
02023-3-5 9:31:42@
#include <iostream> #include <cstdio> #include <iomanip> #include <cmath> #include <algorithm> #include <cstring> #include <string> #include <stack> #include <queue> #define LL long long using namespace std; const int INF = 0x3f3f3f3f; const int N = 1e5 + 10; int main() { int n , a , b; cin >> n; for(int i=1;i<=n;i++) { cin>>a>>b; cout<<a+b<<endl; } return 0; }
-
02022-7-6 19:48:23@
#include <stdio.h> #include <iostream> #include <math.h> using namespace std; int main() { int T,a,b; cin >> T; while(T--) { cin >> a >> b; cout << a+b << endl; } }
-
02022-7-6 19:48:12@
#include <stdio.h> #include <iostream> #include <math.h> using namespace std; int main() { int T,a,b; cin >> T; while(T--) { cin >> a >> b; cout << a+b << endl; } }
-
02022-7-6 10:58:11@
··· #include<stdio.h> #include<iostream> using namespace std; int main() { int T; cin>>T; while(T--) { int a,b; cin>>a>>b; cout<<a+b<<endl; } } ···
- 1
信息
- ID
- 984
- 时间
- 1000ms
- 内存
- 32MiB
- 难度
- 3
- 标签
- 递交数
- 370
- 已通过
- 198
- 上传者