| ||||||||||
| 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 | |||||||||
好无聊的题目,还以为是在有理数域上分解。#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator