結果
| 問題 |
No.2063 ±2^k operations (easy)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-02 22:01:11 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 242 bytes |
| コンパイル時間 | 275 ms |
| コンパイル使用メモリ | 82,100 KB |
| 実行使用メモリ | 73,100 KB |
| 最終ジャッジ日時 | 2024-11-16 03:26:45 |
| 合計ジャッジ時間 | 1,974 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 WA * 1 |
ソースコード
n = input()
c = n.count("1")
if c == 1:
print("No")
elif c == 2:
print("Yes")
else:
num = 0
for a,na in zip(n,n[1:]):
if a != na:
num += 1
if num == 1:
print("Yes")
else:
print("No")