結果

問題 No.272 NOT回路
ユーザー TwinkleStar74TwinkleStar74
提出日時 2017-10-02 01:37:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 44 ms / 1,000 ms
コード長 470 bytes
コンパイル時間 3,040 ms
コンパイル使用メモリ 71,500 KB
実行使用メモリ 49,420 KB
最終ジャッジ日時 2023-08-09 23:28:19
合計ジャッジ時間 4,329 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,420 KB
testcase_01 AC 43 ms
49,308 KB
testcase_02 AC 43 ms
49,272 KB
testcase_03 AC 43 ms
49,160 KB
testcase_04 AC 44 ms
49,204 KB
testcase_05 AC 44 ms
49,216 KB
testcase_06 AC 44 ms
49,276 KB
testcase_07 AC 44 ms
49,312 KB
testcase_08 AC 43 ms
47,180 KB
testcase_09 AC 44 ms
49,368 KB
testcase_10 AC 44 ms
49,180 KB
testcase_11 AC 44 ms
49,252 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;

public class No272 {
	public static void main(String[] args) {
		try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			int input = Integer.parseInt(br.readLine());
			switch(input){
			    case 0:
			    	System.out.println(1);
			    	break;
			    case 1:
			    	System.out.println(0);
			    	break;
			}
		}catch(IOException e){
			e.getStackTrace();
		}catch(NumberFormatException e){
		e.getStackTrace();
		}
	}
}
0