結果

問題 No.207 世界のなんとか
ユーザー ayumuayumu
提出日時 2016-05-14 13:38:50
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 734 bytes
コンパイル時間 3,271 ms
コンパイル使用メモリ 74,120 KB
実行使用メモリ 37,196 KB
最終ジャッジ日時 2024-04-15 21:22:50
合計ジャッジ時間 5,400 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 47 ms
37,184 KB
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 48 ms
37,196 KB
testcase_17 AC 48 ms
37,036 KB
testcase_18 AC 49 ms
36,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package ikagawado_alg32;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class SampleInput {
	public static void main(String[] args) {
		String s ="";
		try{
			InputStreamReader isr = new InputStreamReader(System.in);
			BufferedReader br = new BufferedReader(isr);
			s = br.readLine();
		}catch(IOException e){
			e.printStackTrace();
		}
		
		String aS = s.substring(0,s.indexOf(" "));
		String bS = s.substring(s.indexOf(" ")+1);
		
		
		long a=0;
		long b=0;
		try{
			a = Long.parseLong(aS);
			b = Long.parseLong(bS);
		}catch(NumberFormatException e){
			e.printStackTrace();
		}
		for(Long n = a; n <= b;n++){
			if(n % 3 == 0){
				System.out.println(n);
			}
		}
	}
}
0