Toggle navigation
CGOJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Language
中文
ئۇيغۇرچە
English
فارسی
ไทย
한국어
Problem A: 千分位
Problem A: 千分位
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MiB
Submit
ProblemList
Solved: 3
Submit Num: 5
Statistics
ShowOff!
Description
给定一个十进制正整数,请为这个整数每隔三位数字添加一个逗号,注意这个整数可能很长。
Input
单个整数
lns="http://www.w3.org/1998/Math/MathML">
n
n
5
0
%
的数据,
lns="http://www.w3.org/1998/Math/MathML">
1
≤
n
≤
1
0
9
1
≤
n
≤
1
0
9
lns="http://www.w3.org/1998/Math/MathML">
100
%
1
0
0
%
的数据,
lns="http://www.w3.org/1998/Math/MathML">
1
≤
n
≤
1
0
1000
1
≤
n
≤
1
0
1
0
0
0
Output
一个含有千分位的整数表示
Sample Input
Copy
1234567
Sample Output
Copy
1,234,567