Submission #15203

#TimeUsernameProblemLanguageResultExecution timeMemory
15203gs14004분배 (kriii3_Q)C++14
24 / 24
8 ms1736 KiB
#include <cstdio> #include <cmath> #include <algorithm> #include <iostream> #include <iomanip> using namespace std; typedef long long lint; lint bino[44][44]; int main(){ int n, k; scanf("%d %d",&n,&k); int pt = 0; for(int i=0; i<(1<<k); i++){ for(int j=0; j<(1<<(n-k-1)); j++){ printf("%d %d ",pt,((1<<n) - 1) ^ pt); pt++; } puts(""); } }
#Verdict Execution timeMemoryGrader output
Fetching results...