結果

問題 No.207 世界のなんとか
ユーザー uafr_csuafr_cs
提出日時 2015-05-15 22:22:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 115 ms / 5,000 ms
コード長 393 bytes
コンパイル時間 1,720 ms
コンパイル使用メモリ 77,540 KB
実行使用メモリ 54,344 KB
最終ジャッジ日時 2024-04-17 15:18:56
合計ジャッジ時間 4,485 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
53,520 KB
testcase_01 AC 110 ms
54,312 KB
testcase_02 AC 113 ms
53,996 KB
testcase_03 AC 113 ms
53,964 KB
testcase_04 AC 103 ms
52,860 KB
testcase_05 AC 111 ms
53,976 KB
testcase_06 AC 109 ms
53,856 KB
testcase_07 AC 110 ms
53,992 KB
testcase_08 AC 100 ms
53,000 KB
testcase_09 AC 114 ms
54,144 KB
testcase_10 AC 112 ms
54,012 KB
testcase_11 AC 104 ms
53,096 KB
testcase_12 AC 103 ms
52,836 KB
testcase_13 AC 112 ms
54,008 KB
testcase_14 AC 113 ms
54,152 KB
testcase_15 AC 115 ms
54,344 KB
testcase_16 AC 109 ms
53,816 KB
testcase_17 AC 106 ms
53,760 KB
testcase_18 AC 97 ms
53,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.LinkedList;
import java.util.Scanner;

public class Main {
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		final long A = sc.nextLong();
		final long B = sc.nextLong();
		
		for(long cur = A; cur <= B; cur++){
			if(cur % 3 == 0 || (cur + "").contains("3")){
				System.out.println(cur);
			}
		}
		
		
		
	}
	
}
0