結果
| 問題 |
No.453 製薬会社
|
| ユーザー |
|
| 提出日時 | 2016-12-04 04:37:07 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 352 bytes |
| コンパイル時間 | 520 ms |
| コンパイル使用メモリ | 60,280 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-27 19:38:16 |
| 合計ジャッジ時間 | 1,164 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 7 WA * 2 |
ソースコード
#include "iostream"
#include "iomanip"
using namespace std;
double c, d;
double num;
double ans;
int main() {
cin >> c >> d;
if (c >= d * 3) {
cout << setprecision(20) << d * 4 * 1000<<"\n";
return 0;
}
num = (d * 3 - c) * 7 / 13;
ans = num * 2000;
ans += (d - num * 5 / 7) * 4 * 1000;
cout << setprecision(20) << ans << "\n";
return 0;
}