結果

問題 No.969 じゃんけん
ユーザー N_Gakuto7N_Gakuto7
提出日時 2020-04-02 22:14:49
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 488 bytes
コンパイル時間 1,982 ms
コンパイル使用メモリ 71,824 KB
実行使用メモリ 58,176 KB
最終ジャッジ日時 2023-09-11 00:48:43
合計ジャッジ時間 3,356 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
55,700 KB
testcase_01 AC 118 ms
55,476 KB
testcase_02 WA -
testcase_03 AC 117 ms
56,476 KB
testcase_04 WA -
testcase_05 AC 118 ms
55,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
         
class Main{
    public static void main(String[] args) {
        
        try(Scanner sc = new Scanner(System.in)){
 
            int num = Integer.parseInt(sc.next());

            if(num == 0) System.out.println("Yes");
            if(num == 4) System.out.println("Yes");
            if(num == 10) System.out.println("Yes");
            else System.out.println("No");

        }catch(Exception e){
            e.printStackTrace();
        }        
    }
}
0