Submission #440199

#TimeUsernameProblemLanguageResultExecution timeMemory
440199prvocisloCrayfish scrivener (IOI12_scrivener)C++17
0 / 100
1 ms716 KiB
#include<bits/stdc++.h>
#include <ext/rope> 
using namespace std;
using namespace __gnu_cxx;

//const int maxn = 1e6 + 5;
const int maxn =25;
crope r[maxn];
int n = 0;
void Init() {  }
void TypeLetter(char L) 
{
  r[n+1] = r[n];
  r[n+1].push_back(L);
  n++;
}
void UndoCommands(int U) 
{
  r[n+1] = r[n-U]; 
  n++;
}
char GetLetter(int P) 
{
  return r[n][P];
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...