結果

問題 No.207 世界のなんとか
ユーザー mos_13184925mos_13184925
提出日時 2018-06-28 16:43:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 320 bytes
コンパイル時間 1,863 ms
コンパイル使用メモリ 71,840 KB
実行使用メモリ 56,276 KB
最終ジャッジ日時 2023-09-13 14:49:54
合計ジャッジ時間 5,316 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,668 KB
testcase_01 AC 120 ms
55,548 KB
testcase_02 AC 126 ms
55,636 KB
testcase_03 AC 125 ms
56,112 KB
testcase_04 AC 123 ms
56,044 KB
testcase_05 AC 127 ms
56,080 KB
testcase_06 AC 125 ms
55,748 KB
testcase_07 AC 123 ms
55,688 KB
testcase_08 AC 124 ms
56,160 KB
testcase_09 AC 127 ms
55,972 KB
testcase_10 AC 129 ms
56,228 KB
testcase_11 AC 127 ms
56,276 KB
testcase_12 AC 127 ms
55,840 KB
testcase_13 AC 125 ms
56,068 KB
testcase_14 AC 126 ms
55,856 KB
testcase_15 AC 125 ms
56,112 KB
testcase_16 AC 121 ms
55,836 KB
testcase_17 AC 122 ms
56,212 KB
testcase_18 AC 122 ms
55,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt();
        for(int i = a; i <= b; i++) {
            if(i % 3 == 0 || String.valueOf(i).contains("3")) System.out.println(i);
        }
    }
}
0