結果

問題 No.272 NOT回路
ユーザー face4face4
提出日時 2018-04-16 21:38:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 43 ms / 1,000 ms
コード長 396 bytes
コンパイル時間 1,867 ms
コンパイル使用メモリ 71,036 KB
実行使用メモリ 49,480 KB
最終ジャッジ日時 2023-09-09 10:57:42
合計ジャッジ時間 3,248 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,032 KB
testcase_01 AC 42 ms
49,228 KB
testcase_02 AC 42 ms
49,296 KB
testcase_03 AC 42 ms
49,096 KB
testcase_04 AC 43 ms
49,480 KB
testcase_05 AC 43 ms
49,152 KB
testcase_06 AC 42 ms
49,136 KB
testcase_07 AC 42 ms
49,068 KB
testcase_08 AC 42 ms
49,068 KB
testcase_09 AC 42 ms
48,960 KB
testcase_10 AC 43 ms
49,068 KB
testcase_11 AC 42 ms
49,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        if(br.readLine().equals("1")){
            System.out.println("0");
        }else{
            System.out.println("1");
        }
    }
}
0