結果

問題 No.207 世界のなんとか
ユーザー hj5ln8kbDM8t2fFhj5ln8kbDM8t2fF
提出日時 2019-06-21 12:15:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 116 ms / 5,000 ms
コード長 567 bytes
コンパイル時間 2,025 ms
コンパイル使用メモリ 71,172 KB
実行使用メモリ 56,184 KB
最終ジャッジ日時 2023-08-26 01:11:12
合計ジャッジ時間 4,790 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
55,764 KB
testcase_01 AC 105 ms
56,060 KB
testcase_02 AC 109 ms
56,056 KB
testcase_03 AC 107 ms
56,024 KB
testcase_04 AC 104 ms
55,952 KB
testcase_05 AC 106 ms
55,824 KB
testcase_06 AC 103 ms
55,872 KB
testcase_07 AC 106 ms
56,176 KB
testcase_08 AC 106 ms
55,916 KB
testcase_09 AC 116 ms
55,804 KB
testcase_10 AC 112 ms
55,608 KB
testcase_11 AC 112 ms
55,956 KB
testcase_12 AC 112 ms
55,876 KB
testcase_13 AC 111 ms
55,868 KB
testcase_14 AC 114 ms
55,712 KB
testcase_15 AC 112 ms
56,184 KB
testcase_16 AC 109 ms
55,768 KB
testcase_17 AC 106 ms
55,756 KB
testcase_18 AC 105 ms
55,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int From = sc.nextInt();
        int End = sc.nextInt();
        
        for(int i=From;i<=End;i++){
            if (i%3==0){
                System.out.println(i);
            } else{
            //    String s = Integer.toString(i);
                String s_From = Integer.toString(i);
                if(s_From.contains("3")){
                    System.out.println(s_From);
                }  
            }
        }
    }
}
0