QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#278812 | #5660. Simplified Genome Translation | dat# | WA | 12ms | 9164kb | Python3 | 690b | 2023-12-07 20:56:54 | 2023-12-07 20:56:55 |
Judging History
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)
Details
Tip: Click on the bar to expand more detailed information
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: ''