Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: purihorharin

Problemset: A.Circle Area

Language: cpp

Time: 0.003 second

Submitted On: 2026-03-20 11:28:07

#include <iostream>
#include <iomanip>
#include <vector>
using namespace std;

int main () {
    cin.tie(nullptr);
    ios_base::sync_with_stdio(false);

    int n, m;
    cin >> n >> m;
    int x, y;
    int i = 0;
    double r;
    while (true) {
        size_t ref;
        string str;
        cin >> str;
        ref = str.find('#');
        if (ref != string::npos) {
            x = ref;
            y = i;
            break;
        }
        i++;
    }
    while (true) {
        size_t ref;
        string str;
        cin >> str;
        ref = str.find('#');
        if (ref == string::npos) {
            r = double(i - y + 1) / 2.0;
            y += (i - y) / 2;
            break;
        }
        i++;
    }
    cout << y+1 << " " << x+1 << "\n" << fixed << setprecision(2) << 3.14 * r * r;
}