結果

問題 No.2063 ±2^k operations (easy)
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-09-02 22:01:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 242 bytes
コンパイル時間 218 ms
コンパイル使用メモリ 82,148 KB
実行使用メモリ 72,660 KB
最終ジャッジ日時 2024-04-27 21:33:48
合計ジャッジ時間 1,722 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
53,420 KB
testcase_01 AC 33 ms
51,944 KB
testcase_02 AC 32 ms
52,668 KB
testcase_03 AC 30 ms
52,020 KB
testcase_04 AC 31 ms
52,356 KB
testcase_05 AC 31 ms
52,084 KB
testcase_06 AC 30 ms
53,128 KB
testcase_07 AC 32 ms
51,824 KB
testcase_08 AC 30 ms
51,824 KB
testcase_09 AC 30 ms
52,920 KB
testcase_10 AC 30 ms
53,656 KB
testcase_11 AC 34 ms
52,612 KB
testcase_12 AC 37 ms
52,508 KB
testcase_13 WA -
testcase_14 AC 30 ms
52,240 KB
testcase_15 AC 31 ms
51,824 KB
testcase_16 AC 31 ms
51,808 KB
testcase_17 AC 32 ms
52,752 KB
testcase_18 AC 32 ms
52,012 KB
testcase_19 AC 33 ms
52,888 KB
testcase_20 AC 33 ms
52,496 KB
testcase_21 AC 37 ms
66,024 KB
testcase_22 AC 39 ms
72,660 KB
testcase_23 AC 40 ms
71,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = input()
c = n.count("1")
if c == 1:
    print("No")
elif c == 2:
    print("Yes")
else:
    num = 0
    for a,na in zip(n,n[1:]):
        if a != na:
            num += 1
    if num == 1:
        print("Yes")
    else:
        print("No")
0