結果
| 問題 |
No.784 「,(カンマ)」
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-25 16:51:53 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 170 bytes |
| コンパイル時間 | 226 ms |
| コンパイル使用メモリ | 82,300 KB |
| 実行使用メモリ | 53,576 KB |
| 最終ジャッジ日時 | 2024-11-14 15:54:41 |
| 合計ジャッジ時間 | 1,480 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
n = input()
nr = n[::-1]
ans = ""
for i in range(len(nr)):
ans += nr[i]
#print(ans,i)
if i != len(nr)-1 and i % 3 == 2:
ans += ","
print(ans[::-1])