結果

問題 No.207 世界のなんとか
ユーザー ちよちゃんちよちゃん
提出日時 2016-05-10 12:26:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 352 bytes
コンパイル時間 3,359 ms
コンパイル使用メモリ 74,820 KB
実行使用メモリ 41,804 KB
最終ジャッジ日時 2024-04-17 16:45:36
合計ジャッジ時間 6,098 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
41,632 KB
testcase_01 AC 123 ms
41,400 KB
testcase_02 AC 129 ms
41,284 KB
testcase_03 AC 114 ms
40,952 KB
testcase_04 AC 123 ms
41,396 KB
testcase_05 AC 125 ms
40,988 KB
testcase_06 AC 124 ms
40,868 KB
testcase_07 AC 126 ms
41,452 KB
testcase_08 AC 123 ms
41,108 KB
testcase_09 AC 121 ms
41,296 KB
testcase_10 AC 128 ms
41,456 KB
testcase_11 AC 111 ms
40,892 KB
testcase_12 AC 115 ms
41,804 KB
testcase_13 AC 116 ms
41,184 KB
testcase_14 AC 127 ms
41,376 KB
testcase_15 AC 125 ms
41,152 KB
testcase_16 AC 123 ms
41,192 KB
testcase_17 AC 122 ms
41,012 KB
testcase_18 AC 121 ms
41,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Yuki3 {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();
		for(int i= a; i <= b; i++) {
			String str = String.valueOf(i);
			if(i % 3 == 0 ||  str.indexOf("3") != -1){
				System.out.println(i);
			}
		}
	}
}
0