結果

問題 No.272 NOT回路
ユーザー matsuyoshi30matsuyoshi30
提出日時 2016-02-22 15:06:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 1,000 ms
コード長 277 bytes
コンパイル時間 2,039 ms
コンパイル使用メモリ 73,764 KB
実行使用メモリ 57,476 KB
最終ジャッジ日時 2023-10-23 19:18:11
合計ジャッジ時間 4,402 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
57,320 KB
testcase_01 AC 127 ms
57,476 KB
testcase_02 AC 130 ms
57,148 KB
testcase_03 AC 127 ms
57,464 KB
testcase_04 AC 129 ms
57,032 KB
testcase_05 AC 126 ms
57,440 KB
testcase_06 AC 126 ms
57,076 KB
testcase_07 AC 116 ms
56,092 KB
testcase_08 AC 127 ms
57,400 KB
testcase_09 AC 127 ms
56,972 KB
testcase_10 AC 130 ms
57,300 KB
testcase_11 AC 133 ms
57,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main {
    public static void main(String[] args) throws Exception {
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        
        if(x == 1) System.out.println(0);
        if(x == 0) System.out.println(1);
    }
}
0