結果
問題 | No.272 NOT回路 |
ユーザー |
![]() |
提出日時 | 2018-02-14 22:59:57 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 60 ms / 1,000 ms |
コード長 | 527 bytes |
コンパイル時間 | 4,133 ms |
コンパイル使用メモリ | 74,408 KB |
実行使用メモリ | 50,308 KB |
最終ジャッジ日時 | 2024-12-23 09:24:22 |
合計ジャッジ時間 | 5,337 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 11 |
ソースコード
package yukiCoder;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class No00272 {public static void main(String[] args) {BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));int input;try {input = Integer.parseInt(bufferedReader.readLine());System.out.println(input == 0 ? 1 : 0);} catch (NumberFormatException | IOException e) {// TODO 自動生成された catch ブロックe.printStackTrace();}}}