結果
| 問題 |
No.477 MVP
|
| ユーザー |
yui
|
| 提出日時 | 2017-02-20 10:53:21 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 309 bytes |
| コンパイル時間 | 2,447 ms |
| コンパイル使用メモリ | 74,208 KB |
| 実行使用メモリ | 54,276 KB |
| 最終ジャッジ日時 | 2024-12-30 05:59:04 |
| 合計ジャッジ時間 | 5,088 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 RE * 8 |
ソースコード
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;
int hit2 = hit-hit%(mem+1);
ans=hit2/(mem+1);
System.out.println(ans+1);
}
}
yui