結果

問題 No.207 世界のなんとか
ユーザー TwinkleStar74
提出日時 2017-09-10 14:22:46
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 373 bytes
コンパイル時間 3,579 ms
コンパイル使用メモリ 77,188 KB
実行使用メモリ 41,436 KB
最終ジャッジ日時 2024-11-07 12:36:58
合計ジャッジ時間 6,767 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No_207 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int x = a/3;
		int y = b/3;
		if (a%3==0){
			for(int k=x; k<=y; k++){
			System.out.println(3*k);
		    }
		}else{
			for(int l=x+1; l<=y; l++){
			System.out.println(3*l);
		    }
	    }
	}
}
0