結果

問題 No.207 世界のなんとか
ユーザー clamd
提出日時 2016-12-10 13:03:21
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 442 bytes
コンパイル時間 3,115 ms
コンパイル使用メモリ 74,296 KB
実行使用メモリ 54,348 KB
最終ジャッジ日時 2024-11-29 00:32:52
合計ジャッジ時間 6,400 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class world {

	public static void main(String[] args) {
		Scanner sn = new Scanner(System.in);
		int a = sn.nextInt();
		int b = sn.nextInt();
		sn.close();
		if (b - a >= 100) {
			return;
		}
		for (int i = a; i <= b; i++) {
			String s = String.valueOf(i);
			if (i % 3 == 0) {
				System.out.println(i);
			} else if (s.contains("3")) {
				System.out.println(i);
			} else {
				return;
			}
		}
	}
}
0