绝望,感觉自己的ACM之路走不下去了,一个简单的lucas定理,折腾了都三天了,还是AC不了,我是不是该放弃了?
今天,又是用水题签到的一天
#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 ans = 1;
float a,b;
cin >> a >> b;
double s = PI*(a*a+b*b)/2;
ans += s/50;
printf("Property %d: This property will begin eroding in year %d.\n",i,ans);
}
cout << "END OF OUTPUT." << endl;
}
return 0;
}