제출 #1189605

#제출 시각아이디문제언어결과실행 시간메모리
1189605tapilyoca크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++20
100 / 100
451 ms223516 KiB
/*********************************************** * auth: tapilyoca * * date: 04/21/2025 at 22:02:54 * * dots: https://github.com/tapilyoca/dotilyoca * ***********************************************/ #include <bits/stdc++.h> #include<ext/rope> using namespace __gnu_cxx; using namespace std; const long long MOD = 1e9+7; template<typename T> using vec = vector<T>; using ll = long long; using vll = vec<ll>; using vvll = vec<vll>; using pll = pair<ll,ll>; using str = string; #define pb push_back #define dbg(x) cerr << #x << ": " << x << endl; /***********************************************/ int i; vector<crope> ropes(1e6+10); void Init() { i = 0; } void TypeLetter(char L) { i++; ropes[i] = ropes[i-1]; ropes[i].push_back(L); } void UndoCommands(int U) { i++; ropes[i] = ropes[i-U-1]; } char GetLetter(int P) { return ropes[i][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...