Submission
Status:
P-PPPPPPPP
Subtask/Task Score:
90/100
Score: 90
User: Neozaawwman1
Problemset: A.Circle Area
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-13 11:23:53
#include<bits/stdc++.h>
using namespace std;
int main(){
int n, m, max_v, idx_y, idx_x;cin>>n>>m;
vector<int> arr;
string ss;
for(int i=0; i<n; i++){
string s;cin>>s;
int k=0;
for(int j=0; j<m; j++){
if(s[j]=='#')k++;
}
if(i==0){
max_v=k;
}
if(max_v<k){
max_v=k;
idx_y=i+1;
ss=s;
}
}
//cout<<(max_v/2)+1<<endl;
int k=0;
for(int i=0; i<m; i++){
if(ss[i]=='#'){
k++;
}
if(k==max_v/2+1){
idx_x=i+1;
//cout<<"end"<<endl;
break;
}
//cout<<k<<endl;
}
cout<<idx_y<<" "<<idx_x<<endl;
double ans=pow((double(max_v)/double(2)),2)*3.14;
//cout<<max_v<<" "<<<<endl;
cout<<fixed<<setprecision(2);
cout<<ans;
return 0;
}