結果

問題 No.207 世界のなんとか
ユーザー yamax3232yamax3232
提出日時 2017-02-09 20:57:04
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 501 bytes
コンパイル時間 3,294 ms
コンパイル使用メモリ 72,272 KB
実行使用メモリ 57,912 KB
最終ジャッジ日時 2023-08-26 22:41:19
合計ジャッジ時間 7,131 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 130 ms
56,136 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 127 ms
55,468 KB
testcase_07 AC 126 ms
55,612 KB
testcase_08 AC 125 ms
55,560 KB
testcase_09 AC 133 ms
53,908 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 128 ms
56,108 KB
testcase_17 AC 127 ms
55,588 KB
testcase_18 AC 122 ms
55,568 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,b10=b/10,b1=b%10;
		for(int i=a;i<=b;i++){
			a10=i/10;
			a1=i%10;
			b10=i/10;
			b1=i%10;
			if(i%3==0){
				System.out.printf("%d\n", i);
			}else if(a10==3||a1==3||b10==3||b1==3){
				System.out.printf("%d\n", i);
			}
		}
		kb.close();
	}

}
0