結果

問題 No.272 NOT回路
ユーザー fukusei
提出日時 2018-05-05 14:49:42
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 328 bytes
コンパイル時間 2,011 ms
コンパイル使用メモリ 74,328 KB
実行使用メモリ 56,120 KB
最終ジャッジ日時 2024-06-28 01:52:40
合計ジャッジ時間 4,253 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        if (sc.nextLine().equals("1")) {
            System.out.println("0¥n");
        }
        
        if (sc.nextLine().equals("0")) {
            System.out.println("1¥n");
        }
    }
}
0