#11137: HELP~~~~~~

#### possible (possible)

School : 慧燈中學
ID : 54700
IP address : [114.45.44.147]
2023-10-28 14:57:29
d579. 兩條線 -- | From: [114.42.134.147] | Post Date : 2016-07-07 11:54

#include <stdio.h>
int main()
{
float a;
while(scanf("%f",&a)!=EOF)
{
if(a<0)
printf("|%.4f|=%.4f\n",a,a*-1);
else if(a>=0)
printf("|%.4f|=%.4f\n",a,a);
}
return 0;
}

第 1 測資點(100%): WA (line:124)
答案不正確

  您的答案為: |-1752.5699|=1752.5699
正確答案為: |-1752.5700|=1752.5700幫幫我~到底要怎麼做?

#11139: Re:HELP~~~~~~

#### Benson86 (nobodyzxc)

School : 國立彰化高級中學
ID : 53437
IP address : [140.113.128.187]
2020-02-25 00:10:53
d579. 兩條線 -- | From: [59.104.123.14] | Post Date : 2016-07-07 17:13

#include
int main()
{
float a;
while(scanf("%f",&a)!=EOF)
{
if(a<0)
printf("|%.4f|=%.4f\n",a,a*-1);
else if(a>=0)
printf("|%.4f|=%.4f\n",a,a);
}
return 0;
}

第 1 測資點(100%): WA (line:124)
答案不正確

  您的答案為: |-1752.5699|=1752.5699
正確答案為: |-1752.5700|=1752.5700幫幫我~到底要怎麼做?

#11154: Re:HELP~~~~~~

#### possible (possible)

School : 慧燈中學
ID : 54700
IP address : [114.45.44.147]
2023-10-28 14:57:29
d579. 兩條線 -- | From: [114.42.134.147] | Post Date : 2016-07-10 15:14

#include
int main()
{
float a;
while(scanf("%f",&a)!=EOF)
{
if(a<0)
printf("|%.4f|=%.4f\n",a,a*-1);
else if(a>=0)
printf("|%.4f|=%.4f\n",a,a);
}
return 0;
}

第 1 測資點(100%): WA (line:124)
答案不正確

  您的答案為: |-1752.5699|=1752.5699
正確答案為: |-1752.5700|=1752.5700幫幫我~到底要怎麼做?

ZeroJudge Forum