| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 499830 | sazid_alam | DNA 돌연변이 (IOI21_dna) | C++17 | 33 ms | 6252 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "dna.h"
#include <bits/stdc++.h>
using namespace std;
string a, b;
int tot[100005][3][2], bad[100005];
void init(string u, string v) {
for(int i = 0; i < u.size(); i++){
bad[i + 1] += bad[i];
if(u[i] != v[i]) bad[i + 1]++;
if(u[i] == 'A') tot[i + 1][0][0]++;
if(v[i] == 'A') tot[i + 1][0][1]++;
if(u[i] == 'C') tot[i + 1][1][0]++;
if(v[i] == 'C') tot[i + 1][1][1]++;
if(u[i] == 'T') tot[i + 1][2][0]++;
if(v[i] == 'T') tot[i + 1][2][1]++;
}
}
int get_distance(int x, int y) {
for(int j = 0; j < 3; j++){
if(tot[y + 1][j][0] - tot[x][j][0] != tot[y + 1][j][1] - tot[x][j][1]) return -1;
}
return (bad[y + 1] - bad[x] + 1) / 2;
}
컴파일 시 표준 에러 (stderr) 메시지
| # | 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... | ||||
