結果

問題 No.99 ジャンピング駒
ユーザー tsunabit
提出日時 2019-05-05 17:35:24
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 383 bytes
コンパイル時間 3,869 ms
コンパイル使用メモリ 73,956 KB
実行使用メモリ 54,388 KB
最終ジャッジ日時 2024-06-25 06:33:26
合計ジャッジ時間 5,592 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 4
権限があれば一括ダウンロードができます

ソースコード

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