結果

問題 No.2063 ±2^k operations (easy)
ユーザー flygon
提出日時 2022-09-15 22:37:38
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 317 bytes
コンパイル時間 307 ms
コンパイル使用メモリ 82,332 KB
実行使用メモリ 75,768 KB
最終ジャッジ日時 2024-12-17 16:30:26
合計ジャッジ時間 2,278 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

n = input()
x = []
cnt = 0
for i,c in enumerate(n):
  if c == "1": cnt += 1
  if i == 0:
    x.append(c)
  else:
    if n[i-1] == c: continue
    else:
      x.append(x)

if cnt == 1: print("No");exit()
if cnt == 2: print("Yes");exit()
elif len(x) == 1:print('No')
elif len(x) == 2:
  print('Yes')
else:
  print('No')
0