結果

問題 No.207 世界のなんとか
ユーザー YOSHIYOSHI
提出日時 2021-03-05 21:46:33
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 343 bytes
コンパイル時間 3,565 ms
コンパイル使用メモリ 75,344 KB
実行使用メモリ 41,648 KB
最終ジャッジ日時 2024-04-16 09:12:02
合計ジャッジ時間 7,314 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 145 ms
41,372 KB
testcase_01 WA -
testcase_02 AC 148 ms
41,240 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 148 ms
41,508 KB
testcase_06 AC 140 ms
41,060 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 141 ms
41,200 KB
testcase_17 AC 143 ms
41,248 KB
testcase_18 AC 145 ms
41,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No00000207_Main2 {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		String b = scan.next();

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