Anna3O0

Taiere coloana

May 23rd, 2019
45
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std ;
  3. int main (){
  4. int N , M , K , i , j , mat[400][400];
  5. cin >> N >> M >> K ;
  6. for ( i=0; i<N ; ++i)
  7. for ( j=0; j<M ; ++j)
  8. cin>> mat[i][j] ;
  9. for (i=0; i<N ; ++i)
  10. for ( j=K;j<N ; ++j)
  11. mat[i][j] = mat[i][j+1] ;
  12. --M ;
  13. for ( i=0; i<N ; ++i)
  14. {for ( j=0; j<M ; ++j)
  15. cout << mat[i][j] << " " ;
  16. cout << endl ; }
  17. return 0 ;
  18. }
RAW Paste Data