#include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int m,n,x,y,t;
while (cin >> m >> n >> x >> y >> t) { // 注意 while 处理多个 case
double a[m][n],b = 0;
for(int i = 0; i < m;i++)
for(int j = 0;j<n;j++)
cin >> a[i][j];
b=0;
for(int i = 0; i < m;i++)
for(int j = 0;j<n;j++)
b += (a[i][j] / m / n);
if(a[x-1][y-1] > b)
{
cout << "cc" << endl;
cout<<fixed<<setprecision(2);
cout<< 1 - pow((1-a[x-1][y-1]),t) <<endl;
}
else if(a[x-1][y-1] < b)
{
cout << "ss" << endl;
cout<<fixed<<setprecision(2);
cout<< 1 - pow((1-b),t) <<endl;
}
else {
cout << "equal" << endl;
cout<<fixed<<setprecision(2);
cout<< 1 - pow((1-a[x-1][y-1]),t) <<endl;
}
}
}
// 64 位输出请用 printf("%lld")
纯属考数学知识

京公网安备 11010502036488号