結果

問題 No.272 NOT回路
ユーザー KinoshitaKinoshita
提出日時 2015-09-06 11:00:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 43 ms / 1,000 ms
コード長 517 bytes
コンパイル時間 2,064 ms
コンパイル使用メモリ 71,592 KB
実行使用メモリ 49,680 KB
最終ジャッジ日時 2023-09-26 09:22:19
合計ジャッジ時間 3,408 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,236 KB
testcase_01 AC 43 ms
49,180 KB
testcase_02 AC 42 ms
49,216 KB
testcase_03 AC 42 ms
49,140 KB
testcase_04 AC 42 ms
49,148 KB
testcase_05 AC 42 ms
49,052 KB
testcase_06 AC 42 ms
49,496 KB
testcase_07 AC 43 ms
49,084 KB
testcase_08 AC 43 ms
49,104 KB
testcase_09 AC 43 ms
49,680 KB
testcase_10 AC 42 ms
49,164 KB
testcase_11 AC 41 ms
49,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{
	
	static Main byakko = new Main();
	static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	
	public static void main(String[] args)throws IOException{
		
		int x = byakko.Input();
		
		if(x == 0)
			System.out.println(1);
		else
			System.out.println(0);
		
		reader.close();
	}
	
	public int Input()throws IOException{
		return Integer.parseInt(reader.readLine());
	}
	
}
0