# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
830628 | Johann | Genetics (BOI18_genetics) | C++14 | 31 ms | 23956 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
#define vi vector<int>
#define vvi vector<vi>
#define all(x) (x).begin(), (x).end()
#define sz(x) (int) (x).size()
int MAP[4] = { 'A', 'C', 'G', 'T' };
struct genom {
int idx = -1;
vi gen;
void readGen(int i) {
idx = i;
string s;
cin >> s;
int M = sz(s);
gen.resize(M);
for (int j = 0; j < M; ++j) {
if (s[j] == 'A') gen[j] = 0;
else if (s[j] == 'C') gen[j] = 1;
else if (s[j] == 'G') gen[j] = 2;
else gen[j] = 3;
}
}
void print() {
for (int i : gen) cout << (char) MAP[i];
cout << "\n";
}
};
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |