QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#859624#9717. Defuse the BombszhenghanyunCompile Error//Python3189b2025-01-17 21:15:422025-01-17 21:15:42

Judging History

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

  • [2025-01-17 21:15:42]
  • 评测
  • [2025-01-17 21:15:42]
  • 提交

answer

7I=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

  File "answer.code", line 1
    7I=input;
    ^
SyntaxError: invalid decimal literal