답안 #194130

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
194130 2020-01-15T19:33:21 Z s_avila_g 크레이피쉬 글쓰는 기계 (IOI12_scrivener) C++14
5 / 100
9 ms 1016 KB
#include <bits/stdc++.h>
using namespace std;

char last;
string a;

void Init() {
}

void TypeLetter(char L) {
    last = L;
    a += last;
}

void UndoCommands(int U) {
    for(int i = a.size(); i >= 0; i++){
        a.pop_back();
    }
}

char GetLetter(int P) {
    last = a[P];
    return last;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 256 KB Output is correct
2 Correct 2 ms 376 KB Output is correct
3 Correct 2 ms 376 KB Output is correct
4 Correct 2 ms 376 KB Output is correct
5 Correct 2 ms 376 KB Output is correct
6 Correct 2 ms 376 KB Output is correct
7 Correct 2 ms 376 KB Output is correct
8 Correct 3 ms 256 KB Output is correct
9 Correct 2 ms 376 KB Output is correct
10 Correct 2 ms 376 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Runtime error 3 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 4 ms 760 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 9 ms 1016 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 9 ms 1016 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -