結果

問題 No.272 NOT回路
ユーザー mits58mits58
提出日時 2016-05-05 14:21:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 141 ms / 1,000 ms
コード長 224 bytes
コンパイル時間 2,164 ms
コンパイル使用メモリ 74,496 KB
実行使用メモリ 54,400 KB
最終ジャッジ日時 2024-04-15 13:10:46
合計ジャッジ時間 4,523 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 141 ms
54,400 KB
testcase_01 AC 135 ms
54,140 KB
testcase_02 AC 134 ms
54,308 KB
testcase_03 AC 134 ms
54,196 KB
testcase_04 AC 132 ms
54,248 KB
testcase_05 AC 135 ms
54,100 KB
testcase_06 AC 136 ms
54,140 KB
testcase_07 AC 137 ms
54,008 KB
testcase_08 AC 134 ms
54,256 KB
testcase_09 AC 140 ms
54,024 KB
testcase_10 AC 140 ms
53,980 KB
testcase_11 AC 135 ms
54,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        while(sc.hasNext()){
        	System.out.println(1-sc.nextInt());
        }
    }
}
0