結果

問題 No.272 NOT回路
ユーザー kou6839kou6839
提出日時 2015-08-28 23:15:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 1,000 ms
コード長 355 bytes
コンパイル時間 3,181 ms
コンパイル使用メモリ 72,136 KB
実行使用メモリ 56,068 KB
最終ジャッジ日時 2023-09-25 19:29:33
合計ジャッジ時間 5,542 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,916 KB
testcase_01 AC 122 ms
55,808 KB
testcase_02 AC 120 ms
55,632 KB
testcase_03 AC 128 ms
55,728 KB
testcase_04 AC 123 ms
55,668 KB
testcase_05 AC 126 ms
55,480 KB
testcase_06 AC 120 ms
55,576 KB
testcase_07 AC 119 ms
55,904 KB
testcase_08 AC 120 ms
55,888 KB
testcase_09 AC 120 ms
56,016 KB
testcase_10 AC 121 ms
55,680 KB
testcase_11 AC 122 ms
56,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.lang.Thread.State;
import java.util.*;


public class Main {
    public static void main(String[] args){
        // TODO 自動生成されたメソッド・スタブ
    	Scanner sc = new Scanner(System.in);
    	
    	int x = sc.nextInt();
    	if(x==0){
    		System.out.println(1);
    	}else{
    		System.out.println(0);
    	}
    }
}
0