結果

問題 No.207 世界のなんとか
ユーザー DevbotBotDevbotBot
提出日時 2015-06-18 16:48:56
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 464 bytes
コンパイル時間 2,163 ms
コンパイル使用メモリ 71,620 KB
実行使用メモリ 56,368 KB
最終ジャッジ日時 2023-09-21 09:29:26
合計ジャッジ時間 5,706 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 130 ms
55,860 KB
testcase_04 AC 127 ms
54,036 KB
testcase_05 WA -
testcase_06 AC 127 ms
55,540 KB
testcase_07 AC 128 ms
55,792 KB
testcase_08 AC 127 ms
55,936 KB
testcase_09 AC 132 ms
55,920 KB
testcase_10 WA -
testcase_11 AC 132 ms
55,992 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 129 ms
56,168 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 125 ms
56,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class No207{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        Long a = sc.nextLong();
        Long b = sc.nextLong();
        for (Long i = a; i < b; i++){
            if (i % 3 == 0){
                System.out.println(i);
            } else {
                if (String.valueOf(i).indexOf("3") != -1) {
                   System.out.println(i);
                }
            }
        }
    }
}
0