# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
202901 | renebaebae | Genetics (BOI18_genetics) | C++14 | 222 ms | 66424 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
#include <cstdlib>
#include <cassert>
#include <string>
#include <vector>
using namespace std;
int main() {
cin.sync_with_stdio(false);
int N, M, K;
cin >> N >> M >> K;
vector<vector<int> > strings(N, vector<int>(M));
vector<bool> iscandidate(N, true);
int ncand = N;
string str;
for (int i = 0; i < N; ++i) {
cin >> str;
for (int j = 0; j < M; ++j)
strings[i][j] = (str[j] >> 1) & 3;
}
while (ncand > 1) {
vector<unsigned> weight(N);
unsigned totweight = 0;
for (int i = 0; i < N; ++i) {
weight[i] = rand();
totweight += weight[i];
}
vector<unsigned> count[4];
count[0].assign(M, 0);
count[1].assign(M, 0);
# | 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... |