Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

你这样一行输入一行输出都能行,好神奇

Posted by zhepeng123 at 2016-10-31 19:12:11 on Problem 1005
In Reply To:很简单的题目,WA的自己看,不解释 Posted by:201501060326 at 2016-03-27 21:48:36
> #include <iostream>
> #include <cmath>
> using namespace std;
> double pi=3.1415926;
> int main()
> {
>     int k,count=1;
>     double s,x,y;
>     cin>>k;
>     while(k--)
>     {
>         cin>>x>>y;
>         s=(pi/2)*(x*x+y*y);
>         cout<<"Property "<<count++<<": This property will begin eroding in year "<<(int)(s/(double)50+1)<<"."<<endl;
>     }
>     cout<<"END OF OUTPUT."<<endl;
>     return 0;
> }

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator