結果

問題 No.272 NOT回路
ユーザー sasakkisasakki
提出日時 2016-04-26 11:26:37
言語 Java21
(openjdk 21)
結果
AC  
実行時間 114 ms / 1,000 ms
コード長 251 bytes
コンパイル時間 1,803 ms
コンパイル使用メモリ 74,320 KB
実行使用メモリ 54,216 KB
最終ジャッジ日時 2024-04-15 04:33:08
合計ジャッジ時間 3,673 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
52,916 KB
testcase_01 AC 114 ms
54,020 KB
testcase_02 AC 99 ms
52,528 KB
testcase_03 AC 114 ms
53,696 KB
testcase_04 AC 97 ms
52,940 KB
testcase_05 AC 101 ms
53,092 KB
testcase_06 AC 102 ms
52,972 KB
testcase_07 AC 109 ms
53,500 KB
testcase_08 AC 103 ms
52,768 KB
testcase_09 AC 100 ms
52,924 KB
testcase_10 AC 102 ms
52,996 KB
testcase_11 AC 112 ms
54,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		int i = Integer.parseInt(sc.next());
		
		if(i == 0){
			System.out.println(1);
		}
		else{
			System.out.println(0);
		}
	}
}
0