結果

問題 No.272 NOT回路
ユーザー len_proglen_prog
提出日時 2016-06-08 10:26:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 1,000 ms
コード長 245 bytes
コンパイル時間 2,031 ms
コンパイル使用メモリ 73,784 KB
実行使用メモリ 54,292 KB
最終ジャッジ日時 2024-04-17 09:37:07
合計ジャッジ時間 4,235 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
53,992 KB
testcase_01 AC 130 ms
54,180 KB
testcase_02 AC 130 ms
53,900 KB
testcase_03 AC 130 ms
54,128 KB
testcase_04 AC 130 ms
54,140 KB
testcase_05 AC 129 ms
54,260 KB
testcase_06 AC 130 ms
54,180 KB
testcase_07 AC 130 ms
54,088 KB
testcase_08 AC 134 ms
54,236 KB
testcase_09 AC 131 ms
54,268 KB
testcase_10 AC 128 ms
54,292 KB
testcase_11 AC 134 ms
54,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int X = scan.nextInt();

		if(X == 0) System.out.println(1);
		else System.out.println(0);
		scan.close();
	}

}
0