結果

問題 No.272 NOT回路
ユーザー naimonon77naimonon77
提出日時 2016-01-30 13:03:55
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 1,000 ms
コード長 346 bytes
コンパイル時間 3,408 ms
コンパイル使用メモリ 77,728 KB
実行使用メモリ 57,596 KB
最終ジャッジ日時 2023-10-21 17:54:08
合計ジャッジ時間 5,793 ms
ジャッジサーバーID
(参考情報)
judge13 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
55,300 KB
testcase_01 AC 133 ms
57,352 KB
testcase_02 AC 133 ms
57,260 KB
testcase_03 AC 133 ms
57,308 KB
testcase_04 AC 132 ms
57,372 KB
testcase_05 AC 135 ms
57,456 KB
testcase_06 AC 131 ms
55,712 KB
testcase_07 AC 132 ms
57,336 KB
testcase_08 AC 133 ms
57,352 KB
testcase_09 AC 134 ms
57,204 KB
testcase_10 AC 132 ms
57,380 KB
testcase_11 AC 132 ms
57,596 KB
権限があれば一括ダウンロードができます

ソースコード

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