| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1343725 | ElyesChaabouni | DNA 돌연변이 (IOI21_dna) | C++20 | 1595 ms | 2352 KiB |
#include <bits/stdc++.h>
using namespace std;
string c,d;
void init(std::string a, std::string b){
c=a;
d=b;
return;
}
int get_distance(int x, int y){
if(y-x==0){
if(c[x]==d[x])return 0;
else return -1;
}
int a=0,t=0;
int a1=0,t1=0;
for(int i=x;i<=y;i++){
if(c[i]!=d[i]){
if(c[i]=='A'){a++;t1++;}
if(c[i]=='T'){t++;a1++;}
}
}
//a!=t || a1!=t1 ||
if( a!=a1 || t!=t1)return -1;
if(a==0 && t==0)return 0;
else return (a+t)/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... | ||||
