結果

問題 No.2063 ±2^k operations (easy)
ユーザー gr1msl3ygr1msl3y
提出日時 2022-09-02 21:25:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 311 ms
コンパイル使用メモリ 82,240 KB
実行使用メモリ 58,180 KB
最終ジャッジ日時 2024-11-16 02:14:39
合計ジャッジ時間 2,027 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

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