QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#859614#9717. Defuse the BombszhenghanyunWA 8ms8960kbPython3189b2025-01-17 21:08:322025-01-17 21:09:50

Judging History

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

  • [2025-01-17 21:09:50]
  • 评测
  • 测评结果:WA
  • 用时:8ms
  • 内存:8960kb
  • [2025-01-17 21:08:32]
  • 提交

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 if a[j]<=s/j<a[j+1] else m
	print(f"Case #{i}: {m+1}")

详细

Test #1:

score: 0
Wrong Answer
time: 8ms
memory: 8960kb

input:

2
2
1 1
3
1 2 3

output:

Case #0: 3
Case #1: 4

result:

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