結果
問題 |
No.192 合成数
|
ユーザー |
![]() |
提出日時 | 2017-06-26 02:00:22 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 453 bytes |
コンパイル時間 | 1,987 ms |
コンパイル使用メモリ | 74,572 KB |
実行使用メモリ | 50,636 KB |
最終ジャッジ日時 | 2024-10-04 05:52:54 |
合計ジャッジ時間 | 7,106 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 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); } } }