# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
58592 | 2018-07-18T11:08:27 Z | RezwanArefin01 | Gondola (IOI14_gondola) | C++17 | 19 ms | 2128 KB |
#include <bits/stdc++.h> #include "gondola.h" using namespace std; int valid(int n, int a[]) { vector<int> v; for(int i = 0; i < n; i++) { int x = a[i]; if(1 <= x && x <= n) v.push_back(x); } int sz = v.size(); for(int i = 0; i < sz; i++) v.push_back(v[i]); n = v.size(); int cnt = 0, mx = 0; for(int i = 1; i < n; i++) { if(v[i] > v[i - 1]) cnt++; else cnt = 0; mx = max(mx, cnt); } return mx + 1 == sz; } //---------------------- int replacement(int n, int gondolaSeq[], int replacementSeq[]) { } //---------------------- int countReplacement(int n, int inputSeq[]) { }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 252 KB | Output is correct |
2 | Correct | 3 ms | 504 KB | Output is correct |
3 | Correct | 2 ms | 504 KB | Output is correct |
4 | Correct | 2 ms | 536 KB | Output is correct |
5 | Correct | 2 ms | 540 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 540 KB | Output is correct |
2 | Correct | 3 ms | 540 KB | Output is correct |
3 | Correct | 2 ms | 548 KB | Output is correct |
4 | Correct | 2 ms | 572 KB | Output is correct |
5 | Correct | 2 ms | 600 KB | Output is correct |
6 | Correct | 8 ms | 1364 KB | Output is correct |
7 | Correct | 19 ms | 2128 KB | Output is correct |
8 | Correct | 14 ms | 2128 KB | Output is correct |
9 | Correct | 6 ms | 2128 KB | Output is correct |
10 | Correct | 14 ms | 2128 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 3 ms | 2128 KB | Output is correct |
2 | Correct | 2 ms | 2128 KB | Output is correct |
3 | Correct | 2 ms | 2128 KB | Output is correct |
4 | Correct | 2 ms | 2128 KB | Output is correct |
5 | Correct | 2 ms | 2128 KB | Output is correct |
6 | Correct | 8 ms | 2128 KB | Output is correct |
7 | Correct | 17 ms | 2128 KB | Output is correct |
8 | Correct | 15 ms | 2128 KB | Output is correct |
9 | Correct | 6 ms | 2128 KB | Output is correct |
10 | Correct | 13 ms | 2128 KB | Output is correct |
11 | Incorrect | 2 ms | 2128 KB | Output isn't correct |
12 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 2128 KB | Integer 0 violates the range [1, 76] |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 2128 KB | Integer 0 violates the range [1, 76] |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 2128 KB | Integer 0 violates the range [1, 76] |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 2128 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 2128 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 2128 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 2128 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |