hdu1065
為什么80%的碼農都做不了架構師?>>> ??
http://acm.hdu.edu.cn/showproblem.php?pid=1065
錯了n次了,讓所有的水題汗顏啊!
View Code #include " iostream "using namespace std;
#define pi 3.1415926 // 3.1415927(wrong)
int main()
{
int n;
double a,b,sum;
cin >> n;
int i = 0 ;
while (n -- )
{
cin >> a >> b;
sum = pi * (a * a + b * b) / 2 ;
int x = ( int )(sum / 50 ) + 1 ; // (int)sum/50+1(wrong)
cout << " Property " <<++ i << " : " << " This property will begin eroding in year " ;
cout << x << " . " << endl;
}
cout << " END OF OUTPUT. " << endl;
return 0 ;
}
轉載于:https://my.oschina.net/garyun/blog/602882
總結
- 上一篇: 利用事件进行窗体间传值
- 下一篇: 微信摇骰子转发能看出来吗?教你微信摇骰子