結果

問題 No.207 世界のなんとか
ユーザー papipenpapipen
提出日時 2017-03-24 01:28:02
言語 Java21
(openjdk 21)
結果
AC  
実行時間 139 ms / 5,000 ms
コード長 330 bytes
コンパイル時間 2,369 ms
コンパイル使用メモリ 73,756 KB
実行使用メモリ 55,936 KB
最終ジャッジ日時 2023-09-19 06:47:37
合計ジャッジ時間 6,267 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
55,704 KB
testcase_01 AC 133 ms
55,736 KB
testcase_02 AC 135 ms
55,744 KB
testcase_03 AC 134 ms
55,816 KB
testcase_04 AC 131 ms
55,716 KB
testcase_05 AC 133 ms
55,608 KB
testcase_06 AC 128 ms
55,712 KB
testcase_07 AC 129 ms
55,852 KB
testcase_08 AC 130 ms
55,936 KB
testcase_09 AC 135 ms
55,584 KB
testcase_10 AC 136 ms
55,344 KB
testcase_11 AC 139 ms
55,620 KB
testcase_12 AC 134 ms
55,904 KB
testcase_13 AC 133 ms
55,760 KB
testcase_14 AC 138 ms
55,864 KB
testcase_15 AC 134 ms
55,584 KB
testcase_16 AC 129 ms
55,600 KB
testcase_17 AC 133 ms
55,520 KB
testcase_18 AC 129 ms
55,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class Nabeatu{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    for(int i = a; i <= b; i++){
      String c = "" + i;
      if(i % 3 == 0 || c.indexOf("3") !=-1){
        System.out.println(i);
      }
    }
  }
}
0