Submission #398620

#TimeUsernameProblemLanguageResultExecution timeMemory
398620cpp219Crayfish scrivener (IOI12_scrivener)C++14
0 / 100
147 ms16360 KiB
#pragma GCC optimization "O2" #pragma GCC optimization "unroll-loop" #pragma GCC target ("avx2") //#include "" #include<bits/stdc++.h> #include <ext/rope> #define ll long long #define ld long double #define fs first #define sc second using namespace std; typedef pair<ll,ll> LL; const ll N = 1e6 + 9; const ll inf = 1e16 + 7; __gnu_cxx::crope s[1000100]; void Init(){} ll id = 1; void TypeLetter(char L){ s[id] = s[id - 1]; id++; s[id].push_back(L); } void UndoCommands(int U){ s[id] = s[id - U - 1]; id++; } char GetLetter(int P) { return s[id - 1][P]; }

Compilation message (stderr)

scrivener.cpp:1: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
    1 | #pragma GCC optimization "O2"
      | 
scrivener.cpp:2: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
    2 | #pragma GCC optimization "unroll-loop"
      |
#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...