結果
| 問題 | No.2063 ±2^k operations (easy) |
| コンテスト | |
| ユーザー |
ytft
|
| 提出日時 | 2022-09-03 16:10:02 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 49 ms / 2,000 ms |
| コード長 | 223 bytes |
| コンパイル時間 | 436 ms |
| コンパイル使用メモリ | 82,416 KB |
| 実行使用メモリ | 65,664 KB |
| 最終ジャッジ日時 | 2024-11-17 06:17:12 |
| 合計ジャッジ時間 | 2,022 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
import sys
input=lambda:sys.stdin.readline().rstrip()
S=input()
cnt=0
toggle=-1
prev='2'
for i in S:
cnt+=int(i)
toggle+=(prev!=i)
prev=i
if cnt==1:
print("No")
elif cnt==2 or toggle<=1:
print("Yes")
else:
print("No")
ytft