結果

問題 No.272 NOT回路
ユーザー newoota0331newoota0331
提出日時 2016-09-02 09:49:29
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 1,000 ms
コード長 421 bytes
コンパイル時間 3,931 ms
コンパイル使用メモリ 72,328 KB
実行使用メモリ 57,856 KB
最終ジャッジ日時 2023-08-09 20:25:35
合計ジャッジ時間 5,920 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,820 KB
testcase_01 AC 119 ms
55,744 KB
testcase_02 AC 120 ms
57,856 KB
testcase_03 AC 122 ms
55,992 KB
testcase_04 AC 122 ms
55,860 KB
testcase_05 AC 120 ms
55,852 KB
testcase_06 AC 121 ms
55,804 KB
testcase_07 AC 122 ms
55,836 KB
testcase_08 AC 121 ms
55,636 KB
testcase_09 AC 120 ms
55,888 KB
testcase_10 AC 120 ms
55,892 KB
testcase_11 AC 118 ms
56,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		
		int a;
		a = sc.nextInt();
		if(a==1){
			System.out.println(0);
		}else{
			System.out.println(1);
		}
	}
}
0