結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
Gchansanjou
|
| 提出日時 | 2018-02-10 01:04:03 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 53 ms / 5,000 ms |
| コード長 | 642 bytes |
| コンパイル時間 | 3,775 ms |
| コンパイル使用メモリ | 74,084 KB |
| 実行使用メモリ | 37,300 KB |
| 最終ジャッジ日時 | 2024-10-09 09:12:47 |
| 合計ジャッジ時間 | 4,915 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 distance = Long.parseLong(input[1]);
int count = 0;
count = (int) (distance/width);
if(distance%width != 0) {
count++;
}
System.out.println(count);
} catch (IOException e) {
e.printStackTrace();
}
}
}
Gchansanjou