QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#119236#5671. Programmable Virushos_lyricAC ✓1ms3620kbC++144.4kb2023-07-05 07:53:332023-07-05 07:53:34

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-05 07:53:34]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3620kb
  • [2023-07-05 07:53:33]
  • 提交

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;
}

详细

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