Submission #916391

#TimeUsernameProblemLanguageResultExecution timeMemory
916391Jakub_WozniakPermutation (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; }

Compilation message (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...