QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#185924 | #5671. Programmable Virus | qzez | AC ✓ | 1ms | 3496kb | C++14 | 6.5kb | 2023-09-22 20:26:14 | 2023-09-22 20:26:14 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
template<typename T>
ostream& operator << (ostream &out,const vector<T>&x){
if(x.empty())return out<<"[]";
out<<'['<<x[0];
for(int len=x.size(),i=1;i<len;i++)out<<','<<x[i];
return out<<']';
}
template<typename T>
vector<T> ary(const T *a,int l,int r){
return vector<T>{a+l,a+1+r};
}
template<typename T>
void debug(T x){
cerr<<x<<'\n';
}
template<typename T,typename ...S>
void debug(T x,S ...y){
cerr<<x<<' ',debug(y...);
}
string cmds[10] =
{ "CCC", "ACG", "UGA", "UGC", "UAC"
, "GCG", "UCC", "AGG", "UGU", "CAC"
};
int k;
int main(){
// freopen(".in","r",stdin);
cin>>k;
if(k==1){
return cout<<"UCCAGGUACUGUUGCGCGCCC"<<endl,0;
}
if(k==2){
return cout<<"UGCAGGUACACGAGGUACUGUUGAAGGUACAC\
GUGCUGAUGUUCCUGCUGUACGUGCAGGUACU\
GAUGCACGAGGUACUGAUACACGAGGUACUGA\
UGCACGAGGUACUGAUACACGAGGUACUGAUG\
CACGAGGUACUGAUACACGAGGUACUGAUGCA\
CGAGGUACUGAUACACGAGGUACUGAUGCACG\
AGGUACUGAUACACGUGUUGUUGUUGUUGUUG\
UUGUUGUUGUUGUUGAGCGCCC"<<endl,0;
}
if(k==3){
return cout<<"UGCAGGACGACGUCCAGGUACACGUGCACGUG\
CUGAUGAUGUACGACGACGUGCUGAUGCAGGU\
ACACGAGGUACUGUUGAUGUACGAGGUGAUGA\
UGAUGCUGAAGGUACACGAGGUACUGUUGAUG\
UACGGCGCCCUGUUGAUGAAGGUACUGAUGCA\
CGAGGUACUGAUGCACGAGGUACUGAUACUAC\
ACGAGGUACUGAUGCACGAGGUACUGAUGCAC\
GAGGUACUGAUACUACACGAGGUACUGAUGCA\
CGAGGUACUGAUGCACGAGGUACUGAUACUAC\
ACGUGUUGUUGUUGUUGUUGUUGUUGUUGUUG\
AAGGUACUGAUGCACGUGUUGAAGGUACACGU\
GCUGAAGGUACACGUGCUGAAGGUACACGUAC\
UACUGAAGGUACACGUGCUGAUGUUGUUGUUG\
UACGAGGUACUGAUGCACGUGUUGAUGAUGU"<<endl,0;
}
if(k==6){
return cout<<"UGCAGGACGACGUCCAGGUACACGUGCACGUG\
CUGAUGAUGUACGACGACGUGCUGAUGCAGGU\
ACACGAGGUACUGUUGAUGUACGAGGUGAUGA\
UGAUGAAGGAGGUACUGUGCGCCCUGUACGAC\
GACGACGACGACGUGCAGGUACUGAUGCACGA\
GGUACUGAUACACGAGGUACUGAUGCACGAGG\
UACUGAUACACGAGGUACUGAUGCACGAGGUA\
CUGAUACACGAGGUACUGAUGCACGAGGUACU\
GAUACACGAGGUACUGAUGCACGAGGUACUGA\
UACACGUGUUGUUGUUGUUGUUGUUGUUGUUG\
UUGUUGAGCGCCCUGUUGAACGACGAGGUACU\
GUACGAGGUACUGUUGAUGAUGAUGAAGGUAC\
ACGACGACGUGCACGUGCUGAUGAUGAUGAUG\
UACGACGACGAGGUACUGAUGAUGAUGCACGA\
CGACGUGUUGAUGAUGAAGGUACUGAUGCACG\
AGGUACUGAUGCACGAGGUACUGAUACUACAC\
GAGGUACUGAUGCACGAGGUACUGAUGCACGA\
GGUACUGAUACUACACGAGGUACUGAUGCACG\
AGGUACUGAUGCACGAGGUACUGAUACUACAC\
GUGUUGUUGUUGUUGUUGUUGUUGUUGUUGAA\
GGUACUGAUGCACGUGUUGAAGGUACACGUGC\
UGAAGGUACACGUGCUGAAGGUACACGUACUA\
CUGAAGGUACACGUGCUGAUGUUGUUGUUGUA\
CGAGGUACUGAUGCACGUGUUGAUGAUGU"<<endl,0;
}
if(k==5){
return cout<<"UGCAGGUACACGAGGUACUGUUGAAGGUACACGUGCUGAUGUUCCUGCUGUACGUGCAGGUACUGAUGCACGAGGUGAUACACGUACAGGUACAGGUACAGGUACAGGUACUGAUGCACGAGGUGAUACACGUACAGGUACAGGUACAGGUACUGUUGUUGUUGUUGUUGUUGUUGUUGUUGUUGAGCGCCC"<<endl,0;
}
if(k==4){
return cout<<"ACGUGCACGUGCACGACGACGACGUCCUGCAGGUGAUGAUGAUGAAGGUACUGUUGAAGGUACACGUGCUGAUGUAGGUACUGUACGACGACGACGACGAGGUACUGAUGAUGAUGAUGAUGCACGACGACGACGACGUGUUCCUGCUGUUGAUGAUGAUGAUGAUACACGUACUGAAGGACGACGACGACGAGGUACUGUUGCUGAUGAAGGACGACGACGACGAGGUACUGUUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAUGUACGAGGACGACGACGACGAGGUACUGUUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAUGUACGAGGUACUGUACGACGAGGUACUGUACGAGGUACUGUUGAUGAUGAUGAUGUAGGUACUGUACGACGACGACGAGGUACUGAUGAUGAUGAUGCACGACGACGACGUGUUGAUGAUGAUGAUGAUGUAGGUACUGUACGACGACGACGAGGUACUGAUGAUGAUGAUGCACGACGACGACGUGUUGAUGAAGGACGACGAGGUACUGUUGAUGAAGGUACACGACGUGCUGAUGAUGUUGAUGAAGGACGACGACGACGACGAGGUACUGUUGAUGAUGAUGAUGAAGGUACACGACGACGACGACGUGCUGAUGAUGAUGAUGAUGUACGACGACGACGAGGUACUGUACGAGGUACUGUUGAUGAUGAUGAAGGUACUGUUGCUGAUGUAGGUACUGUACGACGACGACGACGAGGUACUGAUGAUGAUGAUGAUGCACGACGACGACGACGUGUUGAUGAUGAUGUAGGUACUGUACGACGAGGUACUGAUGAUGCACGACGUGUUGAUGAAGGACGACGAGGUACUGUUGAUGAAGGUACACGACGUGCUGAUGAUGUUGAAGGACGACGACGACGAGGUACUGUUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAUGUACGACGACGAGGUACUGUUGAUGAUGAUGAAGGUACUGUUGCACGUGUAGGUACUGUACGACGACGACGAGGUACUGAUGAUGAUGAUGCACGACGACGACGUGUUGAUGAUGAUGUAGGUACUGUACGACGAGGUACUGAUGAUGCACGACGUGUUGAUGAAGGACGACGAGGUACUGUUGAUGAAGGUACACGACGUGCUGAUGAUGUACGACGAGGUACUGUUGAUGAUGAUGAAGGUACUGUUGCACGACGUGUAGGUACUGUACGACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUGAUGAUGAUGAUACUGUACGAGGACGACGACGAGGUACUGUUGCUGAUGAAGGACGACGACGACGAGGUACUGUUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAUGUACGAGGACGACGACGACGAGGUACUGUUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAUGUACGAGGUACUGUACGACGAGGUACUGUACGAGGUACUGUUGAUGAUGAUGAUGUAGGUACUGUACGACGACGACGAGGUACUGAUGAUGAUGAUGCACGACGACGACGUGUUGAUGAUGAUGAUGAUGUAGGUACUGUACGACGACGACGAGGUACUGAUGAUGAUGAUGCACGACGACGACGUGUUGAUGAAGGACGACGAGGUACUGUUGAUGAAGGUACACGACGUGCUGAUGAUGUUGAUGAAGGACGACGACGACGACGAGGUACUGUUGAUGAUGAUGAUGAAGGUACACGACGACGACGACGUGCUGAUGAUGAUGAUGAUGUACGACGACGACGAGGUACUGUACGAGGUACUGUUGAUGAUGAUGAAGGUACUGUUGCUGAUGUAGGUACUGUACGACGACGACGACGAGGUACUGAUGAUGAUGAUGAUGCACGACGACGACGACGUGUUGAUGAUGAUGUAGGUACUGUACGACGAGGUACUGAUGAUGCACGACGUGUUGAUGAAGGACGACGAGGUACUGUUGAUGAAGGUACACGACGUGCUGAUGAUGUUGAAGGACGACGACGACGAGGUACUGUUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAUGUACGACGACGAGGUACUGUUGAUGAUGAUGAAGGUACUGUUGCACGUGUAGGUACUGUACGACGACGACGAGGUACUGAUGAUGAUGAUGCACGACGACGACGUGUUGAUGAUGAUGUAGGUACUGUACGACGAGGUACUGAUGAUGCACGACGUGUUGAUGAAGGACGACGAGGUACUGUUGAUGAAGGUACACGACGUGCUGAUGAUGUACGACGAGGUACUGUUGAUGAUGAUGAAGGUACUGUUGCACGACGUGUAGGUACUGUACGACGAGGUACUGAUGAUGCACGACGUGUUGAUGAAGGUACUGUUGCUGAUGAAGGACGACGACGACGAGGUACUGUUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAUGUACGAGGACGACGACGACGAGGUACUGUUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAUGUACGAGGUACUGUACGACGAGGUACUGUACGAGGUACUGUUGAUGAUGAUGAUGUAGGUACUGUACGACGACGACGAGGUACUGAUGAUGAUGAUGCACGACGACGACGUGUUGAUGAUGAUGAUGAUGUAGGUACUGUACGACGACGACGAGGUACUGAUGAUGAUGAUGCACGACGACGACGUGUUGAUGAAGGACGACGAGGUACUGUUGAUGAAGGUACACGACGUGCUGAUGAUGUUGAUGAAGGACGACGACGACGACGAGGUACUGUUGAUGAUGAUGAUGAAGGUACACGACGACGACGACGUGCUGAUGAUGAUGAUGAUGUACGACGACGACGAGGUACUGUACGAGGUACUGUUGAUGAUGAUGAAGGUACUGUUGCUGAUGUAGGUACUGUACGACGACGACGACGAGGUACUGAUGAUGAUGAUGAUGCACGACGACGACGACGUGUUGAUGAUGAUGUAGGUACUGUACGACGAGGUACUGAUGAUGCACGACGUGUUGAUGAAGGACGACGAGGUACUGUUGAUGAAGGUACACGACGUGCUGAUGAUGUUGAAGGACGACGACGACGAGGUACUGUUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAUGUACGACGACGAGGUACUGUUGAUGAUGAUGAAGGUACUGUUGCACGUGUAGGUACUGUACGACGACGACGAGGUACUGAUGAUGAUGAUGCACGACGACGACGUGUUGAUGAUGAUGUAGGUACUGUACGACGAGGUACUGAUGAUGCACGACGUGUUGAUGAAGGACGACGAGGUACUGUUGAUGAAGGUACACGACGUGCUGAUGAUGUACGACGAGGUACUGUUGAUGAUGAUGAAGGUACUGUUGCACGACGUGUAGGUACUGUACGACGAGGUACUGAUGAUGCACGACGUGUUGAUGAUGAUGAUGAUACUGUACGAGGACGUGCUGAUACUGUACGACGACGACGACGACGAGGUACUGUUGCUGAUGAUGAUGAUGAAGGACGACGACGACGACGACGAGGUACUGUUGAUGAUGAUGAUGAUGAAGGUACACGACGACGACGACGACGUGCUGAUGAUGAUGAUGAUGAUGUACGACGACGACGACGAGGUACUGUUGAUGAUGAUGAUGAUGUAGGUACUGUACGACGACGACGACGACGAGGUACUGAUGAUGAUGAUGAUGAUGCACGACGACGACGACGACGUGUUGAGCGCCC"<<endl,0;
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3444kb
input:
1
output:
UCCAGGUACUGUUGCGCGCCC
result:
ok correct
Test #2:
score: 0
Accepted
time: 0ms
memory: 3452kb
input:
2
output:
UGCAGGUACACGAGGUACUGUUGAAGGUACACGUGCUGAUGUUCCUGCUGUACGUGCAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGUGUUGUUGUUGUUGUUGUUGUUGUUGUUGUUGAGCGCCC
result:
ok correct
Test #3:
score: 0
Accepted
time: 1ms
memory: 3432kb
input:
3
output:
UGCAGGACGACGUCCAGGUACACGUGCACGUGCUGAUGAUGUACGACGACGUGCUGAUGCAGGUACACGAGGUACUGUUGAUGUACGAGGUGAUGAUGAUGCUGAAGGUACACGAGGUACUGUUGAUGUACGGCGCCCUGUUGAUGAAGGUACUGAUGCACGAGGUACUGAUGCACGAGGUACUGAUACUACACGAGGUACUGAUGCACGAGGUACUGAUGCACGAGGUACUGAUACUACACGAGGUACUGAUGCACGAGGUACUGAUGCACGAGGUACUGAUACUACACGUGUUGUUGU...
result:
ok correct
Test #4:
score: 0
Accepted
time: 0ms
memory: 3444kb
input:
6
output:
UGCAGGACGACGUCCAGGUACACGUGCACGUGCUGAUGAUGUACGACGACGUGCUGAUGCAGGUACACGAGGUACUGUUGAUGUACGAGGUGAUGAUGAUGAAGGAGGUACUGUGCGCCCUGUACGACGACGACGACGACGUGCAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGUGUUGU...
result:
ok correct
Test #5:
score: 0
Accepted
time: 0ms
memory: 3432kb
input:
1
output:
UCCAGGUACUGUUGCGCGCCC
result:
ok correct
Test #6:
score: 0
Accepted
time: 1ms
memory: 3416kb
input:
2
output:
UGCAGGUACACGAGGUACUGUUGAAGGUACACGUGCUGAUGUUCCUGCUGUACGUGCAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGUGUUGUUGUUGUUGUUGUUGUUGUUGUUGUUGAGCGCCC
result:
ok correct
Test #7:
score: 0
Accepted
time: 0ms
memory: 3416kb
input:
3
output:
UGCAGGACGACGUCCAGGUACACGUGCACGUGCUGAUGAUGUACGACGACGUGCUGAUGCAGGUACACGAGGUACUGUUGAUGUACGAGGUGAUGAUGAUGCUGAAGGUACACGAGGUACUGUUGAUGUACGGCGCCCUGUUGAUGAAGGUACUGAUGCACGAGGUACUGAUGCACGAGGUACUGAUACUACACGAGGUACUGAUGCACGAGGUACUGAUGCACGAGGUACUGAUACUACACGAGGUACUGAUGCACGAGGUACUGAUGCACGAGGUACUGAUACUACACGUGUUGUUGU...
result:
ok correct
Test #8:
score: 0
Accepted
time: 0ms
memory: 3496kb
input:
4
output:
ACGUGCACGUGCACGACGACGACGUCCUGCAGGUGAUGAUGAUGAAGGUACUGUUGAAGGUACACGUGCUGAUGUAGGUACUGUACGACGACGACGACGAGGUACUGAUGAUGAUGAUGAUGCACGACGACGACGACGUGUUCCUGCUGUUGAUGAUGAUGAUGAUACACGUACUGAAGGACGACGACGACGAGGUACUGUUGCUGAUGAAGGACGACGACGACGAGGUACUGUUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAUGUACGAGGACGACGACGACG...
result:
ok correct
Test #9:
score: 0
Accepted
time: 1ms
memory: 3492kb
input:
5
output:
UGCAGGUACACGAGGUACUGUUGAAGGUACACGUGCUGAUGUUCCUGCUGUACGUGCAGGUACUGAUGCACGAGGUGAUACACGUACAGGUACAGGUACAGGUACAGGUACUGAUGCACGAGGUGAUACACGUACAGGUACAGGUACAGGUACUGUUGUUGUUGUUGUUGUUGUUGUUGUUGUUGAGCGCCC
result:
ok correct
Test #10:
score: 0
Accepted
time: 0ms
memory: 3416kb
input:
6
output:
UGCAGGACGACGUCCAGGUACACGUGCACGUGCUGAUGAUGUACGACGACGUGCUGAUGCAGGUACACGAGGUACUGUUGAUGUACGAGGUGAUGAUGAUGAAGGAGGUACUGUGCGCCCUGUACGACGACGACGACGACGUGCAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGUGUUGU...
result:
ok correct