結果

問題 No.207 世界のなんとか
ユーザー MattyaaMattyanMattyaaMattyan
提出日時 2018-08-16 00:28:24
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 485 bytes
コンパイル時間 2,204 ms
コンパイル使用メモリ 74,712 KB
実行使用メモリ 57,796 KB
最終ジャッジ日時 2023-10-24 17:34:15
合計ジャッジ時間 5,440 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 119 ms
57,196 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 118 ms
57,236 KB
testcase_07 AC 119 ms
57,440 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 121 ms
55,208 KB
testcase_17 AC 113 ms
56,868 KB
testcase_18 AC 118 ms
57,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc=new Scanner(System.in);
        int num1=sc.nextInt();
        int num2=sc.nextInt();
        for(int i=num1;i<=num2;i++)
        {
            if(i%3==0)
            {
                System.out.println(i);
            }
            else if(i%10==3)
            {
                System.out.println(i);
            }
        }
    }
}
0