QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#119236 | #5671. Programmable Virus | hos_lyric | AC ✓ | 1ms | 3620kb | C++14 | 4.4kb | 2023-07-05 07:53:33 | 2023-07-05 07:53:34 |
Judging History
answer
#include <cassert>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
using namespace std;
using Int = long long;
template <class T1, class T2> ostream &operator<<(ostream &os, const pair<T1, T2> &a) { return os << "(" << a.first << ", " << a.second << ")"; };
template <class T> ostream &operator<<(ostream &os, const vector<T> &as) { const int sz = as.size(); os << "["; for (int i = 0; i < sz; ++i) { if (i >= 256) { os << ", ..."; break; } if (i > 0) { os << ", "; } os << as[i]; } return os << "]"; }
template <class T> void pv(T a, T b) { for (T i = a; i != b; ++i) cerr << *i << " "; cerr << endl; }
template <class T> bool chmin(T &t, const T &f) { if (t > f) { t = f; return true; } return false; }
template <class T> bool chmax(T &t, const T &f) { if (t < f) { t = f; return true; } return false; }
// const string COMMANDS = "e><+-oi[]d";
// 4
/*
+>+
[
>i+
]
<-<-
d
[
->>
+ [->>>>+<<<<[->>>>+<<<<[->>>>+<<<<[->>>>[-]<<<<]]]] >>>>[-<<<<+>>>>]<<<<
+ [->>>>+<<<<[->>>>+<<<<[->>>>+<<<<[->>>>[-]<<<<]]]] >>>>[-<<<<+>>>>]<<<<
<<
d
]
>
[
->
+ [->>>>+<<<<[->>>>+<<<<[->>>>+<<<<[->>>>[-]<<<<]]]] >>>>[-<<<<+>>>>]<<<<
<
d
]
>
[
>oe
]
+oe
*/
// 5
/*
+>+
[
>i+
]
<-<-
d
[
->>
<<
d
]
>
[
->
+ [->>>>+<<<<[->>>>+<<<<[->>>>+<<<<[->>>>+<<<<[->>>>[-]<<<<]]]]] >>>>[-<<<<+>>>>]<<<<
<
d
]
>
[
>oe
]
+oe
*/
const string ANS[7] ={
"?",
"UCCAGGUACUGUUGCGCGCCC",
"UGCAGGUACACGAGGUACUGUUGAAGGUACACGUGCUGAUGUUCCUGCUGUACGUGCAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGUGUUGUUGUUGUUGUUGUUGUUGUUGUUGUUGAGCGCCC",
"UGCAGGACGACGUCCAGGUACACGUGCACGUGCUGAUGAUGUACGACGACGUGCUGAUGCAGGUACACGAGGUACUGUUGAUGUACGAGGUGAUGAUGAUGCUGAAGGUACACGAGGUACUGUUGAUGUACGGCGCCCUGUUGAUGAAGGUACUGAUGCACGAGGUACUGAUGCACGAGGUACUGAUACUACACGAGGUACUGAUGCACGAGGUACUGAUGCACGAGGUACUGAUACUACACGAGGUACUGAUGCACGAGGUACUGAUGCACGAGGUACUGAUACUACACGUGUUGUUGUUGUUGUUGUUGUUGUUGUUGAAGGUACUGAUGCACGUGUUGAAGGUACACGUGCUGAAGGUACACGUGCUGAAGGUACACGUACUACUGAAGGUACACGUGCUGAUGUUGUUGUUGUACGAGGUACUGAUGCACGUGUUGAUGAUGU",
// 4
"UGCACGUGCAGGACGUCCUGCUGUUGAUACUGAUACAGGUACACGACGUGCAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGAGGUACUGUUGAUGAUGAUGAUGUUGUUGUUGUACGACGACGACGAGGUACUGAUGAUGAUGAUGCACGACGACGACGUGUUGAUGAUGAUGAUGCAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGAGGUACUGUUGAUGAUGAUGAUGUUGUUGUUGUACGACGACGACGAGGUACUGAUGAUGAUGAUGCACGACGACGACGUGUUGAUGAUGAUGAUGAUGAUGUACGAGGUACACGUGCAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGAGGUACUGUUGAUGAUGAUGAUGUUGUUGUUGUACGACGACGACGAGGUACUGAUGAUGAUGAUGCACGACGACGACGUGUUGAUGAUGAUGAUGAUGUACGAGGACGGCGCCCUGUUGCGCGCCC",
// 5
"UGCACGUGCAGGACGUCCUGCUGUUGAUACUGAUACAGGUACACGACGUGAUGAUGUACGAGGUACACGUGCAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGAGGUACUGUUGAUGAUGAUGAUGUUGUUGUUGUUGUACGACGACGACGAGGUACUGAUGAUGAUGAUGCACGACGACGACGUGUUGAUGAUGAUGAUGAUGUACGAGGACGGCGCCCUGUUGCGCGCCC",
"UGCAGGACGACGUCCAGGUACACGUGCACGUGCUGAUGAUGUACGACGACGUGCUGAUGCAGGUACACGAGGUACUGUUGAUGUACGAGGUGAUGAUGAUGAAGGAGGUACUGUGCGCCCUGUACGACGACGACGACGACGUGCAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGUGUUGUUGUUGUUGUUGUUGUUGUUGUUGUUGAGCGCCCUGUUGAACGACGAGGUACUGUACGAGGUACUGUUGAUGAUGAUGAAGGUACACGACGACGUGCACGUGCUGAUGAUGAUGAUGUACGACGACGAGGUACUGAUGAUGAUGCACGACGACGUGUUGAUGAUGAAGGUACUGAUGCACGAGGUACUGAUGCACGAGGUACUGAUACUACACGAGGUACUGAUGCACGAGGUACUGAUGCACGAGGUACUGAUACUACACGAGGUACUGAUGCACGAGGUACUGAUGCACGAGGUACUGAUACUACACGUGUUGUUGUUGUUGUUGUUGUUGUUGUUGAAGGUACUGAUGCACGUGUUGAAGGUACACGUGCUGAAGGUACACGUGCUGAAGGUACACGUACUACUGAAGGUACACGUGCUGAUGUUGUUGUUGUACGAGGUACUGAUGCACGUGUUGAUGAUGU",
};
int main() {
int K;
scanf("%d", &K);
puts(ANS[K].c_str());
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3620kb
input:
1
output:
UCCAGGUACUGUUGCGCGCCC
result:
ok correct
Test #2:
score: 0
Accepted
time: 1ms
memory: 3508kb
input:
2
output:
UGCAGGUACACGAGGUACUGUUGAAGGUACACGUGCUGAUGUUCCUGCUGUACGUGCAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGUGUUGUUGUUGUUGUUGUUGUUGUUGUUGUUGAGCGCCC
result:
ok correct
Test #3:
score: 0
Accepted
time: 1ms
memory: 3472kb
input:
3
output:
UGCAGGACGACGUCCAGGUACACGUGCACGUGCUGAUGAUGUACGACGACGUGCUGAUGCAGGUACACGAGGUACUGUUGAUGUACGAGGUGAUGAUGAUGCUGAAGGUACACGAGGUACUGUUGAUGUACGGCGCCCUGUUGAUGAAGGUACUGAUGCACGAGGUACUGAUGCACGAGGUACUGAUACUACACGAGGUACUGAUGCACGAGGUACUGAUGCACGAGGUACUGAUACUACACGAGGUACUGAUGCACGAGGUACUGAUGCACGAGGUACUGAUACUACACGUGUUGUUGU...
result:
ok correct
Test #4:
score: 0
Accepted
time: 1ms
memory: 3504kb
input:
6
output:
UGCAGGACGACGUCCAGGUACACGUGCACGUGCUGAUGAUGUACGACGACGUGCUGAUGCAGGUACACGAGGUACUGUUGAUGUACGAGGUGAUGAUGAUGAAGGAGGUACUGUGCGCCCUGUACGACGACGACGACGACGUGCAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGUGUUGU...
result:
ok correct
Test #5:
score: 0
Accepted
time: 1ms
memory: 3436kb
input:
1
output:
UCCAGGUACUGUUGCGCGCCC
result:
ok correct
Test #6:
score: 0
Accepted
time: 1ms
memory: 3508kb
input:
2
output:
UGCAGGUACACGAGGUACUGUUGAAGGUACACGUGCUGAUGUUCCUGCUGUACGUGCAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGUGUUGUUGUUGUUGUUGUUGUUGUUGUUGUUGAGCGCCC
result:
ok correct
Test #7:
score: 0
Accepted
time: 0ms
memory: 3472kb
input:
3
output:
UGCAGGACGACGUCCAGGUACACGUGCACGUGCUGAUGAUGUACGACGACGUGCUGAUGCAGGUACACGAGGUACUGUUGAUGUACGAGGUGAUGAUGAUGCUGAAGGUACACGAGGUACUGUUGAUGUACGGCGCCCUGUUGAUGAAGGUACUGAUGCACGAGGUACUGAUGCACGAGGUACUGAUACUACACGAGGUACUGAUGCACGAGGUACUGAUGCACGAGGUACUGAUACUACACGAGGUACUGAUGCACGAGGUACUGAUGCACGAGGUACUGAUACUACACGUGUUGUUGU...
result:
ok correct
Test #8:
score: 0
Accepted
time: 1ms
memory: 3568kb
input:
4
output:
UGCACGUGCAGGACGUCCUGCUGUUGAUACUGAUACAGGUACACGACGUGCAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGAGGUACUGUUGAUGAUGAUGAUGUUGUUGUUGUACGACGACGACGAGGUACUGAUGAUGAUGAUGCACGACGACGACGUGUUGAUGAUGAUGAUGCAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGG...
result:
ok correct
Test #9:
score: 0
Accepted
time: 1ms
memory: 3508kb
input:
5
output:
UGCACGUGCAGGACGUCCUGCUGUUGAUACUGAUACAGGUACACGACGUGAUGAUGUACGAGGUACACGUGCAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGUGCUGAUGAUGAUGAAGGUACACGACGACGACGAGGUACUGUUGAUGAUGAUGAUGUUGUUGUUGUUGUACGACGACGACGAGGUACUGAUGAUGAUGAUGCACGACGACG...
result:
ok correct
Test #10:
score: 0
Accepted
time: 1ms
memory: 3512kb
input:
6
output:
UGCAGGACGACGUCCAGGUACACGUGCACGUGCUGAUGAUGUACGACGACGUGCUGAUGCAGGUACACGAGGUACUGUUGAUGUACGAGGUGAUGAUGAUGAAGGAGGUACUGUGCGCCCUGUACGACGACGACGACGACGUGCAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGAGGUACUGAUGCACGAGGUACUGAUACACGUGUUGU...
result:
ok correct