結果

問題 No.207 世界のなんとか
ユーザー mm
提出日時 2019-11-09 09:05:13
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 5,000 ms
コード長 324 bytes
コンパイル時間 1,749 ms
コンパイル使用メモリ 71,780 KB
実行使用メモリ 56,280 KB
最終ジャッジ日時 2023-10-13 06:55:57
合計ジャッジ時間 4,916 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
55,872 KB
testcase_01 AC 113 ms
55,876 KB
testcase_02 AC 124 ms
55,684 KB
testcase_03 AC 122 ms
55,880 KB
testcase_04 AC 118 ms
55,872 KB
testcase_05 AC 116 ms
55,996 KB
testcase_06 AC 110 ms
55,544 KB
testcase_07 AC 112 ms
56,108 KB
testcase_08 AC 109 ms
55,908 KB
testcase_09 AC 122 ms
55,964 KB
testcase_10 AC 125 ms
56,004 KB
testcase_11 AC 125 ms
56,156 KB
testcase_12 AC 124 ms
56,064 KB
testcase_13 AC 123 ms
55,836 KB
testcase_14 AC 124 ms
56,280 KB
testcase_15 AC 117 ms
55,936 KB
testcase_16 AC 103 ms
55,908 KB
testcase_17 AC 104 ms
55,876 KB
testcase_18 AC 109 ms
55,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s;
		for (int i = a; i <= b; i++) {
			s = Integer.toString(i);
			if (i % 3 == 0 || s.matches(".*3.*") ) {
			System.out.println(i);
			}
		}
	}
}
0