結果

問題 No.46 はじめのn歩
ユーザー KahoMatsumotoKahoMatsumoto
提出日時 2017-05-26 22:30:52
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 290 bytes
コンパイル時間 3,199 ms
コンパイル使用メモリ 74,528 KB
実行使用メモリ 57,524 KB
最終ジャッジ日時 2023-10-20 00:19:11
合計ジャッジ時間 5,135 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
57,384 KB
testcase_01 AC 126 ms
57,440 KB
testcase_02 AC 123 ms
57,144 KB
testcase_03 AC 125 ms
57,432 KB
testcase_04 AC 125 ms
57,508 KB
testcase_05 AC 124 ms
57,488 KB
testcase_06 AC 126 ms
57,524 KB
testcase_07 AC 126 ms
57,372 KB
testcase_08 AC 115 ms
56,224 KB
testcase_09 AC 129 ms
57,060 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No46 {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    long a, b, ans;
    a = sc.nextLong();
    b = sc.nextLong();
    ans = b / a;
    if (b % a != 0) {
      ans ++;
    }
    System.out.println(ans);
  }
}
0