結果

問題 No.207 世界のなんとか
ユーザー 2ch_GreenApple2ch_GreenApple
提出日時 2015-08-16 16:21:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 5,000 ms
コード長 430 bytes
コンパイル時間 2,253 ms
コンパイル使用メモリ 77,740 KB
実行使用メモリ 41,560 KB
最終ジャッジ日時 2024-04-17 16:21:58
合計ジャッジ時間 6,159 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
41,068 KB
testcase_01 AC 120 ms
41,224 KB
testcase_02 AC 116 ms
40,092 KB
testcase_03 AC 125 ms
41,432 KB
testcase_04 AC 113 ms
40,000 KB
testcase_05 AC 124 ms
41,120 KB
testcase_06 AC 120 ms
41,236 KB
testcase_07 AC 108 ms
40,112 KB
testcase_08 AC 118 ms
41,560 KB
testcase_09 AC 115 ms
40,184 KB
testcase_10 AC 120 ms
40,880 KB
testcase_11 AC 126 ms
41,348 KB
testcase_12 AC 134 ms
41,472 KB
testcase_13 AC 122 ms
41,032 KB
testcase_14 AC 124 ms
41,160 KB
testcase_15 AC 124 ms
41,312 KB
testcase_16 AC 118 ms
41,180 KB
testcase_17 AC 122 ms
41,336 KB
testcase_18 AC 124 ms
41,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
        int low =sc.nextInt();
        int hig =sc.nextInt();

        for (int i=low;i<=hig;i++){
            if ((i%3)==0){
                System.out.println(i);
            }else if (String.valueOf(i).indexOf("3") >=0){
                System.out.println(i);
            }

        }
    }
}
0