제출 #44979

#제출 시각아이디문제언어결과실행 시간메모리
44979junodeveloperLanguages (IOI10_languages)C++14
0 / 100
1254 ms15088 KiB
#include "lang.h" #include "grader.h" #include <map> #include <algorithm> using namespace std; typedef unsigned long long ll; map<ll, int> mp[56]; ll cnt[56] = {0}; void excerpt(int* a) { for(int i=0; i<56; i++) cnt[i] = 0; for(int i=0; i<97; i++) { ll val = 0; for(int j=0; j<4; j++) val = val * 65535 + a[i] - 1; int mx = 0, idx = 0; for(int j=0; j<56; j++) cnt[j] += mp[j][val]; } int ret = max_element(cnt, cnt+56) - cnt; int ans = language(ret); for(int i=0; i<97; i++) { ll val = 0; for(int j=0; j<4; j++) val = val * 65535 + a[i] - 1; mp[ans][val]++; } }

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

lang.cpp: In function 'void excerpt(int*)':
lang.cpp:15:7: warning: unused variable 'mx' [-Wunused-variable]
   int mx = 0, idx = 0;
       ^~
lang.cpp:15:15: warning: unused variable 'idx' [-Wunused-variable]
   int mx = 0, idx = 0;
               ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...