結果

問題 No.2063 ±2^k operations (easy)
ユーザー ikomaikoma
提出日時 2022-09-02 21:30:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 155 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 87,108 KB
実行使用メモリ 77,140 KB
最終ジャッジ日時 2023-08-10 03:22:40
合計ジャッジ時間 3,569 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
71,740 KB
testcase_01 AC 88 ms
71,600 KB
testcase_02 AC 88 ms
71,904 KB
testcase_03 AC 91 ms
71,824 KB
testcase_04 AC 91 ms
71,356 KB
testcase_05 AC 88 ms
71,824 KB
testcase_06 AC 86 ms
71,644 KB
testcase_07 AC 89 ms
71,840 KB
testcase_08 AC 88 ms
71,540 KB
testcase_09 AC 89 ms
71,688 KB
testcase_10 AC 87 ms
71,596 KB
testcase_11 AC 90 ms
71,832 KB
testcase_12 AC 88 ms
71,720 KB
testcase_13 AC 88 ms
71,808 KB
testcase_14 AC 86 ms
71,776 KB
testcase_15 AC 87 ms
71,608 KB
testcase_16 AC 87 ms
71,672 KB
testcase_17 AC 105 ms
77,140 KB
testcase_18 AC 100 ms
77,096 KB
testcase_19 AC 97 ms
76,780 KB
testcase_20 AC 97 ms
76,808 KB
testcase_21 AC 102 ms
77,012 KB
testcase_22 AC 102 ms
77,068 KB
testcase_23 AC 100 ms
77,108 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