結果

問題 No.207 世界のなんとか
ユーザー yamax3232yamax3232
提出日時 2017-02-09 21:00:31
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 446 bytes
コンパイル時間 3,243 ms
コンパイル使用メモリ 71,900 KB
実行使用メモリ 58,092 KB
最終ジャッジ日時 2023-08-26 22:41:33
合計ジャッジ時間 6,757 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 116 ms
55,776 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 125 ms
55,660 KB
testcase_07 AC 116 ms
55,952 KB
testcase_08 AC 116 ms
56,352 KB
testcase_09 AC 122 ms
55,932 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 111 ms
55,640 KB
testcase_17 AC 119 ms
55,624 KB
testcase_18 AC 111 ms
55,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Nabeatsu {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner kb=new Scanner(System.in);
		int a=kb.nextInt();
		int b=kb.nextInt();
		int a10=a/10,a1=a%10;
		for(int i=a;i<=b;i++){
			a10=i/10;
			a1=i%10;
	
			if(i%3==0){
				System.out.printf("%d\n", i);
			}else if(a10==3||a1==3){
				System.out.printf("%d\n", i);
			}
		}
		kb.close();
	}

}
0