結果

問題 No.2063 ±2^k operations (easy)
ユーザー Inoue hayate
提出日時 2022-09-17 04:35:23
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 372 bytes
コンパイル時間 445 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 52,736 KB
最終ジャッジ日時 2024-12-22 00:17:21
合計ジャッジ時間 1,977 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 19 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

n = input()

if n[len(n)-1] == "1":
    n = n[0:len(n)-1] + "0"
    count = n.count("1")
    if count == 1:
        print("Yes")
    else:
        print("No")
else:
    if n.count("1") == 2:
        print("Yes")
    else:
        index = n.find("0")
        if n[0:index].count("0") == 0 & n.count("1") >= 2:
            print("Yes")
        else:
            print("No")
0