| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1215582 | ZsofiaKeresztely | Mutating DNA (IOI21_dna) | C++20 | 1594 ms | 2376 KiB |
#include "dna.h"
#include <bits/stdc++.h>
using namespace std;
string a, b;
void init(string x, string y) {
a = x;
b = y;
}
int get_distance(int x, int y) {
int dif = 0, ans = 0;
for (int i=x; i<=y; i++){
if (a[i] == 'A') dif++;
if (b[i] == 'A') dif--;
if (a[i] != b[i]) ans++;
}
if (dif){
return -1;
}
return ans / 2;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
