# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
916391 | 2024-01-25T19:30:41 Z | Jakub_Wozniak | 순열 (APIO22_perm) | C++17 | 0 ms | 344 KB |
#include <bits/stdc++.h> using namespace std; vector<int> construct_permutation(long long n) { long long akt = 200; bool b = 0; vector <int> v; while (n) { if (n == 1) break; if (n % 2) { v.push_back(0); } v.push_back(akt); n /= 2; akt--; } return v; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 344 KB | Integer 200 violates the range [0, 1] |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 344 KB | Integer 200 violates the range [0, 1] |
2 | Halted | 0 ms | 0 KB | - |