結果

問題 No.272 NOT回路
ユーザー yuppe19 😺
提出日時 2015-09-06 17:36:22
言語 Java
(openjdk 23)
結果
AC  
実行時間 123 ms / 1,000 ms
コード長 247 bytes
コンパイル時間 2,102 ms
コンパイル使用メモリ 74,292 KB
実行使用メモリ 41,296 KB
最終ジャッジ日時 2024-07-19 04:32:43
合計ジャッジ時間 3,734 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  private void solve() {
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    System.out.printf("%d\n", 1-x);
  }

  public static void main(String[] args) {
    new Main().solve();
  }
}
0