QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#90902 | #5671. Programmable Virus | He_Ren | AC ✓ | 2ms | 3664kb | C++23 | 1.8kb | 2023-03-26 02:31:07 | 2023-03-26 02:31:11 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
const char *cmds[10] =
{ "CCC", "ACG", "UGA", "UGC", "UAC"
, "GCG", "UCC", "AGG", "UGU", "CAC"
};
void Stop() { printf("%s",cmds[0]);}
void Next() { printf("%s",cmds[1]);}
void Prev() { printf("%s",cmds[2]);}
void Inc() { printf("%s",cmds[3]);}
void Dec() { printf("%s",cmds[4]);}
void Out() { printf("%s",cmds[5]);}
void In() { printf("%s",cmds[6]);}
void Start(){ printf("%s",cmds[7]);}
void End() { printf("%s",cmds[8]);}
int d;
void Mod(void)
{
Start();
Dec();// 2
Next();// 3
Inc();
Start();
Dec();
End();
Dec();
Next();// 4
Inc();
Prev();// 3
Prev();// 2
End();
Next();// 3
Inc();
Start();
Dec();
Next();// 4
for(int i=1; i<=d; ++i)
Inc();
Prev();// 3
End();
Next();// 4
Start();
Dec();
Prev();// 3
Prev();// 2
Inc();
Next();// 3
Next();// 4
End();
Prev();// 3
Prev();// 2
}
int main(void)
{
scanf("%d",&d);
In();// 0
Inc();
Start();
Dec();
Next();// 1
Next();// 2
for(int i=1; i<=d; ++i)
Inc();
Prev();// 1
Start();
Dec();
Next();// 2
for(int i=1; i<=10; ++i)
{
Dec();
Mod();
}
Prev();// 1
End();
Prev();// 0
Start();
Dec();
Next();// 1
Next();// 2
Dec();
Mod();
Prev();// 1
Prev();// 0
End();
Next();// 1
for(int i=1; i<=d; ++i)
Inc();
Next();// 2
Start();
Dec();
Prev();// 1
Dec();
Next();// 2
End();
Prev();// 1
Prev();// 0
In();
Inc();
End();
Next();// 1
Start();
Next();// 2
Out();
Stop();
End();
Inc();
Out();
Stop();
printf("\n");
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 2ms
memory: 3508kb
input:
1
output:
UCCUGCAGGUACACGACGUGCUGAAGGUACACGUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGAUGUACG...
result:
ok correct
Test #2:
score: 0
Accepted
time: 2ms
memory: 3520kb
input:
2
output:
UCCUGCAGGUACACGACGUGCUGCUGAAGGUACACGUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGC...
result:
ok correct
Test #3:
score: 0
Accepted
time: 2ms
memory: 3460kb
input:
3
output:
UCCUGCAGGUACACGACGUGCUGCUGCUGAAGGUACACGUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGCUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGCUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGG...
result:
ok correct
Test #4:
score: 0
Accepted
time: 0ms
memory: 3396kb
input:
6
output:
UCCUGCAGGUACACGACGUGCUGCUGCUGCUGCUGCUGAAGGUACACGUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGCUGCUGCUGCUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGCUGCUGCUGCUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGU...
result:
ok correct
Test #5:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
1
output:
UCCUGCAGGUACACGACGUGCUGAAGGUACACGUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGAUGUACG...
result:
ok correct
Test #6:
score: 0
Accepted
time: 2ms
memory: 3492kb
input:
2
output:
UCCUGCAGGUACACGACGUGCUGCUGAAGGUACACGUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGC...
result:
ok correct
Test #7:
score: 0
Accepted
time: 2ms
memory: 3664kb
input:
3
output:
UCCUGCAGGUACACGACGUGCUGCUGCUGAAGGUACACGUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGCUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGCUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGG...
result:
ok correct
Test #8:
score: 0
Accepted
time: 1ms
memory: 3444kb
input:
4
output:
UCCUGCAGGUACACGACGUGCUGCUGCUGCUGAAGGUACACGUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGCUGCUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGCUGCUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGU...
result:
ok correct
Test #9:
score: 0
Accepted
time: 2ms
memory: 3580kb
input:
5
output:
UCCUGCAGGUACACGACGUGCUGCUGCUGCUGCUGAAGGUACACGUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGCUGCUGCUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGCUGCUGCUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGUUACACGUGC...
result:
ok correct
Test #10:
score: 0
Accepted
time: 2ms
memory: 3656kb
input:
6
output:
UCCUGCAGGUACACGACGUGCUGCUGCUGCUGCUGCUGAAGGUACACGUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGCUGCUGCUGCUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGUUACACGUGCUGAUGAUGUACGUGCAGGUACACGUGCUGCUGCUGCUGCUGCUGAUGUACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUACAGGUACACGUGCAGGUACUGU...
result:
ok correct