結果
| 問題 |
No.784 「,(カンマ)」
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-02-02 03:30:25 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 236 bytes |
| コンパイル時間 | 83 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-09-18 20:31:22 |
| 合計ジャッジ時間 | 1,155 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 10 |
ソースコード
import math
N = input()
l = list(N)
count_d = math.ceil(len(N) / 3) - 1
print(count_d)
l.reverse()
for i in range(count_d):
ins = (i + 1) * 3 + i
l.insert(ins, ",")
l.reverse()
ans = ""
for l_i in l:
ans += l_i
print(ans)