結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2019-11-09 09:01:57 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 323 bytes |
コンパイル時間 | 2,258 ms |
コンパイル使用メモリ | 73,888 KB |
実行使用メモリ | 41,472 KB |
最終ジャッジ日時 | 2024-09-15 04:11:13 |
合計ジャッジ時間 | 5,875 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 10 |
ソースコード
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); String s; for (int i = a; i < b; i++) { s = Integer.toString(i); if (i % 3 == 0 || s.matches(".*3.*") ) { System.out.println(i); } } } }