Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. ifstream fin("regine.in");
  6. ofstream fout("regine.out");
  7.  
  8. int mat[105][105];
  9. int dx[8]={-1,-1,0,1,1,1,0,-1},dy[8]={0,1,1,1,0,-1,-1,-1};
  10. int main()
  11. {
  12. int n,m,i,nrmv,q,x,y,nrr;
  13. cin>>n>>m;
  14. for(i=1;i<=m;i++)
  15. {
  16. fin>>x>>y;
  17. mat[x][y]=1;
  18. }
  19. for(i=0;i<=n+1;i++)
  20. mat[i][0]=mat[n+1][i]=mat[i][n+1]=mat[0][i]=-1;
  21. nrma=0;
  22. nrr=0;
  23.  
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement