結果
| 問題 |
No.2063 ±2^k operations (easy)
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2022-09-08 01:21:07 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 51 ms / 2,000 ms |
| コード長 | 308 bytes |
| コンパイル時間 | 104 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-23 16:49:22 |
| 合計ジャッジ時間 | 1,675 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
N=input()
if N.count("1")<=1:
print("No")
exit()
if N.count("1")==2:
print("Yes")
exit()
flag=0
for i in range(len(N)):
if flag==0 and N[i]=="1":
flag=1
if flag==1 and N[i]=="0":
flag=2
if flag==2 and N[i]=="1":
print("No")
exit()
print("Yes")
titia