結果

問題 No.969 じゃんけん
ユーザー N_Gakuto7N_Gakuto7
提出日時 2020-04-02 22:17:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 499 bytes
コンパイル時間 1,956 ms
コンパイル使用メモリ 72,088 KB
実行使用メモリ 56,352 KB
最終ジャッジ日時 2023-09-11 00:48:46
合計ジャッジ時間 3,313 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,056 KB
testcase_01 AC 117 ms
56,008 KB
testcase_02 AC 117 ms
55,720 KB
testcase_03 AC 118 ms
55,848 KB
testcase_04 AC 115 ms
56,352 KB
testcase_05 AC 117 ms
55,860 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");
            else if(num == 4) System.out.println("Yes");
            else if(num == 10) System.out.println("Yes");
            else System.out.println("No");

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