Submission #15198

#TimeUsernameProblemLanguageResultExecution timeMemory
15198myungwoo분배 (kriii3_Q)C++14
24 / 24
0 ms1084 KiB
#include<stdio.h> int main() { int N, K; scanf("%d%d", &N, &K); for(int i = 0; i < 1<<N-1; i++){ if( i&((1<<N-K-1)-1) ); else printf("\n"); printf("%d %d ", i, ((1<<N)-1)^i); } return 0; } /* 20000 20000 200 500 500 0 0 0 0 0 20000 20000 200 500 500 20000 20000 200 500 500 */
#Verdict Execution timeMemoryGrader output
Fetching results...