結果

問題 No.207 世界のなんとか
ユーザー mm
提出日時 2019-11-09 09:01:57
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 323 bytes
コンパイル時間 3,031 ms
コンパイル使用メモリ 71,724 KB
実行使用メモリ 56,552 KB
最終ジャッジ日時 2023-10-13 06:55:52
合計ジャッジ時間 6,520 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 121 ms
55,932 KB
testcase_04 AC 114 ms
54,340 KB
testcase_05 WA -
testcase_06 AC 111 ms
55,976 KB
testcase_07 AC 112 ms
56,060 KB
testcase_08 AC 114 ms
55,836 KB
testcase_09 AC 120 ms
55,732 KB
testcase_10 WA -
testcase_11 AC 123 ms
55,840 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 132 ms
55,992 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 113 ms
55,648 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