Submission #1015907

#TimeUsernameProblemLanguageResultExecution timeMemory
1015907deeraMutating DNA (IOI21_dna)C++17
0 / 100
21 ms3676 KiB
#include <bits/stdc++.h> using namespace std; #include "dna.h" string A, B; void init(string a, string b) { A = a; B = b; } int get_distance(int x, int y) { string a = A.substr(x, (y-x+1)); string b = B.substr(x, (y-x+1)); if (a == b) { return 0; } if (a.size() == 1) { return -1; } if (a.size() == 2) { if (a[0] == b[1] && a[1] == b[0]) { return 1; } else { return -1; } } // just for now return a.size(); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...