結果

問題 No.207 世界のなんとか
ユーザー villachvillach
提出日時 2017-09-19 19:44:57
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 366 bytes
コンパイル時間 2,899 ms
コンパイル使用メモリ 78,900 KB
実行使用メモリ 54,500 KB
最終ジャッジ日時 2024-04-25 18:15:19
合計ジャッジ時間 5,826 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 122 ms
54,192 KB
testcase_02 WA -
testcase_03 AC 113 ms
53,108 KB
testcase_04 AC 116 ms
54,256 KB
testcase_05 WA -
testcase_06 AC 115 ms
54,448 KB
testcase_07 AC 115 ms
54,216 KB
testcase_08 AC 117 ms
54,132 KB
testcase_09 AC 105 ms
52,372 KB
testcase_10 AC 111 ms
52,876 KB
testcase_11 AC 123 ms
53,940 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 126 ms
54,148 KB
testcase_16 AC 113 ms
54,212 KB
testcase_17 AC 117 ms
53,912 KB
testcase_18 AC 118 ms
54,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

public class N207 {
	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){
			if(i % 3 == 0 || ((i % 100) % 10) == 3 || ((i % 100) >= 30 && (i % 100) < 40) || (i >= 300 && i < 400)) System.out.println(i);
		}
	}
}
0