# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
404215 | rama_pang | Genetics (BOI18_genetics) | C++17 | 526 ms | 25348 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;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int N, M, K;
cin >> N >> M >> K;
const int MAX = 16405;
vector<bitset<MAX>> A(N, 0);
for (int i = 0; i < N; i++) {
string s;
cin >> s;
for (int j = 0; j < M; j++) {
if (s[j] == 'A') A[i][j * 4 + 0] = 1;
if (s[j] == 'C') A[i][j * 4 + 1] = 1;
if (s[j] == 'T') A[i][j * 4 + 2] = 1;
if (s[j] == 'G') A[i][j * 4 + 3] = 1;
}
}
// Turn input into binary string
M = 4 * M;
K = 2 * K;
// bit 0 = -1
// bit 1 = +1
# | 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... |