結果
問題 | No.272 NOT回路 |
ユーザー |
|
提出日時 | 2017-10-02 01:37:19 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 52 ms / 1,000 ms |
コード長 | 470 bytes |
コンパイル時間 | 3,363 ms |
コンパイル使用メモリ | 73,840 KB |
実行使用メモリ | 36,968 KB |
最終ジャッジ日時 | 2024-11-15 21:53:00 |
合計ジャッジ時間 | 4,426 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 11 |
ソースコード
import java.io.*;public class No272 {public static void main(String[] args) {try{BufferedReader br = new BufferedReader(new InputStreamReader(System.in));int input = Integer.parseInt(br.readLine());switch(input){case 0:System.out.println(1);break;case 1:System.out.println(0);break;}}catch(IOException e){e.getStackTrace();}catch(NumberFormatException e){e.getStackTrace();}}}