結果

問題 No.207 世界のなんとか
ユーザー star filed☆star filed☆
提出日時 2020-04-25 18:44:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 346 bytes
コンパイル時間 1,993 ms
コンパイル使用メモリ 73,880 KB
実行使用メモリ 41,644 KB
最終ジャッジ日時 2024-04-25 05:46:44
合計ジャッジ時間 4,591 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
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 112 ms
40,004 KB
testcase_17 AC 114 ms
40,816 KB
testcase_18 AC 116 ms
41,052 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
 
class no207{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		
		for(;A <= B;A++){
		    if( A%3==0){
		        System.out.println(A);
		    }else if( (A/10==3) ||((A%10)%3==0)){
		        System.out.println(A);
		    }else{}
		}
		
	}
}
0