제출 #522197

#제출 시각UTC-0아이디문제언어결과실행 시간메모리
5221972022-02-04 05:19:31sean617Languages (IOI10_languages)C++98
0 / 100
159 ms8392 KiB
#include "grader.h"
#include "lang.h"
#include <unordered_map>
#include <vector>
#include <cstring>
using namespace std;
int l, v[60][100000];
void excerpt(int *E)
{
int i, j, num, ans = 0, x, mx = 0, cnt;
l = 100;
for (x =0; x < 56; x++) {
cnt = 0;
for (i =0; i < l; i++) {
cnt += v[x][E[i]];
}
if (cnt > mx) {
mx = cnt;
ans = x;
}
}
ans = language(ans);
for (i = 0; i < l; i++) {
v[ans][E[i]]++;
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

lang.cpp: In function 'void excerpt(int*)':
lang.cpp:11:9: warning: unused variable 'j' [-Wunused-variable]
   11 |  int i, j, num, ans = 0, x, mx = 0, cnt;
      |         ^
lang.cpp:11:12: warning: unused variable 'num' [-Wunused-variable]
   11 |  int i, j, num, ans = 0, x, mx = 0, cnt;
      |            ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...