結果
問題 | No.46 はじめのn歩 |
ユーザー |
![]() |
提出日時 | 2018-02-10 00:47:24 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 3,804 ms / 5,000 ms |
コード長 | 645 bytes |
コンパイル時間 | 3,544 ms |
コンパイル使用メモリ | 73,416 KB |
実行使用メモリ | 42,148 KB |
最終ジャッジ日時 | 2024-10-09 08:53:40 |
合計ジャッジ時間 | 8,524 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
package yukiCoder; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00046 { public static void main(String[] args) { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); try { String[] input = new String[2]; input = bufferedReader.readLine().split(" "); Long width = Long.parseLong(input[0]); Long distans = Long.parseLong(input[1]); int count = 0; while(Long.signum(distans) == 1) { distans = distans - width; count++; } System.out.println(count); } catch (IOException e) { e.printStackTrace(); } } }