結果

問題 No.46 はじめのn歩
ユーザー Ryota Enokido
提出日時 2018-12-09 20:21:16
言語 Java
(openjdk 23)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 450 bytes
コンパイル時間 2,213 ms
コンパイル使用メモリ 75,456 KB
実行使用メモリ 41,416 KB
最終ジャッジ日時 2024-09-16 15:31:45
合計ジャッジ時間 4,092 ms
ジャッジサーバーID
(参考情報)
judge6 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

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