# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
15357 | cki86201 | 분배 (kriii3_Q) | C++98 | 5 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.
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main(){
int n, k;
scanf("%d%d", &n, &k);
int i;
for (i = 0; i < 1 << k; i++){
for (int j = i; j < 1 << n; j += 1 << (k + 1)){
printf("%d %d ", j, j + (1 << (k + 1)) - 2 * i - 1);
}
puts("");
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |