結果

問題 No.272 NOT回路
ユーザー 37zigen37zigen
提出日時 2016-03-29 13:26:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 1,000 ms
コード長 257 bytes
コンパイル時間 1,923 ms
コンパイル使用メモリ 78,516 KB
実行使用メモリ 54,388 KB
最終ジャッジ日時 2024-04-10 05:46:39
合計ジャッジ時間 4,259 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
54,084 KB
testcase_01 AC 115 ms
52,824 KB
testcase_02 AC 124 ms
53,868 KB
testcase_03 AC 125 ms
54,388 KB
testcase_04 AC 126 ms
54,036 KB
testcase_05 AC 128 ms
54,260 KB
testcase_06 AC 127 ms
53,996 KB
testcase_07 AC 124 ms
54,040 KB
testcase_08 AC 123 ms
54,020 KB
testcase_09 AC 123 ms
53,936 KB
testcase_10 AC 127 ms
53,868 KB
testcase_11 AC 126 ms
54,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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