結果

問題 No.784 「,(カンマ)」
ユーザー kohei2019kohei2019
提出日時 2022-04-09 12:26:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 152 bytes
コンパイル時間 1,634 ms
コンパイル使用メモリ 86,996 KB
実行使用メモリ 71,492 KB
最終ジャッジ日時 2023-08-19 16:15:57
合計ジャッジ時間 2,697 ms
ジャッジサーバーID
(参考情報)
judge13 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,268 KB
testcase_01 AC 69 ms
71,208 KB
testcase_02 AC 67 ms
71,268 KB
testcase_03 AC 69 ms
71,292 KB
testcase_04 AC 69 ms
71,492 KB
testcase_05 AC 70 ms
71,440 KB
testcase_06 AC 67 ms
71,448 KB
testcase_07 AC 69 ms
71,288 KB
testcase_08 AC 70 ms
71,268 KB
testcase_09 AC 68 ms
71,324 KB
testcase_10 AC 69 ms
71,292 KB
testcase_11 AC 70 ms
70,996 KB
testcase_12 AC 69 ms
71,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
N = N[::-1]
l = []
for j in range(len(N)):
    if j % 3 == 0:
        l.append(',')
    l.append(N[j])
l.pop(0)
l.reverse()
print(*l,sep='')
0