# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
822322 | qqspeed20015 | Genetics (BOI18_genetics) | C++14 | 427 ms | 83064 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
//freopen("input.txt", "r", stdin);
//freopen("output.txt", "w", stdout);
map <char, int> hashValue;
hashValue['A'] = 1; hashValue['C'] = 2; hashValue['G'] = 3; hashValue['T'] = 4;
int n, m, k;
cin >> n >> m >> k;
vector <vector <int>> matrixEncode(n, vector <int> (m));
vector <long long> weightHash(n);
vector <vector <long long>> sumOfColumn(m, vector <long long> (5, 0));
long long totalWeight = 0; // sum (weightHash[i]) for i in 0 -> n - 1
vector <int> indexMatching;
for (int i = 0; i < n; i++) {
string series;
cin >> series;
for (int j = 0; j < m; j++)
matrixEncode[i][j] = hashValue[series[j]];
}
for (int i = 0; i < n; i++) {
weightHash[i] = rand();
totalWeight += weightHash[i];
}
for (int i = 0; i < n; i++) {
# | 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... |