# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
15630 | progressive | 크레이피쉬 글쓰는 기계 (IOI12_scrivener) | C++14 | 239 ms | 109580 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
using namespace std;
static const int MAXN=1010101;
static bool isundo[MAXN];
static int real[MAXN];
static char working[MAXN];
static int length[MAXN];
static int sparse[MAXN][25];
static int turn;
void Init()
{
turn=1;
real[0]=0;
length[0]=0;
for(int i=0;i<25;i++) sparse[0][i]=-1;
}
void TypeLetter(char L)
{
isundo[turn]=false;
working[turn]=L;
length[turn]=length[turn-1]+1;
real[turn]=turn;
sparse[turn][0]=turn-1;
for(int i=1;i<25;i++)
{
int v=sparse[turn][i-1];
if(v==-1) sparse[turn][i]=-1;
else sparse[turn][i]=sparse[v][i-1];
}
turn++;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |