QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#616723 | #8637. 搬砖 | wyz | 0 | 6ms | 3604kb | C++14 | 391b | 2024-10-06 10:44:34 | 2024-10-06 10:44:35 |
answer
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
// #ifdef ONLINE_JUDGE
// freopen("bricks.in","r",stdin);
// freopen("bricks.out","w",stdout);
// #endif
int n;
cin >> n;
ll sum = 0;
while(n--){
ll x;
cin >> x;
sum += x;
}
cout << (sum >> 1) + 1;
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3516kb
input:
19 49 87 55 72 26 28 61 89 3 74 68 5 35 38 29 51 43 50 99
output:
482
result:
wrong answer 1st numbers differ - expected: '164', found: '482'
Subtask #2:
score: 0
Wrong Answer
Test #21:
score: 0
Wrong Answer
time: 6ms
memory: 3604kb
input:
199999 847249 186487 367355 618072 937226 591328 776261 362189 96203 363974 349368 378905 615535 753238 551029 549551 648843 257850 897199 780171 34956 529292 138489 164016 983045 678158 447625 770688 359626 620193 47041 723226 806679 414396 857650 260257 522075 633910 622445 618277 514235 488164 99...
output:
49945470743
result:
wrong answer 1st numbers differ - expected: '19467220030', found: '49945470743'