結果

問題 No.272 NOT回路
ユーザー yamax3232yamax3232
提出日時 2017-02-14 10:44:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 1,000 ms
コード長 324 bytes
コンパイル時間 3,179 ms
コンパイル使用メモリ 72,696 KB
実行使用メモリ 56,284 KB
最終ジャッジ日時 2023-08-28 16:30:27
合計ジャッジ時間 5,472 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,956 KB
testcase_01 AC 125 ms
55,852 KB
testcase_02 AC 124 ms
56,012 KB
testcase_03 AC 125 ms
55,932 KB
testcase_04 AC 124 ms
56,284 KB
testcase_05 AC 124 ms
55,912 KB
testcase_06 AC 124 ms
55,752 KB
testcase_07 AC 124 ms
56,140 KB
testcase_08 AC 124 ms
55,872 KB
testcase_09 AC 125 ms
55,460 KB
testcase_10 AC 125 ms
56,196 KB
testcase_11 AC 124 ms
55,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Not {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner kb=new Scanner(System.in);
		int a=kb.nextInt();
		switch(a){
		case 0:System.out.println("1");break;
		case 1:System.out.println("0");break;
		default:break;

		}
	}

}
0