結果
| 問題 | No.784 「,(カンマ)」 |
| コンテスト | |
| ユーザー |
_KingdomOfMoray
|
| 提出日時 | 2019-12-06 11:32:13 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 2,000 ms |
| コード長 | 280 bytes |
| 記録 | |
| コンパイル時間 | 255 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-12-23 05:04:27 |
| 合計ジャッジ時間 | 1,438 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
n = input()
listed_m = list(str(n))
listed_m.reverse()
list_buf = []
for i in range(len(listed_m)):
if i % 3 == 0 and i != 0:
list_buf.append(',')
list_buf.append(listed_m[i])
list_res = list(reversed(list_buf))
res = ''.join(list_res)
print(res)
_KingdomOfMoray