QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#859223 | #9717. Defuse the Bombs | zhenghanyun | RE | 0ms | 0kb | Python3 | 213b | 2025-01-17 16:37:48 | 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}")
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Runtime Error
input:
2 2 1 1 3 1 2 3