結果

問題 No.207 世界のなんとか
ユーザー bigbear90560bigbear90560
提出日時 2015-07-03 00:35:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 149 ms / 5,000 ms
コード長 491 bytes
コンパイル時間 3,583 ms
コンパイル使用メモリ 74,924 KB
実行使用メモリ 41,576 KB
最終ジャッジ日時 2024-04-17 16:19:33
合計ジャッジ時間 6,994 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
41,012 KB
testcase_01 AC 139 ms
41,428 KB
testcase_02 AC 145 ms
41,468 KB
testcase_03 AC 124 ms
40,180 KB
testcase_04 AC 149 ms
41,468 KB
testcase_05 AC 127 ms
40,176 KB
testcase_06 AC 138 ms
41,420 KB
testcase_07 AC 133 ms
41,080 KB
testcase_08 AC 138 ms
41,012 KB
testcase_09 AC 140 ms
41,576 KB
testcase_10 AC 144 ms
41,280 KB
testcase_11 AC 143 ms
41,392 KB
testcase_12 AC 145 ms
41,332 KB
testcase_13 AC 142 ms
41,364 KB
testcase_14 AC 143 ms
41,328 KB
testcase_15 AC 146 ms
41,536 KB
testcase_16 AC 137 ms
41,472 KB
testcase_17 AC 137 ms
41,120 KB
testcase_18 AC 137 ms
41,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

/**
 * No.207 世界のなんとか
 */
public class SomehowOfTheWorld {

	public static void main(String[] args) {

        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner sc = new Scanner(System.in);
        long a = sc.nextInt();
        long b = sc.nextInt();

        for (long num=a; num<=b; num++) {
        	if (num % 3 == 0 || String.valueOf(num).indexOf("3") >= 0) System.out.println(num);
        }
	}

}
0