# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
15762 | 2015-07-21T14:07:27 Z | ainta | Languages (IOI10_languages) | C++ | 339 ms | 3044 KB |
#include <stdlib.h> #include <stdio.h> #include "grader.h" #include "lang.h" #define SZ 100 int v[65536], v2[56][65536]; void excerpt(int *E) { int i, j, C[56], M = 0, x; for(i=0;i<56;i++)C[i]=0; for(i=0;i<100;i++){ if(v[E[i]])continue; v[E[i]] = 1; for(j=0;j<56;j++){ C[j] += v2[j][E[i]]; } } for(i=0;i<56;i++){ if(M < C[i]) M = C[i], x = i; } x = language(x); for(i=0;i<100;i++){ v[E[i]]=0; v2[x][E[i]] = 1; } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 339 ms | 3040 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Partially correct | 327 ms | 3044 KB | Output is partially correct - 52.57% |