結果
問題 |
No.46 はじめのn歩
|
ユーザー |
![]() |
提出日時 | 2019-03-11 17:36:31 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 116 ms / 5,000 ms |
コード長 | 491 bytes |
コンパイル時間 | 3,091 ms |
コンパイル使用メモリ | 75,004 KB |
実行使用メモリ | 41,356 KB |
最終ジャッジ日時 | 2024-06-23 15:38:30 |
合計ジャッジ時間 | 4,731 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
import java.util.Scanner; public class No46 { private static final String k = " "; public static void main(String[] args) { String input = null; Scanner sc = new Scanner(System.in); input = sc.nextLine(); String[] split = input.split(k); int a = Integer.parseInt(split[0]); int b = Integer.parseInt(split[1]); if (b % a != 0) { int c = b / a + 1; System.out.println(c); } else if (b % a == 0) { int c = b / a; System.out.println(c); } sc.close(); } }