# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
628990 | BeanZ | Genetics (BOI18_genetics) | C++14 | 591 ms | 296788 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
const int M = 4105, N = 4105;
int m, n, x, sum[M][N][4];
char s[M][N];
vector<int> ve;
random_device rd;
mt19937_64 mt(rd());
int convert(char c) {
switch (c) {
case 'A': return 0;
case 'T': return 1;
case 'G': return 2;
case 'C': return 3;
default: return 0;
}
}
bool check(int ind, int pos) {
int cnt = (pos - (ind <= pos)) * x;
for (int i = 1; i <= n; i++) {
cnt -= sum[pos][i][convert(s[ind][i])];
}
return cnt == 0;
}
int main() {
# | 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... |