#include<iostream>
#include <iomanip>
using namespace std;
int main (){
int str,stn;
cout<<"Binar matrisin olcusu?"<<endl;
cout<<"Setir: ";
cin>>str;
cout<<"Sutun: ";
cin>>stn;
cout<<"Meqsedleri daxil edin: "<<endl;
int daxil_et[10][10];
int sum=0;
int c[10]; //her bir meqsedin setr uzre cemi
for (int i=0;i<str;i++){
c[i]=0; // ilk qiymet 0 veririk
for (int j=0;j<stn;j++){
if(i!=j){
cout<<"["<<i+1<<"] "<<"["<<j+1<<"]: ";
cin>>daxil_et[i][j];
c[i]+=daxil_et[i][j];
}
}
sum+=c[i];//ceki mueyyen edilir.
}
double v[10];//neticeleri normallasdiririq.
for (int i=0;i<str;i++){
v[i]=double(c[i])/double(sum);
}
double temp; //Cekiler siralanir.
for (int i=0;i<str;i++){
for (int j=0;j<str;j++){
if (v[i]>=v[j]){
temp=v[i];
v[i]=v[j];
v[j]=temp;
}
}
}
for(int i=0;i<str;i++){
cout<<setprecision(2)<<v[i]<<endl;
}
return 0;
}