結果
| 問題 | 
                            No.2063 ±2^k operations (easy)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2023-01-06 18:28:18 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 1,075 bytes | 
| コンパイル時間 | 1,858 ms | 
| コンパイル使用メモリ | 78,456 KB | 
| 実行使用メモリ | 42,740 KB | 
| 最終ジャッジ日時 | 2024-11-30 13:34:23 | 
| 合計ジャッジ時間 | 5,627 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 15 WA * 6 | 
ソースコード
import java.util.*;
import java.io.*;
import java.math.*;
 
public class Main{
    public static BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));
    public static final int INFI = Integer.MAX_VALUE;
    public static final long INFL = Long.MAX_VALUE;
    public static final int MOD = 1000000007;
    public static PrintWriter output = new PrintWriter(System.out);
    public static Scanner sc = new Scanner(System.in);
    public static final int [] dy4 = {0,1,0,-1};
    public static final int [] dx4 = {1,0,-1,0};
    public static ArrayList<ArrayList<Integer>> list = new ArrayList<>();
    public static ArrayList<Integer> answer = new ArrayList<>();
    public static boolean [] visited ;
    public static void main(String[] args) throws IOException{
        StringTokenizer st;
        //st = new StringTokenizer(buff.readLine());
        String N = sc.next();
        int one = 0;
        for(int i=0;i<N.length();i++) if(N.charAt(i) == '1') one++;
        output.print(one == 1 || one == 0 ? "No":"Yes");
        output.flush();
    }
}