제출 #1009420

#제출 시각아이디문제언어결과실행 시간메모리
1009420oyberDNA 돌연변이 (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...