結果

問題 No.207 世界のなんとか
ユーザー kenji_shioyakenji_shioya
提出日時 2016-06-23 01:21:09
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 356 bytes
コンパイル時間 2,974 ms
コンパイル使用メモリ 74,456 KB
実行使用メモリ 54,480 KB
最終ジャッジ日時 2024-04-20 00:54:19
合計ジャッジ時間 6,014 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 108 ms
53,128 KB
testcase_07 AC 122 ms
54,024 KB
testcase_08 AC 109 ms
54,020 KB
testcase_09 AC 130 ms
54,316 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 113 ms
52,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Exercises4{
  public static void main (String[] args){

    Scanner sc = new Scanner(System.in);

    int firstNum = sc.nextInt();
    int secondNum = sc.nextInt();

    for(int n = firstNum; n < secondNum; n++){
      if (n % 3 == 0 || n % 10 == 3 || n / 10 == 3){
        System.out.println(n);
      }
    }
  }
}
0