結果
| 問題 | No.2063 ±2^k operations (easy) |
| コンテスト | |
| ユーザー |
ytft
|
| 提出日時 | 2022-09-03 16:09:28 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 223 bytes |
| コンパイル時間 | 203 ms |
| コンパイル使用メモリ | 82,312 KB |
| 実行使用メモリ | 65,920 KB |
| 最終ジャッジ日時 | 2024-11-17 06:16:06 |
| 合計ジャッジ時間 | 2,047 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 WA * 1 |
ソースコード
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