結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
A_rinataro
|
| 提出日時 | 2015-09-19 14:52:21 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 139 ms / 5,000 ms |
| コード長 | 501 bytes |
| コンパイル時間 | 2,330 ms |
| コンパイル使用メモリ | 74,144 KB |
| 実行使用メモリ | 41,560 KB |
| 最終ジャッジ日時 | 2024-10-09 10:32:20 |
| 合計ジャッジ時間 | 5,523 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
int n = 1;
int x = 0;
for(int i = a; i <= b; i++) {
if(i % 3 == 0) {
System.out.println(i);
} else {
x = i;
while(n > 0) {
if(x % 10 == 3) {
System.out.println(i);
break;
} else {
x = x / 10;
if(x == 0) {
break;
}
}
}
}
}
}
}
A_rinataro