結果

問題 No.272 NOT回路
ユーザー GchansanjouGchansanjou
提出日時 2018-02-14 22:59:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 45 ms / 1,000 ms
コード長 527 bytes
コンパイル時間 3,046 ms
コンパイル使用メモリ 71,384 KB
実行使用メモリ 49,700 KB
最終ジャッジ日時 2023-08-24 22:58:03
合計ジャッジ時間 4,290 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
49,700 KB
testcase_01 AC 43 ms
49,048 KB
testcase_02 AC 45 ms
47,080 KB
testcase_03 AC 44 ms
49,356 KB
testcase_04 AC 43 ms
49,624 KB
testcase_05 AC 44 ms
49,232 KB
testcase_06 AC 43 ms
49,268 KB
testcase_07 AC 43 ms
49,216 KB
testcase_08 AC 43 ms
49,144 KB
testcase_09 AC 44 ms
49,108 KB
testcase_10 AC 43 ms
49,232 KB
testcase_11 AC 44 ms
49,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukiCoder;

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

public class No00272 {

	public static void main(String[] args) {
		BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
		int input;
		try {
			input = Integer.parseInt(bufferedReader.readLine());
			System.out.println(input == 0 ? 1 : 0);
		} catch (NumberFormatException | IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}

	}

}
0