Submission #574792

#TimeUsernameProblemLanguageResultExecution timeMemory
574792AJ00Crayfish scrivener (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); }

Compilation message (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...