# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
432834 | JeanBombeur | Crayfish scrivener (IOI12_scrivener) | C++17 | 632 ms | 86468 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <iostream>
#include <cstdio>
using namespace std;
// <|°_°|>
const int MAX_OPERATIONS = (1000 * 1000 + 1);
const int LOG = (20);
char Letter[MAX_OPERATIONS];
int SzString[MAX_OPERATIONS];
int LastLetter[MAX_OPERATIONS][LOG];
int nbOperations = 0;
void Init() {
Letter[0] = '$';
SzString[0] = 0;
LastLetter[0][0] = -1;
return;
}
void Add(int noeud) {
if (Letter[noeud - 1] != '$')
LastLetter[noeud][0] = noeud - 1;
else
LastLetter[noeud][0] = LastLetter[noeud - 1][0];
for (int i = 1; i < LOG; i ++)
{
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |