結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2018-04-09 17:30:43 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 57 ms / 5,000 ms |
コード長 | 561 bytes |
コンパイル時間 | 1,968 ms |
コンパイル使用メモリ | 74,528 KB |
実行使用メモリ | 50,416 KB |
最終ジャッジ日時 | 2024-06-26 20:38:29 |
合計ジャッジ時間 | 3,809 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; class Main { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] input = br.readLine().split(" "); int a = Integer.parseInt(input[0]); int b = Integer.parseInt(input[1]); for(int i = a; i <= b; i++){ if(i%3 == 0 || String.valueOf(i).contains("3")){ System.out.println(i); } } } }