1326 银行存款输出
Time Limit : 2000/1000 MS(Java/Others) | Memory Limit : 65536/32768 KB(Java/Others)
Submits : 978 | Solved : 306
Description
银行存款的数字每隔三个都有一个逗号‘,’,例如1234567.89,那么存款单上就会是1,234,567.89(这么复杂啊⊙﹏⊙b汗)。那么我们简单点。如果给你一个整数,按上述输出,例如123456789,输出123,456,789.00
Input
输入一个整数n,-10^20 < n < 10^20,建议定义用__int64,读入用scanf("%I64d",&…)。
Output
按存款单上的方式输出,每个都要有小数点后2位哦,亲。
Sample Input
012345678987654321
Sample Output
12,345,678,987,654,321.00
HINT
Source
wowo1gt