結果

問題 No.272 NOT回路
ユーザー yagi2yagi2
提出日時 2017-04-20 15:48:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 1,000 ms
コード長 203 bytes
コンパイル時間 1,900 ms
コンパイル使用メモリ 71,828 KB
実行使用メモリ 56,336 KB
最終ジャッジ日時 2023-09-27 03:38:14
合計ジャッジ時間 4,230 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,080 KB
testcase_01 AC 119 ms
56,248 KB
testcase_02 AC 117 ms
56,028 KB
testcase_03 AC 119 ms
55,668 KB
testcase_04 AC 118 ms
55,688 KB
testcase_05 AC 117 ms
55,976 KB
testcase_06 AC 117 ms
56,336 KB
testcase_07 AC 117 ms
55,532 KB
testcase_08 AC 118 ms
55,596 KB
testcase_09 AC 119 ms
55,932 KB
testcase_10 AC 118 ms
55,852 KB
testcase_11 AC 119 ms
55,916 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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