結果
| 問題 |
No.477 MVP
|
| コンテスト | |
| ユーザー |
tanzaku
|
| 提出日時 | 2017-01-27 22:23:19 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 547 bytes |
| コンパイル時間 | 3,569 ms |
| コンパイル使用メモリ | 75,520 KB |
| 実行使用メモリ | 56,064 KB |
| 最終ジャッジ日時 | 2024-12-23 16:02:53 |
| 合計ジャッジ時間 | 5,950 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 3 |
ソースコード
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class _477 {
public static void main(String[] args) throws IOException {
new _477().solve();
}
void solve() throws IOException {
try (final Scanner in = new Scanner(System.in)) {
long n = in.nextLong();
long k = in.nextLong();
System.out.println((n + k) / (k + 1));
}
}
// for debug
static void dump(Object... o) {
System.err.println(Arrays.deepToString(o));
}
}
tanzaku