結果

問題 No.207 世界のなんとか
ユーザー 8130Tsk8130Tsk
提出日時 2015-07-23 21:42:46
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 420 bytes
コンパイル時間 5,418 ms
コンパイル使用メモリ 72,608 KB
実行使用メモリ 56,076 KB
最終ジャッジ日時 2023-09-22 21:49:12
合計ジャッジ時間 8,899 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 123 ms
55,900 KB
testcase_04 AC 121 ms
55,812 KB
testcase_05 WA -
testcase_06 AC 120 ms
56,064 KB
testcase_07 AC 120 ms
56,036 KB
testcase_08 AC 121 ms
55,708 KB
testcase_09 AC 123 ms
55,972 KB
testcase_10 WA -
testcase_11 AC 125 ms
55,740 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 125 ms
55,984 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 120 ms
55,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No207 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();

		
		for(int i=a; i < b;i++){
			Integer.toString(i);	
			if((i%3)==0){
				System.out.println(i);
			}else if(String.valueOf(i).indexOf("3") >= 0){
					System.out.println(i);					
			}
		}
		

	}

}
0