結果

問題 No.784 「,(カンマ)」
ユーザー 中庭知佳
提出日時 2022-11-15 22:52:19
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 278 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-16 21:33:55
合計ジャッジ時間 952 ms
ジャッジサーバーID
(参考情報)
judge6 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

s=input()
m=len(s)
ans=""

if m <= 3:
    print(s)
elif m <= 6:
    a=s[:-3]
    b=s[-3:]
    ans = "," + b
    print(a + ans)
elif m <= 9:
    a=s[-6:-3]
    b=s[-3:]
    c=s[:-6]
    ans1 = "," + b
    ans2 = "," + a
    print(c + ans2 + ans1)
else:
    print("1,000,000,000")
0