| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1141973 | samia | DNA 돌연변이 (IOI21_dna) | C++20 | 1595 ms | 2376 KiB |
#include "dna.h"
#include<bits/stdc++.h>
using namespace std;
string A,B;
void init(string a, string b) {
A=a;
B=b;
}
int get_distance(int x, int y) {
int ans;
map<char,int>m;
map<char,int>m1;
ans=0;
for(int so=x;so<=y;so++){
if(A[so]!=B[so]){ans++;m[A[so]]+=1;m1[B[so]]+=1;}
}
if(m1['A']==m['A']&&m1['C']==m['C']&&m1['T']==m['T']){
return max(0,ans/2);
}
else {return -1;}
}
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
