結果

問題 No.272 NOT回路
ユーザー FVRChanFVRChan
提出日時 2017-10-02 21:30:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 1,000 ms
コード長 242 bytes
コンパイル時間 2,190 ms
コンパイル使用メモリ 74,144 KB
実行使用メモリ 54,140 KB
最終ジャッジ日時 2024-04-27 18:17:02
合計ジャッジ時間 3,625 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
53,580 KB
testcase_01 AC 101 ms
52,796 KB
testcase_02 AC 102 ms
52,488 KB
testcase_03 AC 117 ms
54,140 KB
testcase_04 AC 118 ms
54,012 KB
testcase_05 AC 113 ms
53,652 KB
testcase_06 AC 116 ms
53,880 KB
testcase_07 AC 105 ms
52,680 KB
testcase_08 AC 112 ms
53,964 KB
testcase_09 AC 115 ms
54,016 KB
testcase_10 AC 115 ms
53,856 KB
testcase_11 AC 109 ms
53,464 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