QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#278812#5660. Simplified Genome Translationdat#WA 12ms9164kbPython3690b2023-12-07 20:56:542023-12-07 20:56:55

Judging History

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

  • [2023-12-07 20:56:55]
  • 评测
  • 测评结果:WA
  • 用时:12ms
  • 内存:9164kb
  • [2023-12-07 20:56:54]
  • 提交

answer

n = int(input())

ra = """F UUU UUC
L UUA UUG CUU CUC CUA CUG
I AUU AUC AUA
M AUG
V GUU GUC GUA GUG
S UCU UCC UCA UCG AGU AGC
P CCU CCC CCA CCG
T ACU ACC ACA ACG
A GCU GCC GCA GCG
Y UAU UAC
H CAU CAC
Q CAA CAG
N AAU AAC
K AAA AAG
D GAU GAC
E GAA GAG
C UGU UGC
W UGG
R CGU CGC CGA CGG AGA AGG
G GGU GGC GGA GGG
STOP UAA UAG UGA"""

m = [(e.split()[0], e.split()[1:]) for e in ra.split('\n')]
m = dict(m)

for _ in range(n):
    s = input()

    for i in range(len(s)//3 + 1):
        sub_s = s[3*i:3*(i + 1)]
        for p, k in m.items():
            if sub_s in k:
                if p == "STOP":
                    exit(0)
                print(p)


详细

Test #1:

score: 0
Wrong Answer
time: 12ms
memory: 9164kb

input:

5
UUUUAACACUUUAUCACUUAACACCAC
CAAAAUAUGAAAAAU
AUGUACUUUGCGUUUCACUAA
UUGCACUACUAC
UACGUGGGUAUC

output:

F

result:

wrong answer 2nd lines differ - expected: 'QNMKN', found: ''