結果
問題 |
No.192 合成数
|
ユーザー |
![]() |
提出日時 | 2017-06-26 02:00:54 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 55 ms / 2,000 ms |
コード長 | 468 bytes |
コンパイル時間 | 1,968 ms |
コンパイル使用メモリ | 73,260 KB |
実行使用メモリ | 50,464 KB |
最終ジャッジ日時 | 2024-06-27 02:12:28 |
合計ジャッジ時間 | 4,546 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 25 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int num=Integer.parseInt(br.readLine()); br.close(); PrintWriter out=new PrintWriter(System.out); if(num%2==0){ out.println(num); }else{ out.println(num-1); } out.flush(); } }