結果
問題 | No.46 はじめのn歩 |
ユーザー | Gchansanjou |
提出日時 | 2018-02-10 00:47:24 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 3,445 ms / 5,000 ms |
コード長 | 645 bytes |
コンパイル時間 | 3,689 ms |
コンパイル使用メモリ | 75,156 KB |
実行使用メモリ | 42,036 KB |
最終ジャッジ日時 | 2024-04-17 14:55:23 |
合計ジャッジ時間 | 7,693 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 48 ms
36,808 KB |
testcase_01 | AC | 47 ms
36,848 KB |
testcase_02 | AC | 47 ms
36,656 KB |
testcase_03 | AC | 47 ms
37,060 KB |
testcase_04 | AC | 49 ms
36,652 KB |
testcase_05 | AC | 47 ms
36,848 KB |
testcase_06 | AC | 47 ms
36,976 KB |
testcase_07 | AC | 46 ms
36,924 KB |
testcase_08 | AC | 3,445 ms
42,036 KB |
testcase_09 | AC | 48 ms
37,028 KB |
ソースコード
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(); } } }