# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
822322 | qqspeed20015 | Genetics (BOI18_genetics) | C++14 | 427 ms | 83064 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_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... |