結果

問題 No.272 NOT回路
ユーザー Maeda
提出日時 2025-08-25 14:05:30
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 274 bytes
コンパイル時間 2,110 ms
コンパイル使用メモリ 84,916 KB
実行使用メモリ 46,772 KB
最終ジャッジ日時 2025-08-25 14:05:34
合計ジャッジ時間 4,535 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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