結果
問題 | No.2063 ±2^k operations (easy) |
ユーザー |
|
提出日時 | 2022-09-02 21:30:20 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 617 bytes |
コンパイル時間 | 408 ms |
コンパイル使用メモリ | 82,200 KB |
実行使用メモリ | 54,228 KB |
最終ジャッジ日時 | 2024-11-16 02:23:04 |
合計ジャッジ時間 | 2,036 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
from math import gcdimport sysint1 = 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 = 998244353s = "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")