Submission
Status:
PPPPPPPPPP
Score: 100
User: fluke
Problemset: A.Circle Area
Language: cpp
Time: 0.002 second
Submitted On: 2025-03-01 15:59:04
#include <bits/stdc++.h>
#define ll long long
#define f first
#define s second
#define pii pair<int,int>
#define emb emplace_back
#define em emplace
#define pb push_back
#define all(x) x.begin(),x.end()
#define DB cout<<"\n";system("pause");
using namespace std;
int main(){
//ios::sync_with_stdio(false);cin.tie(0);
int n,m;
cin>>n>>m;
vector <int> row(n+1);
vector <int> colum(m+1);
vector <string> cer(n+1);
for(int i=1;i<=n;i++){
cin>>cer[i];
int sum = 0;
for(int j=0;j<m;j++){
if(cer[i][j] == '#'){
colum[j+1]++;
sum++;
}
}
row[i]=sum;
}
int row_max = 0;
int centeri=0 , centerj=0;
for(int i=1;i<=n;i++){
if(row[i] > row_max){
row_max = row[i];
centeri=i;
}
}
for(int i=1;i<=m;i++){
if(colum[i] == row_max){
centerj = i;
break;
}
}
cout<<centeri<<" "<<centerj<<"\n";
printf("%.2lf" , 0.25 * 3.14 * row_max * row_max);
}