結果
| 問題 |
No.192 合成数
|
| コンテスト | |
| ユーザー |
gu_21816943
|
| 提出日時 | 2017-06-26 01:58:20 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 2,000 ms |
| コード長 | 392 bytes |
| コンパイル時間 | 1,957 ms |
| コンパイル使用メモリ | 74,672 KB |
| 実行使用メモリ | 50,372 KB |
| 最終ジャッジ日時 | 2024-06-27 02:12:21 |
| 合計ジャッジ時間 | 4,588 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 25 |
ソースコード
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
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();
if(num%2==0){
System.out.println(num);
}else{
System.out.println(num-1);
}
}
}
gu_21816943