結果

問題 No.272 NOT回路
ユーザー Mcpu3Mcpu3
提出日時 2018-04-14 20:46:35
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 1,000 ms
コード長 232 bytes
コンパイル時間 1,905 ms
コンパイル使用メモリ 71,124 KB
実行使用メモリ 56,040 KB
最終ジャッジ日時 2023-09-09 05:27:52
合計ジャッジ時間 4,208 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,568 KB
testcase_01 AC 125 ms
55,952 KB
testcase_02 AC 123 ms
55,388 KB
testcase_03 AC 125 ms
56,024 KB
testcase_04 AC 123 ms
55,808 KB
testcase_05 AC 125 ms
55,760 KB
testcase_06 AC 125 ms
56,040 KB
testcase_07 AC 124 ms
55,688 KB
testcase_08 AC 124 ms
55,644 KB
testcase_09 AC 123 ms
55,464 KB
testcase_10 AC 125 ms
55,508 KB
testcase_11 AC 126 ms
53,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class no272{
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		short x=stdIn.nextShort();
		if(x==1) System.out.println('0');
		else System.out.println('1');
	}
}
0