結果

問題 No.272 NOT回路
ユーザー naimonon77
提出日時 2016-01-30 13:03:55
言語 Java
(openjdk 23)
結果
AC  
実行時間 124 ms / 1,000 ms
コード長 346 bytes
コンパイル時間 3,309 ms
コンパイル使用メモリ 74,484 KB
実行使用メモリ 54,576 KB
最終ジャッジ日時 2024-09-21 19:09:19
合計ジャッジ時間 5,117 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.PrintStream;
import java.util.Scanner;

public class mainclass {
    public static void main(String[] args) {
    	int a = 500;
    	PrintStream out;

    	Scanner sc = new Scanner(System.in);
    	
    	int x = sc.nextInt();
    	if(x==0){
    		System.out.println(1);
    	}
    	else{
    		System.out.println(0);
    	}
    }
}
0