結果

問題 No.272 NOT回路
ユーザー samplelpmassamplelpmas
提出日時 2016-12-15 09:02:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 1,000 ms
コード長 240 bytes
コンパイル時間 2,571 ms
コンパイル使用メモリ 72,064 KB
実行使用メモリ 56,120 KB
最終ジャッジ日時 2023-08-20 07:24:48
合計ジャッジ時間 4,940 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,700 KB
testcase_01 AC 124 ms
55,888 KB
testcase_02 AC 123 ms
55,912 KB
testcase_03 AC 125 ms
55,584 KB
testcase_04 AC 128 ms
55,404 KB
testcase_05 AC 128 ms
56,000 KB
testcase_06 AC 127 ms
55,484 KB
testcase_07 AC 128 ms
55,580 KB
testcase_08 AC 129 ms
55,584 KB
testcase_09 AC 128 ms
55,624 KB
testcase_10 AC 130 ms
56,120 KB
testcase_11 AC 128 ms
55,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int X = sc.nextInt();

        int not = 1 - X;

        System.out.println(not);

    }

}
0