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

FT……Re:好无聊的题目,还以为是在有理数域上分解。

Posted by windbells at 2004-12-04 00:27:31 on Problem 2126
In Reply To:好无聊的题目,还以为是在有理数域上分解。 Posted by:zhucheng at 2004-12-03 23:46:14
> #include <iostream>
> #include <iomanip>
> using namespace std;
> 
> int main()
> {
> 	int a,b,c,n;
> 	while(cin>>n)
> 	{
> 		if(n<2)	
> 		{
> 			while(n>=0)
> 			{
> 				n--;
> 				cin>>a;
> 			}
> 			cout<<"YES"<<endl;
> 		}
> 		else if(n==2)
> 		{
> 			cin>>a>>b>>c;
> 			if(b*b>=4*a*c)
> 				cout<<"NO"<<endl;
> 			else
> 				cout<<"YES"<<endl;
> 		}
> 		else
> 		{
> 			while(n>=0)
> 			{
> 				n--;
> 				cin>>a;
> 			}
> 			cout<<"NO"<<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