# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
20224 | byrage | 분배 (kriii3_Q) | C11 | 1 ms | 0 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 <stdio.h>
int main(){
int n,k,i,j,t = 0;
scanf("%d%d",&n, &k);
for (i = 0; i < (1 << k); i++) {
for (j = 0; j < (1 << n - 1); j++) {
if (j == (1 << n - 1) / 2 ) {
t = (1 << n - i - 1);
}
printf("%d ", j + t);
}
t = t >> 1;
printf("\n");
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |