結果

問題 No.46 はじめのn歩
コンテスト
ユーザー OK
提出日時 2018-12-14 15:54:09
言語 Java
(openjdk 26.0.2.1 + ACL)
コンパイル:
javac -J-Duser.language=en -encoding UTF8 -cp /opt/aclib/ac_library.jar _filename_
実行:
java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true -cp .:/opt/aclib/ac_library.jar _class_
結果
AC  
実行時間 59 ms / 5,000 ms
+ 166µs
コード長 665 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,473 ms
コンパイル使用メモリ 84,504 KB
実行使用メモリ 43,256 KB
最終ジャッジ日時 2026-09-03 19:32:04
合計ジャッジ時間 4,350 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

/*
 * 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 no46;
import java.util.Scanner;

/**
 *
 * @author m0116073
 */
public class no46 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args)throws Exception{
        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