Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- #define maxn 40
- //Declaração dos grafos
- int mat[maxn][maxn];
- int g[maxn][maxn];
- int g2[maxn][maxn];
- void diferenca(int ordem) {
- for(int i = 0;i < ordem;i++) {
- for(int j = 0;j < maxn;j++) {
- if((g[i][j] && !g2[i][j]) || (!g[i][j] && g2[i][j])) {
- mat[i][j] = 1;
- }
- else {
- mat[i][j] = 0;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement