QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#591325 | #9320. Find the Easiest Problem | C0pyCat | Compile Error | / | / | Python3 | 735b | 2024-09-26 15:23:30 | 2024-09-26 15:23:31 |
Judging History
answer
# 在这里写上你的代码 :-)
T = int(input())
for t in range(T):
n = int(input())
problem_id = {}
ans = 'Z'
max_accepted = 0
for i in range(n):
inp = input().split()
if not inp[1] in problem_id:
problem_id[inp[1]] = {'num':0,'team':{}}
if inp[2] == 'accepted' and not inp[0] in problem_id[inp[1]]['team':
problem_id[inp[1]]['team'][inp[0]] = 1
problem_id[inp[1]]['num'] += 1
if max_accepted < problem_id[inp[1]]['num']:
max_accepted = problem_id[inp[1]]['num']
ans = inp[1]
if inp[1] < ans and max_accepted == problem_id[inp[1]]['num']:
ans = inp[1]
print(ans)
Details
File "answer.code", line 12 if inp[2] == 'accepted' and not inp[0] in problem_id[inp[1]]['team': ^ SyntaxError: '[' was never closed