제출 #1009419

#제출 시각아이디문제언어결과실행 시간메모리
1009419somefjordDNA 돌연변이 (IOI21_dna)C++17
22 / 100
1561 ms3928 KiB
#include "dna.h" #include <bits/stdc++.h> using namespace std; string as, bs; void init(string a, string b) { as = a; bs = b; } int get_distance(int x, int y) { int acount = 0, tcount = 0, misplacecount = 0; for (int i = x; i <= y; ++i) { acount += as[i] == 'A'; tcount += bs[i] == 'A'; misplacecount += as[i] == 'A' && as[i] != bs[i]; } if (acount != tcount) return -1; return misplacecount; }
#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...