結果

問題 No.2063 ±2^k operations (easy)
ユーザー ikomaikoma
提出日時 2022-09-02 21:30:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 155 bytes
コンパイル時間 212 ms
コンパイル使用メモリ 81,756 KB
実行使用メモリ 72,152 KB
最終ジャッジ日時 2024-04-27 20:55:45
合計ジャッジ時間 1,776 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
55,060 KB
testcase_01 AC 33 ms
53,352 KB
testcase_02 AC 34 ms
54,248 KB
testcase_03 AC 34 ms
54,364 KB
testcase_04 AC 34 ms
55,336 KB
testcase_05 AC 35 ms
53,984 KB
testcase_06 AC 34 ms
54,292 KB
testcase_07 AC 33 ms
53,936 KB
testcase_08 AC 33 ms
55,188 KB
testcase_09 AC 35 ms
54,388 KB
testcase_10 AC 34 ms
53,428 KB
testcase_11 AC 32 ms
53,700 KB
testcase_12 AC 36 ms
53,836 KB
testcase_13 AC 34 ms
54,268 KB
testcase_14 AC 33 ms
53,476 KB
testcase_15 AC 33 ms
54,020 KB
testcase_16 AC 33 ms
53,684 KB
testcase_17 AC 47 ms
72,152 KB
testcase_18 AC 44 ms
69,040 KB
testcase_19 AC 43 ms
67,244 KB
testcase_20 AC 46 ms
68,328 KB
testcase_21 AC 46 ms
69,516 KB
testcase_22 AC 46 ms
70,148 KB
testcase_23 AC 45 ms
71,580 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

N=input().strip()
cnt = Counter(N)


print("Yes" if cnt["1"]==2 or sum(map(int,N[cnt["1"]:]))==0 and cnt["1"]>1 else "No")
0