#include <iostream>
using namespace std;
int main()
{
int N,M,K,i,j;
cin>>N>>M>>K;
long a[N][M];
for (i=1;i<=N;i++)
for (j=1;j<=M;j++)
cin>>a[i][j];
for (i=1;i<=N;i++)
{
for (j=1;j<=M;j++)
if (j!=K) cout<<a[i][j]<<" ";
cout<<endl;
}
return 0;
}
Sper că te-am ajutat :)