Problem solving report_18.5.7_POJ_1005

Desperate, I feel that I can't go on the road of ACM, a simple Lucas theorem, after three days of tossing, still can't AC, should I give up?

Today is another day to sign in with water questions

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<map>
#include<set>
#include<vector>
#include<cstring>
#define PI 3.141592653
typedef long long ll;
using namespace std;
int main() {
    freopen("in.txt","r",stdin);
    int t;
    while(scanf("%d",&t) != EOF) {
       for(int i = 1; i <= t; i++) {
            int years = 1;
            float a,b;
            cin >> a >> b;
            double s = PI*(a*a+b*b)/2;
            years += s/50;
            printf("Property %d: This property will begin eroding in year %d.\n",i,ans);
       }
        cout << "END OF OUTPUT." << endl;
    }
    return 0;
}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325653387&siteId=291194637