結果
| 問題 |
No.784 「,(カンマ)」
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-02-21 10:35:34 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 2,000 ms |
| コード長 | 197 bytes |
| コンパイル時間 | 126 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2024-11-17 06:07:41 |
| 合計ジャッジ時間 | 1,177 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
s = input()
l = len(s)
x = l % 3
str = ''
if l > 3 :
for i in range(l) :
str += s[i]
if (i+1)%3 == x and i+1<l:
str += ','
else :
str = s
print(str)