結果
| 問題 | No.207 世界のなんとか |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-07-13 02:42:40 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 5,000 ms |
| コード長 | 405 bytes |
| 記録 | |
| コンパイル時間 | 1,453 ms |
| コンパイル使用メモリ | 81,808 KB |
| 実行使用メモリ | 43,228 KB |
| 最終ジャッジ日時 | 2026-04-20 18:49:43 |
| 合計ジャッジ時間 | 3,650 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int a = sc.nextInt();
int b = sc.nextInt();
for(int i = a; i <= b; i++) {
if(i % 3 == 0) {
System.out.println(i);
continue;
}
for(int j = i; j != 0; j /= 10) {
if(j % 10 == 3) {
System.out.println(i);
break;
}
}
}
}
}