結果

問題 No.207 世界のなんとか
ユーザー hnthnt
提出日時 2016-03-28 15:33:48
言語 Java21
(openjdk 21)
結果
AC  
実行時間 151 ms / 5,000 ms
コード長 295 bytes
コンパイル時間 3,482 ms
コンパイル使用メモリ 74,464 KB
実行使用メモリ 41,820 KB
最終ジャッジ日時 2024-04-17 16:41:33
合計ジャッジ時間 7,041 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 143 ms
41,692 KB
testcase_01 AC 139 ms
40,972 KB
testcase_02 AC 146 ms
41,448 KB
testcase_03 AC 127 ms
40,120 KB
testcase_04 AC 139 ms
41,532 KB
testcase_05 AC 140 ms
41,048 KB
testcase_06 AC 137 ms
41,408 KB
testcase_07 AC 138 ms
41,376 KB
testcase_08 AC 139 ms
41,044 KB
testcase_09 AC 142 ms
41,564 KB
testcase_10 AC 144 ms
41,820 KB
testcase_11 AC 143 ms
41,580 KB
testcase_12 AC 143 ms
41,728 KB
testcase_13 AC 143 ms
41,380 KB
testcase_14 AC 151 ms
41,280 KB
testcase_15 AC 150 ms
41,568 KB
testcase_16 AC 139 ms
41,328 KB
testcase_17 AC 139 ms
41,228 KB
testcase_18 AC 137 ms
41,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class no207 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		for(int i=A;i<=B;i++){
			if(i%3==0||String.valueOf(i).indexOf("3")!=-1){
				System.out.println(i);
			}
		}
	}

}
0