QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#588664 | #9320. Find the Easiest Problem | C0pyCat | Compile Error | / | / | Python3 | 685b | 2024-09-25 13:54:51 | 2024-09-25 13:54:52 |
Judging History
answer
# 在这里写上你的代码 :-)
T = int(input())
for t in range(T):
n = int(input())
team_name = {}
problem_id = {}
ans = ''
max_accepted = 0
for i in range(n):
inp = input().split()
if not inp[1] in problem_id:
problem_id[inp[1]] = 0
if inp[2] == 'accepted' and not inp[0] in team_name:
team_name[inp[0]] = 1
problem_id[inp[1]] += 1
if max_accepted < problem_id[inp[1]]:
max_accepted = problem_id[inp[1]]
ans = inp[1]
if inp[1] < ans and max_accepted == problem_id[inp[1]] or ans = '':
ans = inp[1]
print(ans)
详细
File "answer.code", line 19 if inp[1] < ans and max_accepted == problem_id[inp[1]] or ans = '': ^ SyntaxError: invalid syntax