結果

問題 No.207 世界のなんとか
ユーザー d_makid_maki
提出日時 2019-03-11 16:27:27
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 466 bytes
コンパイル時間 4,497 ms
コンパイル使用メモリ 71,788 KB
実行使用メモリ 57,688 KB
最終ジャッジ日時 2023-09-05 20:11:38
合計ジャッジ時間 7,091 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,532 KB
testcase_01 AC 127 ms
55,664 KB
testcase_02 AC 132 ms
55,512 KB
testcase_03 AC 130 ms
55,796 KB
testcase_04 AC 128 ms
55,644 KB
testcase_05 AC 131 ms
55,780 KB
testcase_06 AC 125 ms
55,648 KB
testcase_07 AC 127 ms
55,976 KB
testcase_08 AC 128 ms
55,952 KB
testcase_09 AC 130 ms
55,816 KB
testcase_10 AC 133 ms
57,688 KB
testcase_11 AC 132 ms
55,436 KB
testcase_12 AC 131 ms
56,140 KB
testcase_13 AC 130 ms
56,016 KB
testcase_14 AC 129 ms
55,728 KB
testcase_15 AC 130 ms
55,872 KB
testcase_16 AC 125 ms
55,680 KB
testcase_17 AC 127 ms
55,656 KB
testcase_18 AC 124 ms
55,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No207 {
	private static final String k = " ";

	public static void main(String[] args) {
		String input = null;
		Scanner sc = new Scanner(System.in);
		input = sc.nextLine();
		String[] split = input.split(k);
		int a = Integer.parseInt(split[0]);
		int b = Integer.parseInt(split[1]);

		for (int i = a; i <= b; i++) {
			if (i % 3 == 0 || String.valueOf(i).contains("3"))
				System.out.println(i);
		}
		sc.close();
	}

}
0