# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
830628 | Johann | Genetics (BOI18_genetics) | C++14 | 31 ms | 23956 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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";
}
};
Compilation message (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... |