QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#616723#8637. 搬砖wyz0 6ms3604kbC++14391b2024-10-06 10:44:342024-10-06 10:44:35

Judging History

你现在查看的是最新测评结果

  • [2024-10-06 10:44:35]
  • 评测
  • 测评结果:0
  • 用时:6ms
  • 内存:3604kb
  • [2024-10-06 10:44:34]
  • 提交

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'