# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
15198 | myungwoo | 분배 (kriii3_Q) | C++14 | 0 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<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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |