結果

問題 No.272 NOT回路
ユーザー tsunabittsunabit
提出日時 2018-05-24 23:12:43
言語 Java19
(openjdk 21)
結果
AC  
実行時間 130 ms / 1,000 ms
コード長 194 bytes
コンパイル時間 3,473 ms
コンパイル使用メモリ 72,608 KB
実行使用メモリ 55,936 KB
最終ジャッジ日時 2023-09-11 03:02:48
合計ジャッジ時間 5,839 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,792 KB
testcase_01 AC 126 ms
55,936 KB
testcase_02 AC 125 ms
55,792 KB
testcase_03 AC 128 ms
55,784 KB
testcase_04 AC 127 ms
55,384 KB
testcase_05 AC 128 ms
55,428 KB
testcase_06 AC 129 ms
55,556 KB
testcase_07 AC 127 ms
55,796 KB
testcase_08 AC 128 ms
55,700 KB
testcase_09 AC 127 ms
55,932 KB
testcase_10 AC 127 ms
55,860 KB
testcase_11 AC 130 ms
55,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class No272 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println(sc.nextInt() == 0 ? 1 : 0);
    }
}
0