Submission #15357

#TimeUsernameProblemLanguageResultExecution timeMemory
15357cki86201분배 (kriii3_Q)C++98
24 / 24
5 ms1084 KiB
#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 timeMemoryGrader output
Fetching results...