結果

問題 No.207 世界のなんとか
ユーザー core123core123
提出日時 2019-04-16 15:26:54
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 436 bytes
コンパイル時間 1,982 ms
コンパイル使用メモリ 74,704 KB
実行使用メモリ 57,876 KB
最終ジャッジ日時 2023-10-22 07:04:44
合計ジャッジ時間 5,315 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
57,424 KB
testcase_01 WA -
testcase_02 AC 134 ms
57,656 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 134 ms
57,672 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 127 ms
57,564 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 130 ms
57,636 KB
testcase_18 AC 129 ms
57,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.*;
public class Main{
	public static void main(String... args){
		Scanner sc=new Scanner(System.in);
		long a=sc.nextLong();
		long b=sc.nextLong();
		for(long i=a;i<=b;i++){
			if(isAttached3(i)){
				System.out.println(i);
			}
		}
	}
	public static boolean isAttached3(long x){
		String s=Long.toString(x);
		for(char c:s.toCharArray()){
			if(c=='3')return true;
		}
		return false;
	}
}
0