Submission #1009420

#TimeUsernameProblemLanguageResultExecution timeMemory
1009420oyberMutating DNA (IOI21_dna)C++17
22 / 100
1571 ms2396 KiB
#include "dna.h" #include <bits/stdc++.h> using namespace std; string a; string b; void init(std::string A, std::string B) { a = A; b = B; } int get_distance(int x, int y) { int at = 0; int ta = 0; for (int i = x; i <= y; i++) { if (a[i] == 'A' && b[i] == 'T') { at++; } else if (a[i] == 'T' && b[i] == 'A') { ta++; } } if (at != ta) { return -1; } return ta; }
#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...