結果

問題 No.207 世界のなんとか
ユーザー howakurohowakuro
提出日時 2015-09-25 00:43:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 109 ms / 5,000 ms
コード長 363 bytes
コンパイル時間 3,868 ms
コンパイル使用メモリ 78,436 KB
実行使用メモリ 54,680 KB
最終ジャッジ日時 2024-04-17 16:27:03
合計ジャッジ時間 5,266 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
54,020 KB
testcase_01 AC 95 ms
52,968 KB
testcase_02 AC 106 ms
53,884 KB
testcase_03 AC 108 ms
53,976 KB
testcase_04 AC 94 ms
53,044 KB
testcase_05 AC 94 ms
52,920 KB
testcase_06 AC 103 ms
53,836 KB
testcase_07 AC 101 ms
53,748 KB
testcase_08 AC 102 ms
54,152 KB
testcase_09 AC 105 ms
54,116 KB
testcase_10 AC 96 ms
52,772 KB
testcase_11 AC 108 ms
54,680 KB
testcase_12 AC 109 ms
54,276 KB
testcase_13 AC 108 ms
54,236 KB
testcase_14 AC 106 ms
53,888 KB
testcase_15 AC 96 ms
53,076 KB
testcase_16 AC 101 ms
54,024 KB
testcase_17 AC 102 ms
54,060 KB
testcase_18 AC 107 ms
54,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Puroguram{
	static Scanner scan= new Scanner(System.in);
	
	public static void main(String[] Args){
		int A = scan.nextInt();
		int B = scan.nextInt();
		
		for(;A<=B;A++){
			String a = String.valueOf(A);
			if(A%3==0){
				System.out.println(A);
			}else if(a.contains("3")){
				System.out.println(A);
			}	
			
		}
	}
}
0