結果

問題 No.207 世界のなんとか
ユーザー hj5ln8kbDM8t2fFhj5ln8kbDM8t2fF
提出日時 2019-06-22 19:58:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 5,000 ms
コード長 708 bytes
コンパイル時間 2,215 ms
コンパイル使用メモリ 71,832 KB
実行使用メモリ 56,304 KB
最終ジャッジ日時 2023-08-27 03:05:14
合計ジャッジ時間 5,132 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,304 KB
testcase_01 AC 118 ms
55,888 KB
testcase_02 AC 123 ms
55,740 KB
testcase_03 AC 125 ms
55,976 KB
testcase_04 AC 121 ms
56,204 KB
testcase_05 AC 123 ms
55,816 KB
testcase_06 AC 119 ms
55,892 KB
testcase_07 AC 115 ms
56,164 KB
testcase_08 AC 117 ms
55,764 KB
testcase_09 AC 124 ms
55,740 KB
testcase_10 AC 130 ms
55,748 KB
testcase_11 AC 126 ms
55,516 KB
testcase_12 AC 127 ms
56,192 KB
testcase_13 AC 129 ms
56,116 KB
testcase_14 AC 128 ms
56,140 KB
testcase_15 AC 128 ms
55,848 KB
testcase_16 AC 122 ms
55,544 KB
testcase_17 AC 118 ms
55,988 KB
testcase_18 AC 121 ms
55,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Nabeatu{
    public Nabeatu(int From,int End){
        for(int i=From;i<=End;i++){
            if (i%3==0){
                System.out.println(i);
            } else{
                String s_From = Integer.toString(i);
                if(s_From.contains("3")){
                    System.out.println(s_From);
                }  
            }
        }
    }
    
    public Nabeatu(){
        System.out.println("3でバカになる");
    }
}

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int From = sc.nextInt();
        int End = sc.nextInt();
        
        Nabeatu bk = new Nabeatu(From,End);
    }
}
0