結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 113 ms
41,184 KB
testcase_04 AC 110 ms
40,092 KB
testcase_05 WA -
testcase_06 AC 111 ms
41,404 KB
testcase_07 AC 113 ms
40,092 KB
testcase_08 AC 109 ms
41,104 KB
testcase_09 AC 124 ms
41,416 KB
testcase_10 WA -
testcase_11 AC 121 ms
41,164 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 117 ms
40,260 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 102 ms
39,736 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