QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#859627#9717. Defuse the BombszhenghanyunWA 11ms9088kbPython3188b2025-01-17 21:16:122025-01-17 21:16:35

Judging History

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

  • [2025-01-17 21:16:35]
  • 评测
  • 测评结果:WA
  • 用时:11ms
  • 内存:9088kb
  • [2025-01-17 21:16:12]
  • 提交

answer

I=input;
for i in range(int(I())):
	I();a=sorted(map(int,I().split()))+[9e9];s=m=a[0]
	for j in range(1,len(a)):
		s+=a[j];m+=(s//j-m)*(a[j]<=s/j<a[j+1])
	print(f"Case #{i+1}: {m+1}")

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 11ms
memory: 9088kb

input:

2
2
1 1
3
1 2 3

output:

Case #1: 3.0
Case #2: 4.0

result:

wrong answer 1st lines differ - expected: 'Case #1: 3', found: 'Case #1: 3.0'