結果

問題 No.272 NOT回路
ユーザー kenji_shioyakenji_shioya
提出日時 2016-06-03 22:30:24
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 1,000 ms
コード長 206 bytes
コンパイル時間 3,769 ms
コンパイル使用メモリ 74,312 KB
実行使用メモリ 41,716 KB
最終ジャッジ日時 2024-04-16 23:49:03
合計ジャッジ時間 5,615 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
41,240 KB
testcase_01 AC 131 ms
41,604 KB
testcase_02 AC 131 ms
41,324 KB
testcase_03 AC 130 ms
41,320 KB
testcase_04 AC 130 ms
41,716 KB
testcase_05 AC 132 ms
41,192 KB
testcase_06 AC 132 ms
41,504 KB
testcase_07 AC 131 ms
41,524 KB
testcase_08 AC 130 ms
41,104 KB
testcase_09 AC 119 ms
40,116 KB
testcase_10 AC 130 ms
41,164 KB
testcase_11 AC 130 ms
41,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Exercise56{
  public static void main (String[] args){

    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();

    System.out.println((n == 1) ? 0 : 1);
  }
}
0