#16171: c重點


giant0620 (BlenderWang)

School : 國立彰化師範大學
ID : 61100
IP address : [1.165.88.5]
Last Login :
2021-05-19 17:23:02
d623. 反方陣 -- leopan0922 | From: [118.163.203.105] | Post Date : 2018-12-01 16:22

while的判斷條件要這樣寫

while(scanf("%d%d%d%d",&a,&b,&c,&d)==4)

才會過,***不能用!=EOF,也不能光靠判斷四個零***

(題意有夠不清楚的.....是想搞死誰

 
#16390: Re:c重點


freedom501999@gmail.com (帥氣魔方生)

School : No School
ID : 88611
IP address : [39.8.203.54]
Last Login :
2019-05-30 22:56:25
d623. 反方陣 -- leopan0922 | From: [27.52.77.116] | Post Date : 2018-12-27 22:08

while的判斷條件要這樣寫

while(scanf("%d%d%d%d",&a,&b,&c,&d)==4)

才會過,***不能用!=EOF,也不能光靠判斷四個零***

(題意有夠不清楚的.....是想搞死誰


補充

請用 float 型別輸入輸出,用 double 莫名其妙拿RE.........

 
ZeroJudge Forum