# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
15178 | gs13068 | 분배 (kriii3_Q) | C++98 | 4 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<cstdio>
int main()
{
int i,j,a,b;
scanf("%d%d",&a,&b);
for(i=0;i<(1<<b);i++)
{
for(j=0;j<(1<<(a-b-1));j++)printf("%d %d ",j+i*(1<<(a-b-1)),(1<<a)-j-i*(1<<(a-b-1))-1);
puts("");
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |