結果

問題 No.46 はじめのn歩
ユーザー papipenpapipen
提出日時 2017-03-23 21:30:23
言語 Java19
(openjdk 21)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 301 bytes
コンパイル時間 2,111 ms
コンパイル使用メモリ 71,772 KB
実行使用メモリ 55,924 KB
最終ジャッジ日時 2023-09-19 06:43:55
合計ジャッジ時間 4,228 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
55,776 KB
testcase_01 AC 126 ms
55,776 KB
testcase_02 AC 127 ms
55,780 KB
testcase_03 AC 126 ms
55,892 KB
testcase_04 AC 128 ms
55,744 KB
testcase_05 AC 128 ms
55,756 KB
testcase_06 AC 127 ms
55,912 KB
testcase_07 AC 127 ms
55,824 KB
testcase_08 AC 127 ms
55,764 KB
testcase_09 AC 128 ms
55,924 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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