# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
61816 | 2018-07-26T18:26:36 Z | theknife2001 | 크레이피쉬 글쓰는 기계 (IOI12_scrivener) | C++17 | 1000 ms | 5204 KB |
#include <bits/stdc++.h> #define ii pair < char , char > #define fi first #define se second using namespace std; const int N=1e6+5; ii a[N]; char s[N]; bool q=0; int i=0; void Init() {} void TypeLetter(char L) { a[i]={'T',L}; i++; } void UndoCommands(int U) { a[i]={'U','0'+U}; i++; } int j=0; char GetLetter(int P) { if(!q) { j=0; i--; while(i>=0) { if(a[i].fi=='T') { s[j]=a[i].se; j++; } else if(a[i].fi=='U') { i-=(a[i].se-'0'); } else { if('A'<=a[i].fi<='Z') while(1) cout<<"FUCK"<<endl; else assert(0); } i--; } reverse(s,s+j); } q=1; return s[P]; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 376 KB | Output is correct |
2 | Incorrect | 3 ms | 376 KB | Output isn't correct |
3 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 3 ms | 412 KB | Output is correct |
2 | Incorrect | 2 ms | 460 KB | Output isn't correct |
3 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 3 ms | 644 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1078 ms | 5204 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 168 ms | 5204 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |