SHARE
TWEET

Untitled

a guest Jul 16th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. const int N=9,M=9;
  4. int grid[N][M];
  5. int vis[N][M];
  6. /****
  7. 53..7....
  8. 6..195...
  9. .98....6.
  10. 8...6...3
  11. 4..8.3..1
  12. 7...2...6
  13. .6....28.
  14. ...419..5
  15. ....8..79
  16. ***/
  17. void init()
  18. {
  19.     int i,j;
  20.     char ch;
  21.     for(i=0;i<N;i++){
  22.         for(j=0;j<M;j++){
  23.             ch=getchar();
  24.             if(ch!='.'){
  25.                 grid[i][j]=ch-'0';
  26.             }
  27.         }
  28.         getchar();
  29.     }
  30.     for(i=0;i<N;i++){
  31.         for(j=0;j<M;j++){
  32.             printf("%d ",grid[i][j]);
  33.         }
  34.         printf("\n");
  35.     }
  36.     printf("\n");
  37. }
  38. bool check_bound()
  39. {
  40.    
  41. }
  42. void dfs(int n,int m,int num)
  43. {
  44.    
  45.     printf("debug\n");
  46.     return ;
  47. }
  48.  
  49. int main()
  50. {
  51.     memset(grid,-1,sizeof(grid));
  52.     memset(vis,-1,sizeof(vis));
  53.     init();
  54.     dfs(vis);
  55.     return 0;
  56. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top