結果

問題 No.272 NOT回路
ユーザー Natsume-MNatsume-M
提出日時 2016-12-09 17:07:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 106 ms / 1,000 ms
コード長 186 bytes
コンパイル時間 1,617 ms
コンパイル使用メモリ 70,584 KB
実行使用メモリ 56,108 KB
最終ジャッジ日時 2023-08-19 03:15:30
合計ジャッジ時間 3,924 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
56,036 KB
testcase_01 AC 103 ms
55,876 KB
testcase_02 AC 106 ms
56,064 KB
testcase_03 AC 103 ms
55,896 KB
testcase_04 AC 103 ms
55,988 KB
testcase_05 AC 104 ms
55,696 KB
testcase_06 AC 103 ms
56,016 KB
testcase_07 AC 105 ms
56,108 KB
testcase_08 AC 104 ms
56,012 KB
testcase_09 AC 104 ms
55,956 KB
testcase_10 AC 105 ms
55,648 KB
testcase_11 AC 103 ms
55,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class y272 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		System.out.println(~(x-2));
		sc.close();
	}
}
0