結果

問題 No.272 NOT回路
ユーザー ohagi_1182ohagi_1182
提出日時 2017-10-14 11:58:27
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 1,000 ms
コード長 242 bytes
コンパイル時間 2,188 ms
コンパイル使用メモリ 73,788 KB
実行使用メモリ 41,532 KB
最終ジャッジ日時 2024-04-28 19:07:01
合計ジャッジ時間 4,555 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
41,308 KB
testcase_01 AC 134 ms
41,204 KB
testcase_02 AC 136 ms
41,300 KB
testcase_03 AC 135 ms
41,256 KB
testcase_04 AC 121 ms
39,812 KB
testcase_05 AC 135 ms
40,972 KB
testcase_06 AC 136 ms
41,532 KB
testcase_07 AC 136 ms
41,388 KB
testcase_08 AC 135 ms
41,452 KB
testcase_09 AC 137 ms
41,088 KB
testcase_10 AC 135 ms
41,388 KB
testcase_11 AC 134 ms
41,080 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