結果

問題 No.272 NOT回路
ユーザー マサ
提出日時 2022-02-09 17:51:12
言語 Java
(openjdk 23)
結果
AC  
実行時間 142 ms / 1,000 ms
コード長 259 bytes
コンパイル時間 2,717 ms
コンパイル使用メモリ 74,320 KB
実行使用メモリ 41,560 KB
最終ジャッジ日時 2024-06-24 22:02:11
合計ジャッジ時間 4,730 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		
		if (x == 0) {
			System.out.println(1);
		} else {
			System.out.println(0);
		}
		
		sc.close();
	}
}
0