結果

問題 No.2063 ±2^k operations (easy)
ユーザー AsahiAsahi
提出日時 2023-01-06 18:28:18
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 1,075 bytes
コンパイル時間 2,556 ms
コンパイル使用メモリ 78,632 KB
実行使用メモリ 42,348 KB
最終ジャッジ日時 2024-05-07 18:36:35
合計ジャッジ時間 6,764 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
41,308 KB
testcase_01 AC 128 ms
41,048 KB
testcase_02 AC 116 ms
41,344 KB
testcase_03 AC 112 ms
41,060 KB
testcase_04 AC 96 ms
39,820 KB
testcase_05 AC 115 ms
40,932 KB
testcase_06 AC 103 ms
40,016 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 109 ms
40,968 KB
testcase_11 AC 107 ms
41,260 KB
testcase_12 AC 107 ms
41,216 KB
testcase_13 AC 115 ms
41,212 KB
testcase_14 AC 99 ms
40,264 KB
testcase_15 WA -
testcase_16 AC 109 ms
41,300 KB
testcase_17 AC 163 ms
42,344 KB
testcase_18 AC 163 ms
42,348 KB
testcase_19 AC 174 ms
41,932 KB
testcase_20 AC 170 ms
41,928 KB
testcase_21 AC 165 ms
41,976 KB
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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();
    }
}
0