結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2016-05-14 13:31:23 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 603 bytes |
コンパイル時間 | 3,057 ms |
コンパイル使用メモリ | 73,372 KB |
実行使用メモリ | 37,192 KB |
最終ジャッジ日時 | 2024-10-06 02:26:01 |
合計ジャッジ時間 | 4,883 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 WA * 15 |
ソースコード
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){ } String aS = s.substring(0,s.indexOf(" ")); String bS = s.substring(s.indexOf(" ")+1); int a = Integer.parseInt(aS); int b = Integer.parseInt(bS); for(int n = a; n <= b;n++){ if(n % 3 == 0){ System.out.println(n); } } } }