| ||||||||||
Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
蒟蒻报道,竟提交了2遍,做了七分钟呢,哎,我真是太菜了。include <iostream> #include <cstdio> #include <cmath> using namespace std; int main() { int i, n; double pi, x, y, years; cin >> n; pi = 3.1415926; for(int i = 1;i <= n;i ++){ cin >> x >> y; years = pi * (x * x + y * y) / 100; printf("Property %d: This property will begin eroding in year %d.\n", i, (int) years + 1); } printf("END OF OUTPUT."); return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator