QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#859344 | #9717. Defuse the Bombs | zhenghanyun | Compile Error | / | / | Python3 | 196b | 2025-01-17 17:40:11 | 2025-01-17 17:40:11 |
Judging History
answer
I=input;i=0;t=int(I())
while i<t:
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+=1}: {int(m)+1}")
Details
File "answer.code", line 6 print(f"Case #{i+=1}: {int(m)+1}") ^^ SyntaxError: f-string: expecting '=', or '!', or ':', or '}'