結果
| 問題 | No.23 技の選択 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-10-17 13:59:29 |
| 言語 | C++23(gcc16) (gcc 16.2.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 345 bytes |
| 記録 | |
| コンパイル時間 | 1,870 ms |
| コンパイル使用メモリ | 169,624 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-10-17 13:59:53 |
| 合計ジャッジ時間 | 3,855 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 28 WA * 6 |
ソースコード
#include <algorithm>
#include <iostream>
int main() {
using namespace std;
int h, a, d, ans = 100000;
cin >> h >> a >> d;
for (int i = 0; d * (i - 1) < h; i++) {
int j = (h - d * i + a - 1) / a;
ans = min(ans, i * 3 + j * 2);
}
cout << ans / 2;
if (ans % 2 == 1) { cout << ".5"; }
cout << endl;
}