QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#859223#9717. Defuse the BombszhenghanyunRE 0ms0kbPython3213b2025-01-17 16:37:482025-01-17 16:37:48

Judging History

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

  • [2025-01-17 16:37:48]
  • 评测
  • 测评结果:RE
  • 用时:0ms
  • 内存:0kb
  • [2025-01-17 16:37:48]
  • 提交

answer

T=int(input())
for i in range(T):
	input();m=0;a=sorted(list(map(int,input().split())));s=a[0]
	for j in range(1,len(a)):
		s+=a[j];m=s/j if s/j>=a[j] and s/j<=a[j+1] else m
	print(f"Case #{i+1}: {int(m)+1}")

详细

Test #1:

score: 0
Runtime Error

input:

2
2
1 1
3
1 2 3

output:


result: