fork download
  1. #include <stdio.h>
  2.  
  3. const char d[5] = {'#', ' ', '.', 'o', 'p'};
  4.  
  5. int main(void) {
  6. // your code goes her
  7. int i,j;
  8. int map[5][8] = {{0,0,0,0,0,0,0,0}, //or 벽벽벽벽벽벽벽벽
  9. {0,1,2,2,1,4,1,0},
  10. {0,1,3,3,1,1,1,0},
  11. {0,1,1,1,1,1,1,0},
  12. {0,0,0,0,0,0,0,0}};
  13.  
  14.  
  15. for (i = 0; i < 5; ++i)
  16. {
  17. for(j=0;j <8; ++j)
  18. {
  19. printf("%c", d[map[i][j]]);
  20. }
  21. printf("\n");
  22. }
  23.  
  24. return 0;
  25. }
  26.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
########
# .. p #
# oo   #
#      #
########