結果

問題 No.2063 ±2^k operations (easy)
ユーザー ohanaohana
提出日時 2023-10-02 11:30:23
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 193 bytes
コンパイル時間 3,110 ms
コンパイル使用メモリ 86,752 KB
実行使用メモリ 84,020 KB
最終ジャッジ日時 2023-10-02 11:30:31
合計ジャッジ時間 4,056 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,412 KB
testcase_01 AC 71 ms
71,304 KB
testcase_02 AC 66 ms
71,452 KB
testcase_03 WA -
testcase_04 AC 66 ms
71,044 KB
testcase_05 AC 67 ms
71,240 KB
testcase_06 AC 65 ms
71,332 KB
testcase_07 AC 66 ms
71,176 KB
testcase_08 AC 67 ms
71,456 KB
testcase_09 AC 66 ms
71,424 KB
testcase_10 AC 66 ms
71,164 KB
testcase_11 AC 67 ms
71,424 KB
testcase_12 AC 65 ms
71,104 KB
testcase_13 AC 67 ms
71,520 KB
testcase_14 AC 66 ms
71,492 KB
testcase_15 AC 71 ms
71,276 KB
testcase_16 AC 66 ms
71,412 KB
testcase_17 AC 70 ms
72,084 KB
testcase_18 AC 70 ms
72,320 KB
testcase_19 AC 71 ms
71,884 KB
testcase_20 AC 71 ms
71,952 KB
testcase_21 AC 77 ms
72,808 KB
testcase_22 AC 92 ms
84,020 KB
testcase_23 AC 90 ms
83,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools

s = input()

if set(s[1:]) == {"0"}:
    print("No")
elif s.count("1") == 2 or set(s) == {"1"} or len(list(itertools.groupby(s))) == 2:
    print("Yes")
else:
    print("No")
0