結果

問題 No.272 NOT回路
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-13 19:24:33
言語 Java19
(openjdk 21)
結果
AC  
実行時間 131 ms / 1,000 ms
コード長 281 bytes
コンパイル時間 3,840 ms
コンパイル使用メモリ 70,876 KB
実行使用メモリ 56,196 KB
最終ジャッジ日時 2023-08-17 04:21:47
合計ジャッジ時間 4,555 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,752 KB
testcase_01 AC 123 ms
55,388 KB
testcase_02 AC 122 ms
55,988 KB
testcase_03 AC 123 ms
55,776 KB
testcase_04 AC 123 ms
56,196 KB
testcase_05 AC 122 ms
55,752 KB
testcase_06 AC 120 ms
55,544 KB
testcase_07 AC 121 ms
55,792 KB
testcase_08 AC 123 ms
55,888 KB
testcase_09 AC 124 ms
55,804 KB
testcase_10 AC 129 ms
55,964 KB
testcase_11 AC 131 ms
53,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public 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{
            System.out.println(0);
        }
    }
}
0