結果

問題 No.272 NOT回路
ユーザー koko_u
提出日時 2015-10-05 00:03:16
言語 Java
(openjdk 23)
結果
AC  
実行時間 49 ms / 1,000 ms
コード長 687 bytes
コンパイル時間 2,298 ms
コンパイル使用メモリ 75,024 KB
実行使用メモリ 36,916 KB
最終ジャッジ日時 2024-07-19 19:36:23
合計ジャッジ時間 3,525 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

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