結果
| 問題 |
No.192 合成数
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-02-21 11:48:39 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 479 bytes |
| コンパイル時間 | 1,970 ms |
| コンパイル使用メモリ | 74,308 KB |
| 実行使用メモリ | 56,192 KB |
| 最終ジャッジ日時 | 2024-07-21 23:55:40 |
| 合計ジャッジ時間 | 7,890 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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++;
}
}
}
}