結果
問題 |
No.46 はじめのn歩
|
ユーザー |
![]() |
提出日時 | 2017-04-23 21:14:11 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 65 ms / 5,000 ms |
コード長 | 542 bytes |
コンパイル時間 | 2,299 ms |
コンパイル使用メモリ | 73,156 KB |
実行使用メモリ | 37,196 KB |
最終ジャッジ日時 | 2024-07-22 10:08:05 |
合計ジャッジ時間 | 3,633 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader =new BufferedReader(new InputStreamReader(System.in)); String[] line = reader.readLine().split(" "); int a = Integer.parseInt(line[0]); int b = Integer.parseInt(line[1]); if(b % a !=0) { System.out.println(b/a + 1); } else { System.out.println(b/a); } } }