結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
samplelpmas
|
| 提出日時 | 2016-11-27 02:11:49 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 136 ms / 5,000 ms |
| コード長 | 601 bytes |
| コンパイル時間 | 2,085 ms |
| コンパイル使用メモリ | 73,900 KB |
| 実行使用メモリ | 41,208 KB |
| 最終ジャッジ日時 | 2024-11-27 10:53:53 |
| 合計ジャッジ時間 | 5,281 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int BEGIN = sc.nextInt();
int END = sc.nextInt();
for (int i = BEGIN; i <= END; i++) {
if (i % 3 == 0) {
System.out.println(i);
continue;
}
int j = i;
while (j > 0) {
if (j % 10 == 3) {
System.out.println(i);
break;
}
j /= 10;
}
}
}
}
samplelpmas