結果

問題 No.207 世界のなんとか
ユーザー kazapyon27kazapyon27
提出日時 2017-05-04 20:46:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 49 ms / 5,000 ms
コード長 660 bytes
コンパイル時間 3,464 ms
コンパイル使用メモリ 71,480 KB
実行使用メモリ 49,844 KB
最終ジャッジ日時 2023-10-12 08:08:52
合計ジャッジ時間 4,918 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,620 KB
testcase_01 AC 42 ms
49,164 KB
testcase_02 AC 46 ms
49,388 KB
testcase_03 AC 43 ms
49,436 KB
testcase_04 AC 42 ms
49,732 KB
testcase_05 AC 43 ms
49,208 KB
testcase_06 AC 41 ms
49,468 KB
testcase_07 AC 41 ms
49,364 KB
testcase_08 AC 43 ms
49,844 KB
testcase_09 AC 44 ms
49,260 KB
testcase_10 AC 45 ms
49,620 KB
testcase_11 AC 49 ms
49,176 KB
testcase_12 AC 46 ms
49,756 KB
testcase_13 AC 45 ms
49,240 KB
testcase_14 AC 46 ms
49,324 KB
testcase_15 AC 43 ms
49,288 KB
testcase_16 AC 41 ms
49,624 KB
testcase_17 AC 42 ms
49,276 KB
testcase_18 AC 42 ms
49,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/*No.207 世界のなんとか*/
import java.io.*;
public class No207 {
	public static void main(String[] args) {
		String s_range,h_range[]=new String[2],s_check;
		int start,end,include_3;
		try(BufferedReader input =new BufferedReader(new InputStreamReader(System.in))){
			s_range=input.readLine();
			h_range=s_range.split(" ");
			start=Integer.parseInt(h_range[0]);
			end=Integer.parseInt(h_range[1]);
			for(int check=start;check<=end;check++){
				s_check=Integer.toString(check);
				include_3=s_check.indexOf("3");
				if(check%3==0||include_3!=-1){
					System.out.println(check);
				}
			}
		}catch(Exception e){
			e.printStackTrace();
		}
	}
}
0