結果

問題 No.46 はじめのn歩
ユーザー paraskevidekatriaphobia
提出日時 2018-12-14 15:28:57
言語 Java
(openjdk 23)
結果
AC  
実行時間 154 ms / 5,000 ms
コード長 661 bytes
コンパイル時間 3,596 ms
コンパイル使用メモリ 73,916 KB
実行使用メモリ 54,228 KB
最終ジャッジ日時 2024-09-25 05:09:40
合計ジャッジ時間 5,997 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package yukicoder;

import java.util.Scanner;

/**
 *
 * @author hjhto
 */
public class YukicoderNo46 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        if(b%a==0) System.out.println(b/a);
        else System.out.println(b/a+1);
    }
    
}
0