結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,868 KB
testcase_01 AC 32 ms
53,572 KB
testcase_02 AC 32 ms
52,748 KB
testcase_03 AC 29 ms
53,016 KB
testcase_04 AC 31 ms
52,552 KB
testcase_05 AC 35 ms
52,892 KB
testcase_06 AC 31 ms
52,996 KB
testcase_07 AC 31 ms
53,224 KB
testcase_08 AC 33 ms
52,620 KB
testcase_09 AC 31 ms
53,688 KB
testcase_10 AC 32 ms
52,532 KB
testcase_11 AC 32 ms
52,480 KB
testcase_12 AC 30 ms
52,896 KB
testcase_13 AC 31 ms
52,500 KB
testcase_14 AC 31 ms
52,748 KB
testcase_15 AC 31 ms
52,532 KB
testcase_16 AC 30 ms
52,980 KB
testcase_17 AC 31 ms
53,776 KB
testcase_18 AC 31 ms
53,436 KB
testcase_19 AC 32 ms
53,000 KB
testcase_20 AC 32 ms
52,896 KB
testcase_21 AC 32 ms
53,908 KB
testcase_22 AC 33 ms
53,344 KB
testcase_23 AC 35 ms
53,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd
import sys

int1 = lambda x: int(x) - 1

# input = lambda: sys.stdin.buffer.readline()
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
i1 = lambda: int1(input())
mi = lambda: map(int, input().split())
mi1 = lambda: map(int1, input().split())
li = lambda: list(mi())
li1 = lambda: list(mi1())
lli = lambda n: [li() for _ in range(n)]

INF = float("inf")
mod = int(1e9 + 7)
# mod = 998244353

s = "0" + input() + "0"
c = s.count("01")
if c == 1:
    print("Yes" if s.count("11") else "No")
elif c == 2:
    print("Yes" if s.count("11") == 0 else "No")
else:
    print("No")
0