結果
| 問題 | No.784 「,(カンマ)」 | 
| コンテスト | |
| ユーザー |  convexineq | 
| 提出日時 | 2021-03-19 02:44:58 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 41 ms / 2,000 ms | 
| コード長 | 147 bytes | 
| コンパイル時間 | 295 ms | 
| コンパイル使用メモリ | 82,448 KB | 
| 実行使用メモリ | 51,968 KB | 
| 最終ジャッジ日時 | 2024-11-17 10:05:14 | 
| 合計ジャッジ時間 | 1,568 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 | 
ソースコード
n = input()
r = []
c = 0
for i in n[::-1]:
    r.append(i)
    c += 1
    if c%3==0: r.append(",")
if r[-1] == ",": r.pop()
print("".join(r[::-1]))
            
            
            
        