QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#616721#8637. 搬砖wyz0 0ms0kbC++14383b2024-10-06 10:43:322024-10-06 10:43:32

Judging History

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

  • [2024-10-06 10:43:32]
  • 评测
  • 测评结果:0
  • 用时:0ms
  • 内存:0kb
  • [2024-10-06 10:43:32]
  • 提交

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
Dangerous Syscalls

Test #1:

score: 0
Dangerous Syscalls

input:

19
49 87 55 72 26 28 61 89 3 74 68 5 35 38 29 51 43 50 99

output:


result:


Subtask #2:

score: 0
Dangerous Syscalls

Test #21:

score: 0
Dangerous Syscalls

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:


result: