Submission #863328

#TimeUsernameProblemLanguageResultExecution timeMemory
863328maks007Genetics (BOI18_genetics)C++14
27 / 100
2047 ms5780 KiB
// Bismi Allah #include "bits/stdc++.h" using namespace std; signed main () { int n, m, k; cin >> n >> m >> k; string str[n]; for(int i = 0; i < n; i ++) cin >> str[i]; for(int i = 0; i < n; i ++) { for(int j = 0; j < n; j ++) { if(i == j) continue; int cnt = 0; for(int idx = 0; idx < m; idx ++) { cnt += (str[i][idx] != str[j][idx]); } if(cnt == k) continue; goto end; } cout << i + 1; return 0; end:; } assert(false); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...