# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
701910 | Cyanmond | Gondola (IOI14_gondola) | C++17 | 8 ms | 620 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 "gondola.h"
#include <bits/stdc++.h>
using i64 = long long;
constexpr i64 mod = 1000000009;
int valid(int n, int inputSeq[]) {
for (int i = 0; i < n; ++i) {
--inputSeq[i];
}
for (int f = 0; f < n; ++f) {
if (inputSeq[f] >= n) {
continue;
}
int x = inputSeq[f];
bool answer = true;
for (int i = f + 1; i < n; ++i) {
const int y = (x + 1) % n;
if (inputSeq[i] < n and y != inputSeq[i]) {
answer = false;
}
x = y;
}
return answer;
}
return true;
}
//----------------------
int replacement(int n, int gondolaSeq[], int replacementSeq[]) {
}
//----------------------
int countReplacement(int n, int inputSeq[]) {
}
Compilation message (stderr)
# | 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... |
# | 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... |