結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2021-03-05 21:54:31 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 50 ms / 5,000 ms |
コード長 | 482 bytes |
コンパイル時間 | 3,150 ms |
コンパイル使用メモリ | 73,016 KB |
実行使用メモリ | 36,976 KB |
最終ジャッジ日時 | 2024-10-07 01:36:52 |
合計ジャッジ時間 | 4,469 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00000207_Main3 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] arr = br.readLine().split(" "); for(int i = Integer.parseInt(arr[0]); i <= Integer.parseInt(arr[1]); i++) { if(i % 3 == 0 || String.valueOf(i).contains("3")) { System.out.println(i); } } } }