제출 #574792

#제출 시각아이디문제언어결과실행 시간메모리
574792AJ00크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++14
34 / 100
147 ms262144 KiB
#include <bits/stdc++.h>

using namespace std;

int n;
const int MOD = 1000000007;
const int INF = 1e18;
vector<string> vec;
string str;
char GetLetter(int P){
    return str[P]; 
}
void UndoCommands(int U){
    str = vec[vec.size()-U-1];
    vec.push_back(str);
}
void TypeLetter(char L){
    str += L;
    vec.push_back(str);
}
void Init(){
    str = "";
    vec.push_back(str);
}

컴파일 시 표준 에러 (stderr) 메시지

scrivener.cpp:7:17: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
    7 | const int INF = 1e18;
      |                 ^~~~
#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...