結果
問題 | No.784 「,(カンマ)」 |
ユーザー |
![]() |
提出日時 | 2025-03-20 21:16:19 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 36 ms / 2,000 ms |
コード長 | 214 bytes |
コンパイル時間 | 150 ms |
コンパイル使用メモリ | 82,708 KB |
実行使用メモリ | 53,352 KB |
最終ジャッジ日時 | 2025-03-20 21:17:12 |
合計ジャッジ時間 | 1,225 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
n = input().strip()reversed_n = n[::-1]chunks = []for i in range(0, len(reversed_n), 3):chunk = reversed_n[i:i+3]chunks.append(chunk[::-1])chunks = chunks[::-1]result = ",".join(chunks)print(result)