結果

問題 No.272 NOT回路
ユーザー koko_ukoko_u
提出日時 2015-10-05 00:03:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 46 ms / 1,000 ms
コード長 687 bytes
コンパイル時間 2,339 ms
コンパイル使用メモリ 71,068 KB
実行使用メモリ 49,648 KB
最終ジャッジ日時 2023-09-27 02:03:28
合計ジャッジ時間 3,784 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
49,648 KB
testcase_01 AC 45 ms
49,432 KB
testcase_02 AC 44 ms
49,064 KB
testcase_03 AC 43 ms
49,072 KB
testcase_04 AC 44 ms
49,256 KB
testcase_05 AC 43 ms
48,928 KB
testcase_06 AC 43 ms
49,212 KB
testcase_07 AC 42 ms
49,488 KB
testcase_08 AC 43 ms
49,264 KB
testcase_09 AC 44 ms
49,148 KB
testcase_10 AC 44 ms
49,432 KB
testcase_11 AC 44 ms
48,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package jp.co.kokou.sample.no272;

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

public class Main {
    public static void main(String[] args) {
        try (InputStreamReader is = new InputStreamReader(System.in);
             BufferedReader br = new BufferedReader(is)) {

            String value = br.readLine();
            int x = Integer.parseInt(value);
            switch (x) {
            case 0:
                System.out.println(1);
                break;
            case 1:
                System.out.println(0);
                break;
            default:
            }
        } catch (IOException e) {
        }
    }
}
0