# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
19066 | Namnamseo | 분배 (kriii3_Q) | C++14 | 4 ms | 1084 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |