結果

問題 No.207 世界のなんとか
ユーザー 8130Tsk8130Tsk
提出日時 2015-07-23 21:45:02
言語 Java21
(openjdk 21)
結果
AC  
実行時間 111 ms / 5,000 ms
コード長 397 bytes
コンパイル時間 2,797 ms
コンパイル使用メモリ 74,640 KB
実行使用メモリ 54,348 KB
最終ジャッジ日時 2024-04-17 16:20:14
合計ジャッジ時間 5,499 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
54,288 KB
testcase_01 AC 105 ms
54,280 KB
testcase_02 AC 108 ms
53,980 KB
testcase_03 AC 107 ms
53,892 KB
testcase_04 AC 108 ms
53,880 KB
testcase_05 AC 99 ms
52,900 KB
testcase_06 AC 108 ms
53,856 KB
testcase_07 AC 105 ms
54,348 KB
testcase_08 AC 104 ms
53,808 KB
testcase_09 AC 111 ms
53,868 KB
testcase_10 AC 100 ms
52,848 KB
testcase_11 AC 108 ms
54,132 KB
testcase_12 AC 109 ms
53,872 KB
testcase_13 AC 109 ms
53,872 KB
testcase_14 AC 98 ms
52,336 KB
testcase_15 AC 109 ms
53,976 KB
testcase_16 AC 104 ms
53,972 KB
testcase_17 AC 105 ms
54,104 KB
testcase_18 AC 106 ms
53,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No207 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		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){
				System.out.println(i);
			}else if(String.valueOf(i).indexOf("3") >= 0){
					System.out.println(i);					
			}
		}
		

	}

}
0