結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
nesaia
|
| 提出日時 | 2017-04-17 16:49:52 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 122 ms / 5,000 ms |
| コード長 | 580 bytes |
| コンパイル時間 | 3,391 ms |
| コンパイル使用メモリ | 74,424 KB |
| 実行使用メモリ | 41,336 KB |
| 最終ジャッジ日時 | 2024-07-19 05:29:30 |
| 合計ジャッジ時間 | 5,698 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
//No.207 世界のなんとか
//http://yukicoder.me/problems/560
//20170417 1636
package no207;
import java.util.Scanner;
public class No207 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a;
int b;
int num;
a = scan.nextInt();
b = scan.nextInt();
scan.close();
for(int i = a; i <= b; i++){
if(i % 3 == 0) {
System.out.println(i);
} else {
num = i;
while(num > 0){
if(num % 10 == 3) {
System.out.println(i);
num = 0;
} else {
num /= 10;
}
}
}
}
}
}
nesaia