結果

問題 No.272 NOT回路
ユーザー h_tyokinuhatah_tyokinuhata
提出日時 2015-12-19 01:35:56
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 1,000 ms
コード長 277 bytes
コンパイル時間 1,895 ms
コンパイル使用メモリ 70,844 KB
実行使用メモリ 55,956 KB
最終ジャッジ日時 2023-10-14 14:10:33
合計ジャッジ時間 4,302 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,596 KB
testcase_01 AC 121 ms
55,744 KB
testcase_02 AC 118 ms
55,736 KB
testcase_03 AC 118 ms
55,632 KB
testcase_04 AC 119 ms
55,688 KB
testcase_05 AC 119 ms
55,956 KB
testcase_06 AC 116 ms
55,588 KB
testcase_07 AC 117 ms
55,696 KB
testcase_08 AC 114 ms
55,464 KB
testcase_09 AC 117 ms
55,500 KB
testcase_10 AC 121 ms
55,412 KB
testcase_11 AC 119 ms
55,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
 
class Main {
    public static void main(String[] args) {
    	
    	Scanner sc = new Scanner(System.in);
    	
    	int X = sc.nextInt();
    	if(X == 0) {
    		System.out.println(1);
    	} else if(X == 1) {
    		System.out.println(0);
    	}
    }
}
0