結果

問題 No.207 世界のなんとか
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-08 22:02:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 149 ms / 5,000 ms
コード長 288 bytes
コンパイル時間 2,778 ms
コンパイル使用メモリ 74,228 KB
実行使用メモリ 58,220 KB
最終ジャッジ日時 2024-04-08 13:22:01
合計ジャッジ時間 5,944 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 146 ms
57,696 KB
testcase_01 AC 144 ms
57,704 KB
testcase_02 AC 149 ms
57,832 KB
testcase_03 AC 144 ms
58,196 KB
testcase_04 AC 144 ms
57,960 KB
testcase_05 AC 147 ms
57,980 KB
testcase_06 AC 145 ms
57,740 KB
testcase_07 AC 144 ms
57,708 KB
testcase_08 AC 144 ms
57,784 KB
testcase_09 AC 146 ms
57,728 KB
testcase_10 AC 147 ms
57,820 KB
testcase_11 AC 146 ms
57,720 KB
testcase_12 AC 148 ms
58,220 KB
testcase_13 AC 148 ms
57,980 KB
testcase_14 AC 147 ms
58,100 KB
testcase_15 AC 146 ms
58,088 KB
testcase_16 AC 143 ms
57,948 KB
testcase_17 AC 142 ms
55,976 KB
testcase_18 AC 146 ms
57,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public 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 (String.valueOf(i).contains("3") || i%3==0) {System.out.println(i);}
		}
	}
}
0