結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2015-09-19 14:55:52 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 623 bytes |
コンパイル時間 | 3,367 ms |
コンパイル使用メモリ | 75,020 KB |
実行使用メモリ | 41,444 KB |
最終ジャッジ日時 | 2024-07-19 07:56:58 |
合計ジャッジ時間 | 6,728 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 10 |
ソースコード
import java.util.Scanner; /** * アルゴリズム勉強会 第33回 * yukicoder no.207 世界のなんとか * @author scache * */ public class Main207 { public static void main(String[] args) { Main207 p = new Main207(); } public Main207() { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b =sc.nextInt(); solve(a,b); } public void solve(int a, int b) { for(int m=a;m<=b;m++){ if(m%3==0){ System.out.println(m); }else{ int n = m; for(long i=10;i<10000000000L;i*=10){ if(n%10==3){ System.out.println(m); } n/=10; } } } } }