結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-09-25 23:28:40 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 619 bytes |
| コンパイル時間 | 3,429 ms |
| コンパイル使用メモリ | 76,420 KB |
| 実行使用メモリ | 41,520 KB |
| 最終ジャッジ日時 | 2024-10-06 20:24:38 |
| 合計ジャッジ時間 | 6,773 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 15 |
ソースコード
import java.io.PrintWriter;
import java.util.*;
public class No0207 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
PrintWriter out = new PrintWriter(System.out);
int a = scanner.nextInt();
int b = scanner.nextInt();
for(int i = a; i <= b; i++) {
if (Integer.toString(i).contains("3")) {
out.println(i);
continue;
} else if (i % 3 == 0) {
out.println(i);
continue;
}
out.println(i);
}
out.flush();
}
}