結果
問題 |
No.23 技の選択
|
ユーザー |
![]() |
提出日時 | 2017-05-18 22:11:38 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 471 bytes |
コンパイル時間 | 1,338 ms |
コンパイル使用メモリ | 158,048 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-18 19:13:41 |
合計ジャッジ時間 | 2,555 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 WA * 3 |
ソースコード
#include"bits/stdc++.h" //#include<bits/stdc++.h> using namespace std; #define print(x) cout<<x<<endl; #define rep(i,a,b) for(int i=a;i<b;i++) typedef long long ll; const ll mod = 10000000000; int main(){ int h, a, d; double dp[10002]; memset(dp, -1, sizeof(dp)); cin >> h >> a >> d; double aa = 0; if (h%a == 0)aa = h / a; else { aa = h / a + 1; } double dd = 0; if (h%d == 0)dd = h / d; else { dd = h / d + 1; } double ans = min(aa, dd*1.5); print(ans); }