結果

問題 No.272 NOT回路
ユーザー ThhG_9l3ThhG_9l3
提出日時 2018-05-05 14:49:23
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 1,000 ms
コード長 243 bytes
コンパイル時間 4,116 ms
コンパイル使用メモリ 71,776 KB
実行使用メモリ 56,632 KB
最終ジャッジ日時 2023-09-10 10:27:55
合計ジャッジ時間 5,970 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,692 KB
testcase_01 AC 123 ms
55,956 KB
testcase_02 AC 122 ms
55,720 KB
testcase_03 AC 124 ms
55,644 KB
testcase_04 AC 123 ms
56,032 KB
testcase_05 AC 122 ms
56,004 KB
testcase_06 AC 122 ms
56,220 KB
testcase_07 AC 122 ms
55,780 KB
testcase_08 AC 123 ms
56,400 KB
testcase_09 AC 122 ms
56,632 KB
testcase_10 AC 122 ms
55,692 KB
testcase_11 AC 122 ms
55,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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