結果

問題 No.207 世界のなんとか
ユーザー Daigo HIROOKADaigo HIROOKA
提出日時 2018-05-10 04:14:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 5,000 ms
コード長 374 bytes
コンパイル時間 3,270 ms
コンパイル使用メモリ 72,520 KB
実行使用メモリ 56,320 KB
最終ジャッジ日時 2023-09-10 11:35:01
合計ジャッジ時間 6,656 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
55,988 KB
testcase_01 AC 123 ms
55,864 KB
testcase_02 AC 134 ms
55,752 KB
testcase_03 AC 129 ms
56,104 KB
testcase_04 AC 125 ms
55,780 KB
testcase_05 AC 129 ms
55,728 KB
testcase_06 AC 123 ms
56,120 KB
testcase_07 AC 123 ms
56,320 KB
testcase_08 AC 124 ms
55,884 KB
testcase_09 AC 131 ms
55,736 KB
testcase_10 AC 134 ms
55,988 KB
testcase_11 AC 133 ms
55,752 KB
testcase_12 AC 133 ms
55,944 KB
testcase_13 AC 136 ms
55,992 KB
testcase_14 AC 133 ms
55,792 KB
testcase_15 AC 132 ms
55,740 KB
testcase_16 AC 122 ms
55,740 KB
testcase_17 AC 122 ms
55,552 KB
testcase_18 AC 122 ms
56,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class SekainoNantoka{
    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).matches(".*3.*")){
                System.out.println(i);
            }
        }
    }
}

0