結果

問題 No.207 世界のなんとか
ユーザー 👑 はまやんはまやんはまやんはまやん
提出日時 2016-05-14 13:54:27
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 574 bytes
コンパイル時間 2,291 ms
コンパイル使用メモリ 74,804 KB
実行使用メモリ 54,468 KB
最終ジャッジ日時 2024-04-15 21:25:21
合計ジャッジ時間 5,884 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 138 ms
54,244 KB
testcase_02 WA -
testcase_03 AC 137 ms
54,356 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 137 ms
54,164 KB
testcase_07 AC 137 ms
54,304 KB
testcase_08 AC 136 ms
54,172 KB
testcase_09 AC 140 ms
54,192 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 135 ms
53,964 KB
testcase_17 AC 133 ms
54,056 KB
testcase_18 AC 132 ms
54,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		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);
				continue;
			}
			
			int j = i;
			while(0 < j)
			{
				if(j % 10 == 3)
					System.out.println(i);
				j /= 10;
			}
		}
	}
}
0