結果

問題 No.2063 ±2^k operations (easy)
ユーザー xZen1xZen1
提出日時 2022-09-02 22:42:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 261 bytes
コンパイル時間 357 ms
コンパイル使用メモリ 86,944 KB
実行使用メモリ 77,348 KB
最終ジャッジ日時 2023-08-10 04:58:36
合計ジャッジ時間 3,030 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,460 KB
testcase_01 AC 68 ms
71,356 KB
testcase_02 AC 69 ms
71,576 KB
testcase_03 AC 68 ms
71,492 KB
testcase_04 AC 68 ms
71,340 KB
testcase_05 AC 67 ms
71,412 KB
testcase_06 AC 68 ms
71,300 KB
testcase_07 AC 68 ms
71,432 KB
testcase_08 AC 68 ms
71,164 KB
testcase_09 AC 69 ms
71,444 KB
testcase_10 AC 67 ms
71,368 KB
testcase_11 AC 66 ms
71,412 KB
testcase_12 AC 66 ms
71,320 KB
testcase_13 AC 69 ms
71,360 KB
testcase_14 AC 69 ms
71,632 KB
testcase_15 AC 70 ms
71,376 KB
testcase_16 AC 68 ms
71,264 KB
testcase_17 AC 72 ms
72,996 KB
testcase_18 AC 71 ms
73,112 KB
testcase_19 AC 73 ms
72,920 KB
testcase_20 AC 72 ms
72,728 KB
testcase_21 AC 75 ms
77,348 KB
testcase_22 AC 70 ms
73,200 KB
testcase_23 AC 70 ms
72,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = list(input())
if n.count("1") == 2:
    print('Yes')
    exit(0)
elif n.count("1") == 1:
    print('No')
    exit(0)
else:
    c = n.count("0")
    for i in range(1,c+1):
        if n[-i] != '0':
            print('No')
            exit(0)
    print('Yes')
0