結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2016-05-14 13:56:21 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 135 ms / 5,000 ms |
コード長 | 613 bytes |
コンパイル時間 | 2,056 ms |
コンパイル使用メモリ | 74,332 KB |
実行使用メモリ | 54,368 KB |
最終ジャッジ日時 | 2024-10-09 10:55:20 |
合計ジャッジ時間 | 5,339 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone { public static void main (String[] args) throws java.lang.Exception { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); for(int i = A; i <= B;i++) { if(i % 3 == 0) { System.out.println(i); continue; } int j = i; boolean ok = false; while(0 < j) { if(j % 10 == 3) ok = true; j /= 10; } if(ok) System.out.println(i); } } }