結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2016-05-14 13:54:27 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 574 bytes |
コンパイル時間 | 1,806 ms |
コンパイル使用メモリ | 73,956 KB |
実行使用メモリ | 54,164 KB |
最終ジャッジ日時 | 2024-10-06 02:30:52 |
合計ジャッジ時間 | 4,774 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 10 |
ソースコード
/* 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; while(0 < j) { if(j % 10 == 3) System.out.println(i); j /= 10; } } } }