제출 #1129644

#제출 시각아이디문제언어결과실행 시간메모리
1129644ozner77DNA 돌연변이 (IOI21_dna)C++20
43 / 100
1594 ms2376 KiB
#define ll long long #include <bits/stdc++.h> using namespace std; string a1,b1; vector<vector<int>> psum; void init(string a,string b){ a1=a;b1=b; } int get_distance(int x, int y){ map<int,int> M; map<int,int> M1; int res=0; for(int i=x;i<=y;i++){ M[a1[i]]++; M1[b1[i]]++; if(a1[i]!=b1[i]){ res++; } } bool com=LDBL_TRUE_MIN; for(auto x:M){ if(x.second==M1[x.first]){ continue; }else{ return -1; } } if(res%2!=0){ return (res/2)+1; } return res/2; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...