結果

問題 No.207 世界のなんとか
ユーザー d07ki3bq1uzd07ki3bq1uz
提出日時 2019-09-28 00:44:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 5,000 ms
コード長 362 bytes
コンパイル時間 2,495 ms
コンパイル使用メモリ 74,536 KB
実行使用メモリ 57,676 KB
最終ジャッジ日時 2023-10-25 08:42:00
合計ジャッジ時間 5,993 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
55,424 KB
testcase_01 AC 133 ms
57,632 KB
testcase_02 AC 138 ms
57,676 KB
testcase_03 AC 124 ms
56,240 KB
testcase_04 AC 131 ms
57,580 KB
testcase_05 AC 135 ms
57,476 KB
testcase_06 AC 128 ms
57,504 KB
testcase_07 AC 130 ms
57,644 KB
testcase_08 AC 130 ms
57,536 KB
testcase_09 AC 133 ms
57,512 KB
testcase_10 AC 134 ms
57,656 KB
testcase_11 AC 131 ms
57,496 KB
testcase_12 AC 136 ms
57,544 KB
testcase_13 AC 134 ms
57,300 KB
testcase_14 AC 134 ms
57,316 KB
testcase_15 AC 133 ms
57,492 KB
testcase_16 AC 130 ms
57,200 KB
testcase_17 AC 117 ms
56,224 KB
testcase_18 AC 126 ms
57,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
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 || Integer.toString(i).contains("3")){
            System.out.println(i);
        }
    }    
    
    
    }
}
0