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

Re:太简单还有这么多人不过,无语,其实我也是个菜鸟……

Posted by ownownown at 2007-05-12 16:56:37 on Problem 1658
In Reply To:太简单还有这么多人不过,无语,其实我也是个菜鸟…… Posted by:visual at 2006-04-13 14:18:03
> #include<iostream>
> using namespace std;
> 
> int main()
> {
>     long a[4];
>     int n;
>     long  d;
>     cin>>n;
>     for(int i =1; i<=n; i++)
>     {
>      cin>>a[0]>>a[1]>>a[2]>>a[3];
>      if((a[1]-a[0]==a[2]-a[1])&&(a[3]-a[2]==a[2]-a[1])) 
>       cout<<a[0]<<" "<<a[1]<<" "<<a[2]<<" "<<a[3]<<" "<<a[3]+a[2]-a[1]<<endl;
>      else
>      
>        cout<<a[0]<<" "<<a[1]<<" "<<a[2]<<" "<<a[3]<<" "<<a[3]*a[1]/a[0]<<endl;
>      }
>       
>     
> }

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