結果

問題 No.477 MVP
ユーザー yui
提出日時 2017-02-20 10:49:20
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 275 bytes
コンパイル時間 2,544 ms
コンパイル使用メモリ 74,104 KB
実行使用メモリ 55,944 KB
最終ジャッジ日時 2024-12-30 05:58:46
合計ジャッジ時間 5,095 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 RE * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

    	Scanner sc = new Scanner(System.in);
    	int hit = sc.nextInt();
    	int mem = sc.nextInt();
    	int ans = 0;

    	ans=hit/(mem+1);
    	System.out.println(ans+1);
    }

}
0