結果

問題 No.272 NOT回路
ユーザー koukonkokoukonko
提出日時 2015-12-22 14:24:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 56 ms / 1,000 ms
コード長 423 bytes
コンパイル時間 2,230 ms
コンパイル使用メモリ 74,388 KB
実行使用メモリ 53,468 KB
最終ジャッジ日時 2023-10-18 22:36:30
合計ジャッジ時間 3,234 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
52,524 KB
testcase_01 AC 53 ms
52,488 KB
testcase_02 AC 52 ms
53,468 KB
testcase_03 AC 53 ms
53,468 KB
testcase_04 AC 56 ms
53,464 KB
testcase_05 AC 56 ms
53,468 KB
testcase_06 AC 55 ms
53,464 KB
testcase_07 AC 55 ms
53,460 KB
testcase_08 AC 56 ms
53,460 KB
testcase_09 AC 53 ms
52,536 KB
testcase_10 AC 54 ms
52,492 KB
testcase_11 AC 53 ms
53,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

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

public class Main {
	public static void main(String[] args) {
		BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));

		try {
			String line = buff.readLine();
			if(line.equals("1")){
				System.out.println("0");
			}else{
				System.out.println("1");
			}
		} catch (Exception e) {
			e.getStackTrace();
		}
	}
}
0