結果
問題 |
No.46 はじめのn歩
|
ユーザー |
![]() |
提出日時 | 2019-03-12 10:26:51 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 132 ms / 5,000 ms |
コード長 | 473 bytes |
コンパイル時間 | 3,292 ms |
コンパイル使用メモリ | 74,488 KB |
実行使用メモリ | 54,284 KB |
最終ジャッジ日時 | 2024-06-23 15:44:17 |
合計ジャッジ時間 | 5,269 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
import java.util.Scanner; public class BegginingNsteps { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int acm_walk_in_one_steps; int b_cm_section; acm_walk_in_one_steps = sc.nextInt(); b_cm_section = sc.nextInt(); if (b_cm_section % acm_walk_in_one_steps == 0) { System.out.println(b_cm_section / acm_walk_in_one_steps); } else { System.out.println(b_cm_section / acm_walk_in_one_steps + 1); } sc.close(); } }