結果

問題 No.272 NOT回路
ユーザー newoota0331newoota0331
提出日時 2016-09-02 09:49:29
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 1,000 ms
コード長 421 bytes
コンパイル時間 2,350 ms
コンパイル使用メモリ 74,872 KB
実行使用メモリ 54,140 KB
最終ジャッジ日時 2024-04-27 14:57:26
合計ジャッジ時間 3,723 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
54,004 KB
testcase_01 AC 113 ms
53,764 KB
testcase_02 AC 103 ms
52,924 KB
testcase_03 AC 116 ms
53,856 KB
testcase_04 AC 112 ms
54,140 KB
testcase_05 AC 117 ms
53,808 KB
testcase_06 AC 104 ms
52,984 KB
testcase_07 AC 112 ms
54,060 KB
testcase_08 AC 113 ms
53,688 KB
testcase_09 AC 111 ms
54,032 KB
testcase_10 AC 115 ms
53,676 KB
testcase_11 AC 123 ms
54,064 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