# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
398625 | cpp219 | Crayfish scrivener (IOI12_scrivener) | C++11 | 584 ms | 223472 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#pragma GCC optimization "O2"
#pragma GCC optimization "unroll-loop"
#pragma GCC target ("avx2")
//#include ""
#include<bits/stdc++.h>
#include <ext/rope>
#define ll long long
#define ld long double
#define fs first
#define sc second
using namespace std;
typedef pair<ll,ll> LL;
const ll N = 1e6 + 9;
const ll inf = 1e16 + 7;
__gnu_cxx::crope s[1000100];
void Init(){}
ll id = 0;
void TypeLetter(char L){
id++; s[id] = s[id - 1];
s[id].push_back(L);
}
void UndoCommands(int U){
id++; s[id] = s[id - U - 1];
}
char GetLetter(int P) {
return s[id][P];
}
Compilation message (stderr)
# | 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... |