Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int ops=0;
- for(int a=i;a<n;a++)
- {
- if(ops==1) break;
- for(int b=0;b<m;b++)
- {
- if(a==i && b<j) continue;
- if(linha[a][b][i]&(i<<j))
- {
- for(int x=0;x<=n;x++)
- {
- int aux=linha[a][b][x];
- linha[a][b][x]=linha[i][j][x];
- linha[i][j][x]=aux;
- }
- ops=1;
- if(ops==1) break;
- }
- }
- if(ops==1) break;
- }
Add Comment
Please, Sign In to add comment