結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-07 00:01:03 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 5,000 ms |
| コード長 | 559 bytes |
| コンパイル時間 | 3,351 ms |
| コンパイル使用メモリ | 74,340 KB |
| 実行使用メモリ | 37,088 KB |
| 最終ジャッジ日時 | 2024-06-11 23:30:02 |
| 合計ジャッジ時間 | 4,579 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
import java.io.*;
public class NWalk {
public static void main(String[] args) throws IOException{
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String numString = new String(in.readLine());
String[] array = numString.split(" ");
int num1 = Integer.parseInt(array[0]);
int num2 = Integer.parseInt(array[1]);
int ans = (Math.round(num2 / num1));
if(num2%num1 == 0){
System.out.println(ans);
} else {
System.out.println(ans + 1);
}
}
}