結果

問題 No.207 世界のなんとか
ユーザー cande398cande398
提出日時 2017-10-16 00:46:18
言語 Java19
(openjdk 21)
結果
AC  
実行時間 131 ms / 5,000 ms
コード長 326 bytes
コンパイル時間 2,170 ms
コンパイル使用メモリ 72,112 KB
実行使用メモリ 57,968 KB
最終ジャッジ日時 2023-08-11 05:23:55
合計ジャッジ時間 5,780 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,820 KB
testcase_01 AC 123 ms
55,716 KB
testcase_02 AC 128 ms
55,760 KB
testcase_03 AC 128 ms
56,048 KB
testcase_04 AC 125 ms
55,848 KB
testcase_05 AC 129 ms
56,008 KB
testcase_06 AC 124 ms
56,252 KB
testcase_07 AC 121 ms
55,372 KB
testcase_08 AC 127 ms
55,772 KB
testcase_09 AC 128 ms
56,004 KB
testcase_10 AC 128 ms
55,716 KB
testcase_11 AC 129 ms
55,704 KB
testcase_12 AC 131 ms
55,704 KB
testcase_13 AC 131 ms
57,968 KB
testcase_14 AC 129 ms
55,716 KB
testcase_15 AC 129 ms
55,756 KB
testcase_16 AC 124 ms
55,852 KB
testcase_17 AC 125 ms
55,576 KB
testcase_18 AC 124 ms
55,668 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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();
        for(int i = A;i<=B;i++){
            if(String.valueOf(i).indexOf("3") != -1 || i%3 == 0)System.out.println(i);
        }
    }
}
0