# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
58599 | 2018-07-18T11:27:57 Z | RezwanArefin01 | 곤돌라 (IOI14_gondola) | C++17 | 24 ms | 940 KB |
#include <bits/stdc++.h> #include "gondola.h" using namespace std; int valid(int n, int a[]) { int X, idx = -1; for(int i = 0; i < n; i++) { if(a[i] >= 1 && a[i] <= n) { X = a[i], idx = i; } } if(idx == -1) return 1; for(int i = 0; i < n; i++) { if(a[i] >= 1 && a[i] <= n) { if((X + i - idx + n) % n != a[i] % n) return 0; } } int x = unique(a, a + n) - a; return x == n; } //---------------------- int replacement(int n, int gondolaSeq[], int replacementSeq[]) { } //---------------------- int countReplacement(int n, int inputSeq[]) { }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 3 ms | 248 KB | Output is correct |
2 | Correct | 2 ms | 356 KB | Output is correct |
3 | Correct | 2 ms | 356 KB | Output is correct |
4 | Correct | 2 ms | 416 KB | Output is correct |
5 | Correct | 2 ms | 420 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 3 ms | 468 KB | Output is correct |
2 | Correct | 2 ms | 468 KB | Output is correct |
3 | Correct | 3 ms | 468 KB | Output is correct |
4 | Correct | 3 ms | 468 KB | Output is correct |
5 | Correct | 2 ms | 516 KB | Output is correct |
6 | Correct | 9 ms | 696 KB | Output is correct |
7 | Correct | 13 ms | 940 KB | Output is correct |
8 | Correct | 15 ms | 940 KB | Output is correct |
9 | Correct | 10 ms | 940 KB | Output is correct |
10 | Correct | 14 ms | 940 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 940 KB | Output is correct |
2 | Correct | 2 ms | 940 KB | Output is correct |
3 | Correct | 3 ms | 940 KB | Output is correct |
4 | Correct | 2 ms | 940 KB | Output is correct |
5 | Correct | 2 ms | 940 KB | Output is correct |
6 | Correct | 8 ms | 940 KB | Output is correct |
7 | Correct | 24 ms | 940 KB | Output is correct |
8 | Correct | 12 ms | 940 KB | Output is correct |
9 | Correct | 7 ms | 940 KB | Output is correct |
10 | Correct | 19 ms | 940 KB | Output is correct |
11 | Correct | 3 ms | 940 KB | Output is correct |
12 | Correct | 3 ms | 940 KB | Output is correct |
13 | Correct | 13 ms | 940 KB | Output is correct |
14 | Incorrect | 2 ms | 940 KB | Output isn't correct |
15 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 940 KB | Integer 0 violates the range [1, 76] |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 3 ms | 940 KB | Integer 0 violates the range [1, 76] |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 940 KB | Integer 0 violates the range [1, 76] |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 3 ms | 940 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 3 ms | 940 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 940 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 940 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |