結果

問題 No.207 世界のなんとか
ユーザー ko kiko ki
提出日時 2020-12-30 11:47:43
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 533 bytes
コンパイル時間 2,265 ms
コンパイル使用メモリ 74,212 KB
実行使用メモリ 54,380 KB
最終ジャッジ日時 2024-04-16 08:17:23
合計ジャッジ時間 5,688 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 136 ms
54,048 KB
testcase_02 WA -
testcase_03 AC 137 ms
54,028 KB
testcase_04 AC 139 ms
53,952 KB
testcase_05 WA -
testcase_06 AC 133 ms
53,712 KB
testcase_07 AC 132 ms
54,092 KB
testcase_08 AC 132 ms
53,780 KB
testcase_09 AC 138 ms
53,836 KB
testcase_10 WA -
testcase_11 AC 139 ms
53,876 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 142 ms
54,028 KB
testcase_16 AC 135 ms
54,144 KB
testcase_17 AC 134 ms
53,644 KB
testcase_18 AC 132 ms
54,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner sc = new Scanner(System.in);

        // int 1つ分を読み込む
        int a = sc.nextInt();
        // int 1つ分を読み込む
        int b = sc.nextInt();
    	
    	for(int i = a; a <= b; a++) {
    		int x = a / 10;
    		if(a % 3 == 0 || x % 10 == 3 || a % 10 == 3){
    			System.out.println(a);
    		}
    	}
    }
}
0