# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
798620 | 2023-07-30T21:51:33 Z | Liudas | Gondola (IOI14_gondola) | C++17 | 21 ms | 5632 KB |
#include <bits/stdc++.h> #include "gondola.h" using namespace std; int valid(int N, int seq[]){ vector<int> s(2 * N); set<int> ss; int val = true; for(int i = 0; i < N; i ++){ ss.insert(seq[i]); s[i] = seq[i]; s[i + N] = seq[i]; } if(ss.size()!=N)val = false; int start = min_element(s.begin(), s.begin() + N) - s.begin(); int last = 0; for(int i = start; i < start + N; i ++){ if(s[i] <= N){ if(last < s[i])last = s[i]; else val = false; } } return val; } int replacement(int N, int seq[], int rseq[]){ return 0; } int countReplacement(int N, int seq[]){ return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 212 KB | Output is correct |
2 | Correct | 0 ms | 212 KB | Output is correct |
3 | Correct | 0 ms | 308 KB | Output is correct |
4 | Correct | 0 ms | 212 KB | Output is correct |
5 | Correct | 0 ms | 212 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Correct | 0 ms | 264 KB | Output is correct |
3 | Correct | 0 ms | 212 KB | Output is correct |
4 | Correct | 0 ms | 212 KB | Output is correct |
5 | Correct | 1 ms | 212 KB | Output is correct |
6 | Correct | 8 ms | 2644 KB | Output is correct |
7 | Correct | 21 ms | 4820 KB | Output is correct |
8 | Correct | 15 ms | 4892 KB | Output is correct |
9 | Correct | 5 ms | 1724 KB | Output is correct |
10 | Correct | 19 ms | 5632 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Correct | 0 ms | 212 KB | Output is correct |
3 | Correct | 0 ms | 212 KB | Output is correct |
4 | Correct | 0 ms | 212 KB | Output is correct |
5 | Correct | 0 ms | 212 KB | Output is correct |
6 | Correct | 8 ms | 2644 KB | Output is correct |
7 | Correct | 20 ms | 4764 KB | Output is correct |
8 | Correct | 16 ms | 4820 KB | Output is correct |
9 | Correct | 5 ms | 1668 KB | Output is correct |
10 | Correct | 20 ms | 5564 KB | Output is correct |
11 | Correct | 1 ms | 212 KB | Output is correct |
12 | Incorrect | 0 ms | 212 KB | Output isn't correct |
13 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 308 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 308 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |