제출 #70709

#제출 시각아이디문제언어결과실행 시간메모리
70709boook크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++14
100 / 100
995 ms231704 KiB
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/rope>
using namespace std;
using namespace __gnu_pbds;
using namespace __gnu_cxx;
#define REP(i,j,k)     for(int i = j ; i < k ; ++i)
#define RREP(i,j,k)    for(int i = j ; i >=k ; --i)
#define A    first
#define B    second
#define mp   make_pair
#define pb   emplace_back
#define PII pair<int , int>
#define MEM(i,j)   memset(i , j , sizeof i)
#define ALL(i)     i.begin() , i.end()
#define DBGG(i,j)     cout << i << " " << j << endl
#define DB4(i,j,k,l)  cout << i << " " << j << " " << k << " " << l << endl
#define IOS cin.tie(0) , cout.sync_with_stdio(0)
#define endl "\n"
///------------------------------------------------------------
#define MAX 1000000
#define INF 0x3f3f3f3f

crope s[MAX];
int pos;
void Init(){
}
void TypeLetter(char c){
	pos ++;
	s[pos] = s[pos - 1];
	s[pos].push_back(c);
}
void UndoCommands(int k){
	pos ++;
	s[pos] = s[pos - k - 1];
}
char GetLetter(int idx){
	return s[pos][idx];
}
// int32_t main(){
// 	IOS;
// 
//     return 0;
// }
#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...