72.
#include<iostream>74.
#include<fstream>
#include<iomanip>
using namespace std;
int main()
{int n,a[100][100],i,j,k,p;
ifstream f("date");
f>>n;
k=1;
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
if(i+j<=n+1)
{a[i][j]=k;
k++;}
k=1;
for(j=n;j>0;j--)
for(i=n;i>0;i--)
if(i+j>=n+1)
{a[i][j]=k;
k++;}
for(i=1;i<=n;i++)
{ for(j=1;j<=n;j++)
cout<<setw(3)<<a[i][j];
cout<<endl;
}
}
#include<iostream>75.
#include<fstream>
#include<iomanip>
using namespace std;
int main()
{int n,a[100][100],i,j,k,p,v[100];
v[0]=0;
v[1]=1;
ifstream f("date");
f>>n;
k=1;
for(i=2;i<=n*n;i++)
v[i]=v[i-1]+v[i-2];
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
{a[i][j]=v[k]%10;
k++;}
for(i=1;i<=n;i++)
{for(j=1;j<=n;j++)
cout<<setw(3)<<a[i][j];
cout<<endl;}
}
#include<iostream>81.
#include<fstream>
#include<iomanip>
using namespace std;
int main()
{int n,a[100][100],i,j,k,p,v[100];
v[0]=0;
v[1]=1;
ifstream f("date");
f>>n;
k=1;
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
{a[i][j]=(i+j)*(i+j);}
for(i=1;i<=n;i++)
{for(j=1;j<=n;j++)
cout<<setw(3)<<a[i][j];
cout<<endl<<endl<<endl;}
}
#include<iostream>82.
#include<fstream>
#include<iomanip>
using namespace std;
int main()
{int n,a[100][100],i,j,k,p,v[100],m,s=0;
v[0]=0;
v[1]=1;
ifstream f("date");
cin>>n>>m>>k;
for(i=1;i<=n;i++)
for(j=1;j<=m;j++)
f>>a[i][j];
for(j=1;j<=m;j++)
for(i=1;i<=n;i++)
if(a[i][j]==k)
{s=s+j;break;}
cout<<s;
}
#include<iostream>86.
#include<fstream>
#include<iomanip>
using namespace std;
int main()
{int n,a[100][100],i,j,k,p,v[100],m,s=1;
v[0]=0;
v[1]=1;
ifstream f("date");
cin>>n>>m>>k;
for(i=1;i<=n;i++)
for(j=1;j<=m;j++)
f>>a[i][j];
for(j=1;j<=m;j++)
for(i=1;i<=n;i++)
if(a[i][j]==k)
{s=s*j;break;}
cout<<s;
}
#include<iostream>87.
#include<fstream>
#include<iomanip>
using namespace std;
int main()
{int n,a[100][100],i,j,k,p,v[100];
ifstream f("date");
f>>n;
k=1;
for(i=1;i<=2*n;i+=2)
for(j=1;j<=2*n;j++)
{a[i][j]=k;
k+=2;}
k=2;
for(i=2;i<=2*n;i+=2)
for(j=2*n;j>0;j--)
{a[i][j]=k;k+=2;}
for(i=1;i<=2*n;i++)
{for(j=1;j<=2*n;j++)
cout<<setw(3)<<a[i][j];
cout<<endl;}
}
#include<iostream>88.
#include<fstream>
#include<iomanip>
using namespace std;
int main()
{int n,a[100][100],i,j,p,v[100],k;
float s=0;
ifstream f("date");
f>>n;
k=0;
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
f>>a[i][j];
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
if(i>j && a[i][j]>0)
{s=s+a[i][j];
k++;}
cout<<(float)s/k;
/*for(i=1;i<=2*n;i++)
{for(j=1;j<=2*n;j++)
cout<<setw(3)<<a[i][j];
cout<<endl;}*/
}
#include<iostream>89.
#include<fstream>
#include<iomanip>
using namespace std;
int main()
{int n,a[100][100],i,j,p,v[100],k;
float s=0;
ifstream f("date");
f>>n;
k=0;
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
f>>a[i][j];
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
if(i<j && a[i][j]>0)
{s=s+a[i][j];
k++;}
cout<<(float)s/k;
/*for(i=1;i<=2*n;i++)
{for(j=1;j<=2*n;j++)
cout<<setw(3)<<a[i][j];
cout<<endl;}*/
}
#include<iostream>90.
#include<fstream>
#include<iomanip>
using namespace std;
int main()
{int n,a[100][100],i,j,p,v[100],k;
v[0]=0;
v[1]=1;
ifstream f("date");
f>>n;
k=0;
for(i=2;i<=n*n;i++)
v[i]=v[i-1]+v[i-2];
for(i=1;i<=n;i++)
if(i%2==1)
for(j=1;j<=n;j++)
{a[i][j]=v[k];k++;}
else for(j=n;j>0;j--)
{a[i][j]=v[k];k++;}
for(i=1;i<=n;i++)
{for(j=1;j<=n;j++)
cout<<setw(5)<<a[i][j];
cout<<endl;}
}
#include<iostream>92.
#include<fstream>
#include<iomanip>
using namespace std;
int main()
{int n,a[100][100],i,j,p,v[100],s1=0,s2=0,k;
ifstream f("date");
f>>n;
float m1,m2,k1,k2;
m1=m2=k1=k2=0;
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
f>>a[i][j];
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
{if(i<j && a[i][j]>0)
{k1++;
s1+=a[i][j];}
else if(i>j && a[i][j]>0)
{k2++;
s2+=a[i][j];}
}
m1=(double)s1/k1;
m2=(double)s2/k2;
cout<<m1-m2;
/*for(i=1;i<=n;i++)
{for(j=1;j<=n;j++)
cout<<setw(5)<<a[i][j];
cout<<endl;}*/
}
#include<iostream>
#include<fstream>
#include<iomanip>
using namespace std;
int main()
{int n,a[100][100],i,j,p,v[100],s1=0,s2=0,k,mini=INT_MAX,ii,jj,m;
ifstream f("date");
f>>m>>n;
for(i=1;i<=m;i++)
for(j=1;j<=n;j++)
f>>a[i][j];
for(i=1;i<=m;i++)
for(j=1;j<=n;j++)
if(a[i][j]<mini)
mini=a[i][j];
for(i=1;i<=m;i++)
for(j=1;j<=n;j++)
if(a[i][j]==mini)
{ii=1;jj=j;}
for(i=ii;i<=m;i++)
for(j=1;j<=n;j++)
a[i][j]=a[i+1][j];
m--;
for(i=1;i<=m;i++)
for(j=jj;j<=n;j++)
a[i][j]=a[i][j+1];
n--;
for(i=1;i<=m;i++)
{for(j=1;j<=n;j++)
cout<<setw(5)<<a[i][j];
cout<<endl;}
}