結果
| 問題 | No.2063 ±2^k operations (easy) |
| コンテスト | |
| ユーザー |
shobonvip
|
| 提出日時 | 2022-09-02 21:38:25 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 45 ms / 2,000 ms |
| コード長 | 291 bytes |
| コンパイル時間 | 391 ms |
| コンパイル使用メモリ | 82,260 KB |
| 実行使用メモリ | 59,496 KB |
| 最終ジャッジ日時 | 2024-11-16 02:40:42 |
| 合計ジャッジ時間 | 2,164 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
n = input()
type = 1
cnt = 0
v = 0
mode = 1
for i in range(len(n)):
if type == 1 and n[i] == "0":
type = 0
elif type == 0 and n[i] == "1":
mode = 0
if n[i] == "1":
cnt += 1
#print(cnt, type, mode)
if mode and cnt > 1:
print("Yes")
elif cnt == 2:
print("Yes")
else:
print("No")
shobonvip