# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
872596 |
2023-11-13T12:26:38 Z |
Zero |
Mutating DNA (IOI21_dna) |
C++17 |
|
33 ms |
3976 KB |
#include <bits/stdc++.h>
#define pb push_back
using namespace std;
bool mo = false;
string xx,yy;
void init(std::string a, std::string b) {
xx = a; yy = b;
}
int get_distance(int x, int y) {
if(mo)return -1;
int c = 0;
for(int i=x; i<=y; i ++){
if(xx[i] != yy[i]) c++;
}
map<char,int> q,w;
for(int i=x; i<=y; i++) q[xx[i]]++,w[yy[i]]++;
if(q != w) {
return -1;
}
return c-1;
}
// int main(){
// string a,b; cin >> a >> b;
// init(a,b);
// int q; cin >> q;
// while(q--){
// int x,y; cin >> x >> y;
// cout << get_distance(x,y) << '\n';
// }
// return 0;
// }
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
33 ms |
3976 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
33 ms |
3976 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |