結果

問題 No.207 世界のなんとか
ユーザー kuramubonnkuramubonn
提出日時 2023-02-01 18:50:39
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 435 bytes
コンパイル時間 1,933 ms
コンパイル使用メモリ 72,100 KB
実行使用メモリ 56,296 KB
最終ジャッジ日時 2023-09-14 05:14:53
合計ジャッジ時間 6,118 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 132 ms
55,820 KB
testcase_04 AC 128 ms
55,716 KB
testcase_05 WA -
testcase_06 AC 126 ms
55,480 KB
testcase_07 AC 125 ms
55,856 KB
testcase_08 AC 126 ms
55,884 KB
testcase_09 AC 128 ms
55,652 KB
testcase_10 WA -
testcase_11 AC 128 ms
55,840 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 131 ms
55,988 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 129 ms
55,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt(), b = sc.nextInt();
		for(int i = a ; i < b ; i++) {
			if(i % 3 == 0) {
				System.out.println(i);
				continue;
			}
			String str = String.valueOf(i);
			char[] Array = str.toCharArray();
			for(char ch:Array) {
				if(ch == '3') {
					System.out.println(i);
					break;
				}
			}
		}
	}
}
0