#31290: 不知道哪邊錯了


gatsbyinlync (Gatsby)

學校 : 高雄市私立三信高級家事商業職業學校
編號 : 187388
來源 : [223.139.121.50]
最後登入時間 :
2023-11-08 19:29:59
a453. TOI2010 第一題:一元二次方程式 -- 2010TOI研習營初選 | From: [180.217.216.222] | 發表日期 : 2022-07-22 18:04

m=int(input())
Data=[]
for i in range(m):
    temp=input().split()
    temp=list(map(int,temp))
    calc=(pow(temp[1],2)-4*temp[0]*temp[2])
    if (calc>0 or calc==0):
        Data.append(1)
    else:
        Data.append(0)
for j in Data:
    if j>0:
        print("Yes")
    else:
        print("No")

 
#31317: Re: 不知道哪邊錯了


cges30901 (cges30901)

學校 : 不指定學校
編號 : 30877
來源 : [101.136.203.77]
最後登入時間 :
2024-04-07 15:34:14
a453. TOI2010 第一題:一元二次方程式 -- 2010TOI研習營初選 | From: [106.64.177.211] | 發表日期 : 2022-07-23 17:19

m=int(input())
Data=[]
for i in range(m):
    temp=input().split()
    temp=list(map(int,temp))
    calc=(pow(temp[1],2)-4*temp[0]*temp[2])
    if (calc>0 or calc==0):
        Data.append(1)
    else:
        Data.append(0)
for j in Data:
    if j>0:
        print("Yes")
    else:
        print("No")


根號是無理數

 
ZeroJudge Forum