結果

問題 No.2063 ±2^k operations (easy)
ユーザー V_MelvilleV_Melville
提出日時 2022-09-02 21:59:09
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 140 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 82,180 KB
実行使用メモリ 66,220 KB
最終ジャッジ日時 2024-04-27 21:31:23
合計ジャッジ時間 1,983 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,884 KB
testcase_01 AC 42 ms
51,792 KB
testcase_02 AC 43 ms
52,880 KB
testcase_03 AC 39 ms
52,052 KB
testcase_04 AC 39 ms
52,880 KB
testcase_05 WA -
testcase_06 AC 39 ms
51,816 KB
testcase_07 WA -
testcase_08 AC 38 ms
52,552 KB
testcase_09 AC 38 ms
52,344 KB
testcase_10 AC 38 ms
51,420 KB
testcase_11 AC 39 ms
52,760 KB
testcase_12 AC 39 ms
52,148 KB
testcase_13 WA -
testcase_14 AC 38 ms
52,956 KB
testcase_15 AC 39 ms
52,984 KB
testcase_16 AC 40 ms
52,816 KB
testcase_17 AC 44 ms
65,372 KB
testcase_18 AC 44 ms
64,664 KB
testcase_19 AC 43 ms
62,936 KB
testcase_20 AC 44 ms
65,244 KB
testcase_21 WA -
testcase_22 AC 46 ms
64,956 KB
testcase_23 AC 46 ms
66,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
n = len(s)
cnt = 0
for c in s:
    if c == '1':
        cnt += 1
if min(cnt, n-cnt) == 2:
    print("Yes")
else:
    print("No")
0