結果

問題 No.272 NOT回路
ユーザー マサマサ
提出日時 2022-02-09 17:51:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 1,000 ms
コード長 259 bytes
コンパイル時間 2,046 ms
コンパイル使用メモリ 71,348 KB
実行使用メモリ 56,244 KB
最終ジャッジ日時 2023-09-07 03:23:21
合計ジャッジ時間 4,501 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,592 KB
testcase_01 AC 123 ms
56,244 KB
testcase_02 AC 121 ms
56,108 KB
testcase_03 AC 120 ms
55,932 KB
testcase_04 AC 123 ms
55,784 KB
testcase_05 AC 122 ms
56,096 KB
testcase_06 AC 123 ms
56,052 KB
testcase_07 AC 122 ms
55,956 KB
testcase_08 AC 124 ms
56,136 KB
testcase_09 AC 124 ms
55,816 KB
testcase_10 AC 126 ms
55,796 KB
testcase_11 AC 122 ms
55,920 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();
		
		if (x == 0) {
			System.out.println(1);
		} else {
			System.out.println(0);
		}
		
		sc.close();
	}
}
0