結果

問題 No.207 世界のなんとか
ユーザー syusyu
提出日時 2020-08-25 18:36:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 5,000 ms
コード長 345 bytes
コンパイル時間 1,727 ms
コンパイル使用メモリ 74,192 KB
実行使用メモリ 41,656 KB
最終ジャッジ日時 2024-04-24 04:44:46
合計ジャッジ時間 4,660 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
41,344 KB
testcase_01 AC 120 ms
41,380 KB
testcase_02 AC 127 ms
41,140 KB
testcase_03 AC 115 ms
41,324 KB
testcase_04 AC 111 ms
41,528 KB
testcase_05 AC 110 ms
40,356 KB
testcase_06 AC 105 ms
40,364 KB
testcase_07 AC 111 ms
41,120 KB
testcase_08 AC 112 ms
41,492 KB
testcase_09 AC 122 ms
41,484 KB
testcase_10 AC 111 ms
40,600 KB
testcase_11 AC 121 ms
41,348 KB
testcase_12 AC 118 ms
41,260 KB
testcase_13 AC 127 ms
41,656 KB
testcase_14 AC 112 ms
40,320 KB
testcase_15 AC 119 ms
41,624 KB
testcase_16 AC 118 ms
41,468 KB
testcase_17 AC 120 ms
41,460 KB
testcase_18 AC 103 ms
40,072 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(i%3==0 || String.valueOf(i).contains("3")){
                System.out.println(i);
            }
        }
    }
}
0