結果

問題 No.272 NOT回路
ユーザー marumaru
提出日時 2016-03-20 20:51:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 143 ms / 1,000 ms
コード長 270 bytes
コンパイル時間 3,333 ms
コンパイル使用メモリ 74,504 KB
実行使用メモリ 57,968 KB
最終ジャッジ日時 2024-04-08 21:08:12
合計ジャッジ時間 5,768 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
57,828 KB
testcase_01 AC 133 ms
57,960 KB
testcase_02 AC 133 ms
57,936 KB
testcase_03 AC 132 ms
57,940 KB
testcase_04 AC 134 ms
57,724 KB
testcase_05 AC 138 ms
57,704 KB
testcase_06 AC 134 ms
57,948 KB
testcase_07 AC 136 ms
57,940 KB
testcase_08 AC 133 ms
57,948 KB
testcase_09 AC 134 ms
57,964 KB
testcase_10 AC 135 ms
57,968 KB
testcase_11 AC 143 ms
57,960 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class yukicoder_272 {
	public static void main(String[] args) {
	
		Scanner scanner = new Scanner(System.in);
		
		int n = scanner.nextInt();
		
		if (n == 0) {
			System.out.println(1);
		} else {
			System.out.println(0);
		} 
		
	}
}
0