結果

問題 No.272 NOT回路
ユーザー yagi2yagi2
提出日時 2017-04-20 15:46:52
言語 Java19
(openjdk 21)
結果
AC  
実行時間 115 ms / 1,000 ms
コード長 209 bytes
コンパイル時間 1,855 ms
コンパイル使用メモリ 71,236 KB
実行使用メモリ 56,284 KB
最終ジャッジ日時 2023-09-27 03:37:57
合計ジャッジ時間 4,065 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
55,952 KB
testcase_01 AC 110 ms
55,516 KB
testcase_02 AC 115 ms
56,088 KB
testcase_03 AC 114 ms
56,020 KB
testcase_04 AC 109 ms
55,472 KB
testcase_05 AC 107 ms
55,860 KB
testcase_06 AC 111 ms
56,136 KB
testcase_07 AC 109 ms
56,004 KB
testcase_08 AC 109 ms
56,284 KB
testcase_09 AC 106 ms
55,980 KB
testcase_10 AC 109 ms
55,708 KB
testcase_11 AC 111 ms
55,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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