結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2015-06-14 03:48:00 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 135 ms / 5,000 ms |
コード長 | 432 bytes |
コンパイル時間 | 3,554 ms |
コンパイル使用メモリ | 77,532 KB |
実行使用メモリ | 49,276 KB |
最終ジャッジ日時 | 2024-10-09 10:23:42 |
合計ジャッジ時間 | 6,491 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
import java.util.Scanner; public class test2 { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int m = in.nextInt(); for(;n <= m; n++) { if(n % 3 == 0) { System.out.println(n); continue; } // なんだかなぁ int tmp = n; while(tmp > 0) { if(tmp % 10 == 3) { System.out.println(n); break; } tmp /= 10; } } } }