No.784 ",(Comma)"
レベル :
/ AI推定難易度 : 124
/ 実行時間制限 : 1ケース 2.000秒 / メモリ制限
: 512 MB / 標準ジャッジ問題
タグ : / 解いたユーザー数 510
作問者 :
nmnmnmnmnmnmnm
/ テスター :
ciel
タグ : / 解いたユーザー数 510
作問者 :
nmnmnmnmnmnmnm
/ テスター :
問題文最終更新日: 2018-10-28 02:28:04
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Back to the original
yukicoder contest 205
(順位表)
の他の問題:
Problem Statement
You are given a non-negative integer $N$. Insert a "," (comma) every 3 digits, counting from the lowest digit.
Note that you must not put a "," (comma) at the beginning.
Input
$N$
$N$ is a non-negative integer. $0 \le N \le 1000000000 = 10^9$
Output
Output the answer in one line.
Print a newline at the end.
Sample
Sample 1
Input
123456
Output
123,456
Sample 2
Input
12345678
Output
12,345,678
Sample 3
Input
123
Output
123
There are also cases where no "," (comma) is added.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。