結果

問題 No.272 NOT回路
コンテスト
ユーザー Kinoshita
提出日時 2015-09-06 11:00:19
言語 Java
(openjdk 26.0.2.1)
コンパイル:
javac -encoding UTF8 _filename_
実行:
java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true _class_
結果
AC  
実行時間 31 ms / 1,000 ms
+ 295µs
コード長 517 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,539 ms
コンパイル使用メモリ 82,892 KB
実行使用メモリ 40,396 KB
最終ジャッジ日時 2026-08-18 00:24:02
合計ジャッジ時間 3,083 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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