結果
| 問題 |
No.192 合成数
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-02-21 11:48:01 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 479 bytes |
| コンパイル時間 | 2,070 ms |
| コンパイル使用メモリ | 74,208 KB |
| 実行使用メモリ | 56,084 KB |
| 最終ジャッジ日時 | 2024-07-21 23:54:50 |
| 合計ジャッジ時間 | 7,875 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 13 WA * 12 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int n = N - 100;
int d = 0;
if(N % 2 == 0){
System.out.println(N);
}
while(d == 0){
if(n % 2 == 0&&n!=2){
System.out.println(n);
d++;
}else{
n++;
}
}
}
}