Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <vector>
- using namespace std;
- int main(){
- int a[100][100];
- int n;
- cin >> n;
- for(int i=0;i<n;i++){
- for(int j=0;j<n;j++){
- cin >> a[i][j];
- }
- }
- for(int i=0;i<n;i++){
- int b = 1;
- for(int j=0;j<n;j++){
- if(a[i][j] == a[b][j]){
- continue;
- }else cout << a[i][j] << " ";
- }
- b++;
- cout << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement