ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#191231 | #1158. 奥运奖牌计数 | Ice_ge | 0 | 3ms | 1196kb | C++ | 378b | 2023-10-08 12:39:35 | 2023-10-08 12:39:36 |
answer
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
long long n;
cin>>n;
long long cnt1=0,cnt2=0,cnt3=0;
for(int i=1;i<=n;i++){
long long a,b,c;
cin>>a>>b>>c;
cnt1 += a;
cnt2 += b;
cnt3 += c;
}
cout<<cnt1<<" "<<cnt2<<" "<<cnt3;
cout<<cnt1+cnt2+cnt3<<endl;
return 0;
}
Details
小提示:点击横条可展开更详细的信息
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 1192kb
input:
5 8 8 7 6 0 7 9 0 9 3 9 9 9 0 4
output:
35 17 3688
result:
wrong answer 1st lines differ - expected: '35 17 36 88', found: '35 17 3688'
Test #2:
score: 0
Wrong Answer
time: 1ms
memory: 1192kb
input:
8 4 0 2 1 4 6 8 0 2 6 9 5 2 3 8 0 1 7 3 3 2 2 7 0
output:
26 27 3285
result:
wrong answer 1st lines differ - expected: '26 27 32 85', found: '26 27 3285'
Test #3:
score: 0
Wrong Answer
time: 0ms
memory: 1196kb
input:
14 7 0 2 6 1 9 0 6 5 0 5 6 5 6 3 3 9 9 4 0 0 1 7 0 6 7 8 6 8 4 5 7 3 4 3 6 1 3 6 2 8 9
output:
50 70 70190
result:
wrong answer 1st lines differ - expected: '50 70 70 190', found: '50 70 70190'
Test #4:
score: 0
Wrong Answer
time: 0ms
memory: 1192kb
input:
8 9 1 3 4 6 8 1 8 9 7 3 7 7 7 3 1 1 4 9 6 3 7 8 8
output:
45 40 45130
result:
wrong answer 1st lines differ - expected: '45 40 45 130', found: '45 40 45130'
Test #5:
score: 0
Wrong Answer
time: 1ms
memory: 1196kb
input:
16 9 1 2 7 1 4 3 8 6 5 7 8 6 6 5 8 3 1 0 7 9 3 8 1 1 0 3 8 9 6 4 3 1 4 9 3 3 1 1 5 0 0 1 1 6 6 6 0
output:
73 70 56199
result:
wrong answer 1st lines differ - expected: '73 70 56 199', found: '73 70 56199'
Test #6:
score: 0
Wrong Answer
time: 1ms
memory: 1196kb
input:
6 9 2 2 6 4 8 4 7 4 7 9 0 8 5 1 6 6 0
output:
40 33 1588
result:
wrong answer 1st lines differ - expected: '40 33 15 88', found: '40 33 1588'
Test #7:
score: 0
Wrong Answer
time: 0ms
memory: 1196kb
input:
8 1 1 1 5 5 2 5 1 2 0 8 1 5 8 5 2 2 5 4 8 3 3 5 9
output:
25 38 2891
result:
wrong answer 1st lines differ - expected: '25 38 28 91', found: '25 38 2891'
Test #8:
score: 0
Wrong Answer
time: 0ms
memory: 1192kb
input:
1 6 7 2
output:
6 7 215
result:
wrong answer 1st lines differ - expected: '6 7 2 15', found: '6 7 215'
Test #9:
score: 0
Wrong Answer
time: 0ms
memory: 1192kb
input:
6 8 0 2 3 0 9 5 4 4 7 0 5 3 7 4 6 9 8
output:
32 20 3284
result:
wrong answer 1st lines differ - expected: '32 20 32 84', found: '32 20 3284'
Test #10:
score: 0
Wrong Answer
time: 0ms
memory: 1192kb
input:
3 8 3 6 3 4 9 6 3 0
output:
17 10 1542
result:
wrong answer 1st lines differ - expected: '17 10 15 42', found: '17 10 1542'