#include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define mp make_pair
#define pb push_back
char c;
map<int,string> mpp;
int cev,koy,say,flag;
string s;
vector< pair<int,char> > v;
void Init(){
}
void TypeLetter(char L){
v.pb(mp(say++,L));
}
void UndoCommands(int U){
v.pb(mp(U,'.'));
}
char GetLetter(int P){
if(flag==0){
reverse(v.begin(),v.end());
int yasak=0;
for(int i=0;i<(int)v.size();i++){
if(yasak){yasak--;i++;continue;}
if(v[i].se=='.')yasak=v[i].fi;
else s+=v[i].se;
}
reverse(s.begin(),s.end());
flag=1;
}
return s[P];
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
5 ms |
384 KB |
Output is correct |
2 |
Incorrect |
4 ms |
256 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
4 ms |
256 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
6 ms |
384 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
132 ms |
12252 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
44 ms |
3564 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
2 |
Halted |
0 ms |
0 KB |
- |