結果

問題 No.46 はじめのn歩
ユーザー Ryota EnokidoRyota Enokido
提出日時 2018-12-09 20:21:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 450 bytes
コンパイル時間 2,448 ms
コンパイル使用メモリ 70,852 KB
実行使用メモリ 56,068 KB
最終ジャッジ日時 2023-10-14 21:49:26
合計ジャッジ時間 4,455 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,736 KB
testcase_01 AC 128 ms
55,728 KB
testcase_02 AC 128 ms
55,748 KB
testcase_03 AC 126 ms
55,620 KB
testcase_04 AC 127 ms
55,732 KB
testcase_05 AC 128 ms
55,380 KB
testcase_06 AC 128 ms
55,988 KB
testcase_07 AC 126 ms
55,592 KB
testcase_08 AC 126 ms
55,544 KB
testcase_09 AC 125 ms
56,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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