Advertisement
f1recracker

Untitled

Feb 28th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. #define NODE_MAX 500000
  4.  
  5. using namespace std;
  6.  
  7. int main(){
  8.     bool graph[NODE_MAX][NODE_MAX];
  9.     int t;
  10.     long int n, i;
  11.     cin >> t;
  12.     cin >> n;
  13.  
  14.     while (t--){
  15.         for (i = 0; i < n; i++){
  16.             for (j = 0; j < n; j++){
  17.                 cin >> graph[i][j];
  18.                 graph[i][j] = !(graph[i][j]);
  19.             }
  20.         }
  21.     }
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement