제출 #446975

#제출 시각UTC-0아이디문제언어결과실행 시간메모리
4469752021-07-24 07:12:55georgerapeanuGenetics (BOI18_genetics)C++11
0 / 100
92 ms6032 KiB
#include <bits/stdc++.h>
using namespace std;
const int NMAX = 4100;
int n,m,k;
string s[NMAX + 5];
int __map[256];
int main(){
cin >> n >> m >> k;
for(int i = 1;i <= n;i++){
cin >> s[i];
s[i] = " " + s[i];
}
vector<int> is_candidate(n + 1,true);
vector<int> weight(n + 1,0);
int cnt_cand = n;
__map['A'] = 0;
__map['C'] = 1;
__map['G'] = 2;
__map['T'] = 3;
while(cnt_cand > 1){
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

컴파일 시 표준 에러 (stderr) 메시지

genetics.cpp: In function 'int main()':
genetics.cpp:37:27: warning: array subscript has type 'char' [-Wchar-subscripts]
   37 |         cost[__map[s[i][j]]][j] += weight[i];
      |                           ^
genetics.cpp:49:60: warning: array subscript has type 'char' [-Wchar-subscripts]
   49 |         current_weight += total_weight - cost[__map[s[i][j]]][j];
      |                                                            ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...