結果
| 問題 | 
                            No.2063 ±2^k operations (easy)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             titia
                         | 
                    
| 提出日時 | 2022-09-08 01:18:32 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 324 bytes | 
| コンパイル時間 | 217 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 11,008 KB | 
| 最終ジャッジ日時 | 2024-11-23 16:47:54 | 
| 合計ジャッジ時間 | 1,960 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 14 WA * 7 | 
ソースコード
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()
if flag==2:
    print("Yes")
            
            
            
        
            
titia