結果

問題 No.423 ハムスター語初級(数詞)
ユーザー sickofrain
提出日時 2016-10-21 01:45:38
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 255 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-11-23 15:58:39
合計ジャッジ時間 987 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 8 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

ham = input()
ham = ham.replace("hamu","1")
ham = ham.replace("ham","0")
if ham[0] == "0":
    pass
else:
    ham = int(ham,2)*2
    ham = format(ham,'b')
    ham = str(ham)
    ham = ham.replace("1","hamu")
    ham = ham.replace("0","ham")
    print(ham)
0