Submission #15178

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