結果

問題 No.207 世界のなんとか
ユーザー yamax3232
提出日時 2017-02-09 21:17:18
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 474 bytes
コンパイル時間 3,240 ms
コンパイル使用メモリ 75,128 KB
実行使用メモリ 54,268 KB
最終ジャッジ日時 2024-12-26 02:17:49
合計ジャッジ時間 6,549 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 18
権限があれば一括ダウンロードができます

ソースコード

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,a1;
		for(int i=a;i<=b;i++){
			a10=i/10;
			a1=i%10;
	
			if(i%3==0){
				System.out.printf("%d\n", i);
				continue;
			}else if(a10==3||a1==3){
				System.out.printf("%d\n", i);
			}
		}
		System.out.println();
		kb.close();
	}

}
0