結果
問題 |
No.46 はじめのn歩
|
ユーザー |
![]() |
提出日時 | 2019-09-20 03:23:30 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 635 ms / 5,000 ms |
コード長 | 501 bytes |
コンパイル時間 | 3,291 ms |
コンパイル使用メモリ | 74,220 KB |
実行使用メモリ | 51,000 KB |
最終ジャッジ日時 | 2024-09-13 09:19:42 |
合計ジャッジ時間 | 4,983 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Test{ public static void main(String[] args) throws IOException{ BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); String[] s = buf.readLine().split(" "); int a = Integer.parseInt(s[0]); int b = Integer.parseInt(s[1]); int walk=0; while (a*walk<b) { walk++; } System.out.println(walk); } }