Advertisement
MonsterScripter

CodinGame_2023_08_22__22_07_45__qr_code.c

Aug 22nd, 2023
796
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.50 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <string.h>
  4. #include <stdbool.h>
  5.  
  6. /**
  7.  * Auto-generated code below aims at helping you parse
  8.  * the standard input according to the problem statement.
  9.  **/
  10.  
  11. int main()
  12. {
  13.     for (int i = 0; i < 16; i++) {
  14.         char line[17];
  15.         scanf("%[^\n]", line); fgetc(stdin);
  16.         for (int j=0; j<strlen(line); j++) {
  17.             printf("%c", line[j]=='1' ? '#' : line[j] == '0' ? ' ' : '\0');
  18.         }
  19.         printf("\n");
  20.     }
  21.  
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement