結果

問題 No.272 NOT回路
ユーザー jimanojimano
提出日時 2016-01-11 12:01:13
言語 Java21
(openjdk 21)
結果
AC  
実行時間 57 ms / 1,000 ms
コード長 459 bytes
コンパイル時間 3,284 ms
コンパイル使用メモリ 74,692 KB
実行使用メモリ 53,560 KB
最終ジャッジ日時 2023-10-19 22:47:39
合計ジャッジ時間 4,626 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
53,540 KB
testcase_01 AC 57 ms
53,536 KB
testcase_02 AC 56 ms
52,440 KB
testcase_03 AC 56 ms
53,560 KB
testcase_04 AC 57 ms
52,460 KB
testcase_05 AC 55 ms
53,536 KB
testcase_06 AC 56 ms
53,540 KB
testcase_07 AC 55 ms
53,540 KB
testcase_08 AC 55 ms
52,440 KB
testcase_09 AC 55 ms
53,536 KB
testcase_10 AC 54 ms
52,448 KB
testcase_11 AC 56 ms
53,540 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No0272 {
	public static void main(String[] args) {
		try (BufferedReader br = 
				new BufferedReader(new InputStreamReader(System.in))) {
	        int N = Integer.parseInt(br.readLine());
	        
	        if(N == 0) System.out.println(1);
	        else System.out.println(0);
	        
		} catch (IOException e) {
			e.printStackTrace();
		}
    }
}
0