# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
58598 | 2018-07-18T11:23:18 Z | RezwanArefin01 | 곤돌라 (IOI14_gondola) | C++17 | 22 ms | 1020 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; } } return 1; } //---------------------- int replacement(int n, int gondolaSeq[], int replacementSeq[]) { } //---------------------- int countReplacement(int n, int inputSeq[]) { }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 248 KB | Output is correct |
2 | Correct | 2 ms | 504 KB | Output is correct |
3 | Correct | 2 ms | 504 KB | Output is correct |
4 | Correct | 2 ms | 504 KB | Output is correct |
5 | Correct | 4 ms | 504 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 3 ms | 504 KB | Output is correct |
2 | Correct | 3 ms | 572 KB | Output is correct |
3 | Correct | 4 ms | 592 KB | Output is correct |
4 | Correct | 3 ms | 592 KB | Output is correct |
5 | Correct | 2 ms | 592 KB | Output is correct |
6 | Correct | 8 ms | 720 KB | Output is correct |
7 | Correct | 14 ms | 892 KB | Output is correct |
8 | Correct | 16 ms | 1020 KB | Output is correct |
9 | Correct | 6 ms | 1020 KB | Output is correct |
10 | Correct | 22 ms | 1020 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 3 ms | 1020 KB | Output is correct |
2 | Correct | 2 ms | 1020 KB | Output is correct |
3 | Correct | 3 ms | 1020 KB | Output is correct |
4 | Correct | 2 ms | 1020 KB | Output is correct |
5 | Correct | 2 ms | 1020 KB | Output is correct |
6 | Correct | 7 ms | 1020 KB | Output is correct |
7 | Correct | 17 ms | 1020 KB | Output is correct |
8 | Correct | 21 ms | 1020 KB | Output is correct |
9 | Correct | 10 ms | 1020 KB | Output is correct |
10 | Correct | 16 ms | 1020 KB | Output is correct |
11 | Incorrect | 2 ms | 1020 KB | Output isn't correct |
12 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 3 ms | 1020 KB | Integer 0 violates the range [1, 76] |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 1020 KB | Integer 0 violates the range [1, 76] |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 3 ms | 1020 KB | Integer 0 violates the range [1, 76] |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 3 ms | 1020 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 3 ms | 1020 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 1020 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 3 ms | 1020 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |