結果

問題 No.207 世界のなんとか
ユーザー RyanakRyanak
提出日時 2017-09-07 16:16:43
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 442 bytes
コンパイル時間 2,266 ms
コンパイル使用メモリ 74,776 KB
実行使用メモリ 41,528 KB
最終ジャッジ日時 2024-04-25 01:32:39
合計ジャッジ時間 5,456 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 122 ms
41,324 KB
testcase_04 AC 121 ms
41,048 KB
testcase_05 WA -
testcase_06 AC 127 ms
41,200 KB
testcase_07 AC 124 ms
41,472 KB
testcase_08 AC 122 ms
40,940 KB
testcase_09 AC 117 ms
40,308 KB
testcase_10 WA -
testcase_11 AC 128 ms
41,424 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 120 ms
40,156 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 124 ms
41,132 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++){
            String s=String.valueOf(i);
            if(i%3==0){
                System.out.println(i);
            }
            else if (s.indexOf("3")==-1);
            else System.out.println(i);
        }
    }
}
0