結果
問題 | No.453 製薬会社 |
ユーザー |
👑 |
提出日時 | 2022-04-04 00:49:33 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 2,000 ms |
コード長 | 271 bytes |
コンパイル時間 | 304 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 53,904 KB |
最終ジャッジ日時 | 2024-11-24 09:38:18 |
合計ジャッジ時間 | 1,426 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 9 |
ソースコード
c, d = map(int, input().split())ans = 0if 3 * d >= c:b = (3 * d - c) * 7 / 13a = (c - b * 2 / 7) * 4 / 3if a >= 0:ans = 1000 * a + 2000 * bans = max(ans, 1000 * min(c * 4 / 3, d * 4))ans = max(ans, 2000 * min(c * 7 / 2, d * 7 / 5))print(ans)