結果

問題 No.272 NOT回路
ユーザー GrenacheGrenache
提出日時 2015-08-28 22:21:24
言語 Java19
(openjdk 21)
結果
AC  
実行時間 126 ms / 1,000 ms
コード長 330 bytes
コンパイル時間 3,510 ms
コンパイル使用メモリ 72,704 KB
実行使用メモリ 56,388 KB
最終ジャッジ日時 2023-09-25 19:10:25
合計ジャッジ時間 5,452 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,888 KB
testcase_01 AC 122 ms
55,932 KB
testcase_02 AC 120 ms
56,388 KB
testcase_03 AC 121 ms
55,984 KB
testcase_04 AC 122 ms
55,748 KB
testcase_05 AC 123 ms
55,856 KB
testcase_06 AC 122 ms
55,972 KB
testcase_07 AC 126 ms
53,912 KB
testcase_08 AC 125 ms
56,116 KB
testcase_09 AC 124 ms
55,780 KB
testcase_10 AC 122 ms
55,796 KB
testcase_11 AC 122 ms
55,568 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main_yukicoder272 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int x = sc.nextInt();

        if (x == 0) {
        	System.out.println("1");
        } else {
        	System.out.println("0");
        }

        sc.close();
    }
}
0