| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1234601 | gry3125 | Mutating DNA (IOI21_dna) | C++20 | 17 ms | 2368 KiB |
#include "dna.h"
#include <bits/stdc++.h>
using namespace std;
string a, b;
void init(string aa, string bb) {
a = aa; b = bb;
}
int get_distance(int x, int y) {
if (x == y) {
if (a[x] == b[x]) return 0;
return -1;
}
if (a[x] == b[x] && a[y] == b[y]) return 0;
if (a[x] == b[y] && a[y] == b[x]) return 1;
return -1;
}
| # | 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... | ||||
