結果

問題 No.2063 ±2^k operations (easy)
ユーザー LyricalMaestro
提出日時 2025-05-23 23:38:48
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 453 bytes
コンパイル時間 532 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 11,520 KB
最終ジャッジ日時 2025-05-23 23:38:51
合計ジャッジ時間 2,560 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

## https://yukicoder.me/problems/no/758

MOD = 10 ** 9 + 7

def main():
    N = input()

    c = 0
    for i in range(len(N)):
        if N[i] == "1":
            c += 1
    if c == 2:
        print("Yes")
        return
    if c == 1:
        print("No")
        return
    
    x = N.split("0")
    x = [y for y in x if len(y) > 0]
    if len(x) == 1:
        print("Yes")
    else:
        print("No")











if __name__ == "__main__":
    main()
0