結果

問題 No.207 世界のなんとか
ユーザー TakaTaka
提出日時 2016-04-09 23:07:39
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 550 bytes
コンパイル時間 2,011 ms
コンパイル使用メモリ 74,936 KB
実行使用メモリ 56,392 KB
最終ジャッジ日時 2024-04-14 23:37:45
合計ジャッジ時間 43,249 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 2,379 ms
53,224 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 2,386 ms
54,088 KB
testcase_17 AC 2,391 ms
54,016 KB
testcase_18 AC 2,392 ms
54,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
		
        Scanner sc = new Scanner(System.in);
		
       	int A = sc.nextInt();
        int B = sc.nextInt();
		int i=0, j=0;
		char num;
		
		for(i=0; i<=2000000000; i++)
		{
			if(A<=i && i<=B){
				if(i%3==0){
					System.out.println(i);
				}else{
					String i_string=String.valueOf(i);
					while(j<i_string.length())
					{
						num=i_string.charAt(j);
						if(num==3){
							System.out.println(i);
						}
						j++;
					}
				}
			}
		}
    }
}
0