結果

問題 No.272 NOT回路
ユーザー ohagi_1182ohagi_1182
提出日時 2017-10-14 11:58:27
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 1,000 ms
コード長 242 bytes
コンパイル時間 1,991 ms
コンパイル使用メモリ 71,076 KB
実行使用メモリ 56,216 KB
最終ジャッジ日時 2023-08-11 01:57:39
合計ジャッジ時間 4,303 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,832 KB
testcase_01 AC 123 ms
55,832 KB
testcase_02 AC 123 ms
56,148 KB
testcase_03 AC 122 ms
56,216 KB
testcase_04 AC 122 ms
56,068 KB
testcase_05 AC 123 ms
55,956 KB
testcase_06 AC 123 ms
55,596 KB
testcase_07 AC 120 ms
56,148 KB
testcase_08 AC 123 ms
55,748 KB
testcase_09 AC 122 ms
55,928 KB
testcase_10 AC 123 ms
56,088 KB
testcase_11 AC 122 ms
56,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		if(n == 1) {
			System.out.println(0);
		} else {
			System.out.println(1);
		}

 	}
}
0