結果

問題 No.2063 ±2^k operations (easy)
ユーザー gr1msl3ygr1msl3y
提出日時 2022-09-02 21:25:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 35 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 82,072 KB
実行使用メモリ 58,900 KB
最終ジャッジ日時 2024-04-27 20:48:47
合計ジャッジ時間 1,593 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
52,392 KB
testcase_01 AC 31 ms
52,000 KB
testcase_02 AC 31 ms
51,752 KB
testcase_03 AC 31 ms
52,144 KB
testcase_04 AC 32 ms
52,708 KB
testcase_05 AC 31 ms
52,620 KB
testcase_06 AC 31 ms
51,688 KB
testcase_07 AC 30 ms
52,568 KB
testcase_08 AC 30 ms
51,904 KB
testcase_09 AC 29 ms
53,096 KB
testcase_10 AC 29 ms
52,180 KB
testcase_11 AC 30 ms
52,220 KB
testcase_12 AC 30 ms
52,792 KB
testcase_13 AC 35 ms
53,688 KB
testcase_14 AC 32 ms
52,500 KB
testcase_15 AC 31 ms
51,820 KB
testcase_16 AC 30 ms
53,076 KB
testcase_17 AC 31 ms
52,948 KB
testcase_18 AC 30 ms
52,728 KB
testcase_19 AC 31 ms
52,832 KB
testcase_20 AC 32 ms
52,272 KB
testcase_21 AC 35 ms
58,900 KB
testcase_22 AC 31 ms
53,492 KB
testcase_23 AC 30 ms
53,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
ct1 = N.count('1')
if ct1 == 2:
    print('Yes')
    exit()
elif ct1 == 1:
    print('No')
    exit()
ind = 0
while ind < len(N) and N[ind] == '1':
    ind += 1
print('Yes' if ind == ct1 else 'No')
0