# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
975772 | 2024-05-05T20:17:36 Z | marinaluca | 크레이피쉬 글쓰는 기계 (IOI12_scrivener) | C++14 | 222 ms | 89940 KB |
char c[1000010]; int a[1000010],lev[1000010],st[20][1000010],t; void Init(){} void TypeLetter(char L){ int i; c[a[++t]=t]=L; lev[t]=lev[st[0][t]=a[t-1]]+1; for(i=1;i<20;++i)st[i][t]=st[i-1][st[i-1][t]]; } void UndoCommands(int U){a[++t]=a[t-U-1];} char GetLetter(int P){ int i,x=a[t]; for(i=20;i--;)if(lev[st[i][x]]>P)x=st[i][x]; return c[x]; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 11 ms | 41308 KB | Output is correct |
2 | Correct | 5 ms | 41308 KB | Output is correct |
3 | Correct | 4 ms | 41308 KB | Output is correct |
4 | Correct | 4 ms | 41308 KB | Output is correct |
5 | Correct | 5 ms | 41476 KB | Output is correct |
6 | Correct | 5 ms | 41560 KB | Output is correct |
7 | Correct | 5 ms | 41308 KB | Output is correct |
8 | Correct | 5 ms | 41308 KB | Output is correct |
9 | Correct | 4 ms | 41308 KB | Output is correct |
10 | Correct | 5 ms | 41308 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 4 ms | 41308 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 5 ms | 41452 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 148 ms | 89200 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 222 ms | 89940 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |