結果

問題 No.272 NOT回路
ユーザー TwinkleStar74TwinkleStar74
提出日時 2017-10-02 01:37:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 47 ms / 1,000 ms
コード長 470 bytes
コンパイル時間 3,127 ms
コンパイル使用メモリ 74,376 KB
実行使用メモリ 50,396 KB
最終ジャッジ日時 2024-04-27 17:39:41
合計ジャッジ時間 3,667 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
49,980 KB
testcase_01 AC 44 ms
49,812 KB
testcase_02 AC 45 ms
50,188 KB
testcase_03 AC 46 ms
50,224 KB
testcase_04 AC 46 ms
49,988 KB
testcase_05 AC 47 ms
50,396 KB
testcase_06 AC 45 ms
50,164 KB
testcase_07 AC 44 ms
50,024 KB
testcase_08 AC 46 ms
49,760 KB
testcase_09 AC 46 ms
50,064 KB
testcase_10 AC 45 ms
50,228 KB
testcase_11 AC 44 ms
49,916 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