Submission #19066

#TimeUsernameProblemLanguageResultExecution timeMemory
19066Namnamseo분배 (kriii3_Q)C++14
24 / 24
4 ms1084 KiB
#include <cstdio> int main() { int n,k; scanf("%d%d",&n,&k); int i,j; for(i=0;i<(1<<k);++i){ for(j=i*(1<<(n-k-1));j<(i+1)*(1<<(n-k-1));++j) printf("%d %d ",j,((1<<n)-1)^j); putchar(10); } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...