結果

問題 No.207 世界のなんとか
ユーザー villachvillach
提出日時 2017-09-19 19:47:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 344 bytes
コンパイル時間 2,991 ms
コンパイル使用メモリ 74,904 KB
実行使用メモリ 56,220 KB
最終ジャッジ日時 2024-04-25 18:15:55
合計ジャッジ時間 5,985 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
53,024 KB
testcase_01 AC 113 ms
52,960 KB
testcase_02 AC 120 ms
54,296 KB
testcase_03 AC 124 ms
54,028 KB
testcase_04 AC 111 ms
53,004 KB
testcase_05 AC 129 ms
54,460 KB
testcase_06 AC 118 ms
54,168 KB
testcase_07 AC 108 ms
53,016 KB
testcase_08 AC 123 ms
53,968 KB
testcase_09 AC 122 ms
53,904 KB
testcase_10 AC 129 ms
54,024 KB
testcase_11 AC 126 ms
53,876 KB
testcase_12 AC 112 ms
52,988 KB
testcase_13 AC 114 ms
53,088 KB
testcase_14 AC 120 ms
53,936 KB
testcase_15 AC 118 ms
53,872 KB
testcase_16 AC 119 ms
56,220 KB
testcase_17 AC 119 ms
53,064 KB
testcase_18 AC 108 ms
53,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

public class N207 {
	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) System.out.println(i);
			else if(String.valueOf(i).contains("3")) System.out.println(i);
		}
	}
}
0