Submission #623850

#TimeUsernameProblemLanguageResultExecution timeMemory
623850hfoliacotsMutating DNA (IOI21_dna)C++17
0 / 100
26 ms2516 KiB
#include "dna.h" #include <bits/stdc++.h> using namespace std; string s, t; void init(string a, string b) { s = a; t = b; return; } int get_distance(int x, int y) { int A, T; for (int i = x; i <= y; i++) { if (s[i] != t[i]) { if (s[i] == 'A') A++; else if (s[i] == 'T') T++; } } if (A == T) return A; else return -1; 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...
#Verdict Execution timeMemoryGrader output
Fetching results...