結果

問題 No.272 NOT回路
ユーザー FVRChanFVRChan
提出日時 2017-10-02 21:30:07
言語 Java19
(openjdk 21)
結果
AC  
実行時間 120 ms / 1,000 ms
コード長 242 bytes
コンパイル時間 1,887 ms
コンパイル使用メモリ 70,988 KB
実行使用メモリ 56,116 KB
最終ジャッジ日時 2023-08-10 00:12:53
合計ジャッジ時間 4,117 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,796 KB
testcase_01 AC 116 ms
56,020 KB
testcase_02 AC 116 ms
55,736 KB
testcase_03 AC 115 ms
55,760 KB
testcase_04 AC 117 ms
55,844 KB
testcase_05 AC 118 ms
55,788 KB
testcase_06 AC 115 ms
55,412 KB
testcase_07 AC 117 ms
55,972 KB
testcase_08 AC 120 ms
56,116 KB
testcase_09 AC 119 ms
55,636 KB
testcase_10 AC 113 ms
55,664 KB
testcase_11 AC 113 ms
55,916 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main{
	private static Scanner sc=new Scanner(System.in);
	public static void main(String args[])throws Exception{
		int n=sc.nextInt();
		if(n==0)System.out.println(1);
		else System.out.println(0);
	}
}
0