fork download
  1. #include <stdio.h>
  2. //입력값 보류 ㅡ 그리고 출력.
  3.  
  4. int main(){
  5. int crnt, save = 1, dx = 1;
  6. for(int y = 0 ; y < 10 ; y++ , puts("")){
  7. for(int x = 0 ; x < 10 ; x++){
  8. scanf("%d ", &crnt);
  9. if(crnt == 1){
  10. printf("9");
  11. }
  12. else if(crnt == 0 && dx <= x){
  13. printf("9");
  14. dx = x+1;
  15. }else{
  16. printf("%d",crnt);
  17. }
  18. }
  19. }
  20. return 0;
  21. }
  22.  
Success #stdin #stdout 0s 5304KB
stdin
1 1 1 1 1 1 1 1 1 1
1 0 0 1 0 0 0 0 0 1
1 0 0 1 1 1 0 0 0 1
1 0 0 0 0 0 0 1 0 1
1 0 0 0 0 0 0 1 0 1
1 0 0 0 0 1 0 1 0 1
1 0 0 0 0 1 2 1 0 1
1 0 0 0 0 1 0 0 0 1
1 0 0 0 0 0 0 0 0 1
1 1 1 1 1 1 1 1 1 1
stdout
9999999999
9999999999
9009990009
9000000909
9000000909
9000090909
9000092909
9000090009
9000000009
9999999999