結果

問題 No.99 ジャンピング駒
ユーザー tsunabittsunabit
提出日時 2019-05-05 17:35:24
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 383 bytes
コンパイル時間 4,028 ms
コンパイル使用メモリ 72,420 KB
実行使用メモリ 56,508 KB
最終ジャッジ日時 2023-09-07 12:28:49
合計ジャッジ時間 5,979 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import java.util.Scanner;

public class No99 {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        if(n % 2 == 0) {
            System.out.println(0);
        }else {
            System.out.println(1);
        }
    }
}
0