d579.
兩條線
--
raincole
| From: [114.34.90.70] |
發表日期
:
2013-11-16 21:21
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
float n,m;
while(scanf("%f",&n)!=EOF)
{
if(n<0)
{
m=-n;
printf("|%0.4f|=%0.4f\n",-(-n),m);
}
else
{
m=n;
printf("|%0.4f|=%0.4f\n",n,m);
}
}
return 0;
}
測資124的時候他寫
WA (line:124)答案不正確您的答案為: |-1752.5699|=1752.5699 正確答案為: |-1752.5700|=1752.5700