結果

問題 No.207 世界のなんとか
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-14 13:17:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 5,000 ms
コード長 283 bytes
コンパイル時間 2,007 ms
コンパイル使用メモリ 71,124 KB
実行使用メモリ 56,400 KB
最終ジャッジ日時 2023-10-11 12:33:40
合計ジャッジ時間 5,768 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,616 KB
testcase_01 AC 120 ms
55,548 KB
testcase_02 AC 129 ms
56,120 KB
testcase_03 AC 124 ms
55,836 KB
testcase_04 AC 127 ms
55,556 KB
testcase_05 AC 129 ms
55,368 KB
testcase_06 AC 121 ms
56,276 KB
testcase_07 AC 122 ms
55,604 KB
testcase_08 AC 123 ms
55,704 KB
testcase_09 AC 126 ms
56,400 KB
testcase_10 AC 126 ms
56,276 KB
testcase_11 AC 128 ms
55,964 KB
testcase_12 AC 124 ms
55,452 KB
testcase_13 AC 128 ms
55,972 KB
testcase_14 AC 130 ms
56,000 KB
testcase_15 AC 130 ms
56,024 KB
testcase_16 AC 122 ms
55,756 KB
testcase_17 AC 119 ms
55,752 KB
testcase_18 AC 118 ms
55,804 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		
		int a = sc.nextInt(); int b = sc.nextInt();
		for (int i=a; i<=b; i++) {
			if (i%3==0 || String.valueOf(i).contains("3")) System.out.println(i);
		}
		
	}
}
0