結果

問題 No.272 NOT回路
ユーザー tentententen
提出日時 2020-11-11 09:01:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 1,000 ms
コード長 209 bytes
コンパイル時間 1,977 ms
コンパイル使用メモリ 71,192 KB
実行使用メモリ 56,104 KB
最終ジャッジ日時 2023-09-30 00:22:51
合計ジャッジ時間 4,482 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,896 KB
testcase_01 AC 127 ms
55,676 KB
testcase_02 AC 127 ms
55,752 KB
testcase_03 AC 123 ms
56,104 KB
testcase_04 AC 126 ms
55,812 KB
testcase_05 AC 125 ms
55,368 KB
testcase_06 AC 123 ms
55,856 KB
testcase_07 AC 125 ms
55,952 KB
testcase_08 AC 126 ms
55,552 KB
testcase_09 AC 125 ms
55,808 KB
testcase_10 AC 125 ms
55,868 KB
testcase_11 AC 126 ms
55,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        System.out.println((n + 1) % 2);
    }
}
0