Submission

Status:
----------

Score: 0

User: Asphyrv

Problemset: A.Circle Area

Language: cpp

Time: 0.002 second

Submitted On: 2024-10-27 14:31:53

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main(){
    cin.tie(NULL)->ios_base::sync_with_stdio(false);
    double d, a, maxd = 0, pi = 3.14;
    char c;
    int n, m;
    cin >> n >> m;
    for(int i=0; i<n; i++){
        d = 0;
        for(int j=0; j<m; j++){
            cin >> c;
            if(c == '#'){
                d += 0.5;
            }
        }
        maxd = max(maxd, d);
        //cout << d << ' ' << maxd << ' ' << i << '\n';
    }
    cout << setprecision(2) << fixed << maxd * maxd * pi;

    return 0;
}