제출 #916391

#제출 시각아이디문제언어결과실행 시간메모리
916391Jakub_Wozniak순열 (APIO22_perm)C++17
0 / 100
0 ms344 KiB
#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; }

컴파일 시 표준 에러 (stderr) 메시지

perm.cpp: In function 'std::vector<int> construct_permutation(long long int)':
perm.cpp:6:10: warning: unused variable 'b' [-Wunused-variable]
    6 |     bool b = 0;
      |          ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...