結果
問題 | No.453 製薬会社 |
ユーザー |
![]() |
提出日時 | 2016-12-12 23:43:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 410 bytes |
コンパイル時間 | 144 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-29 18:04:41 |
合計ジャッジ時間 | 1,299 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 9 |
ソースコード
c, d = map(int, input().split()) can_tuple = list() if 4*d < 4*c/3: can_tuple.append( (4*d, 0) ) else: can_tuple.append( (c*4/3, 0) ) if d*7/5 < c*7/2: can_tuple.append( (0, d*7/5) ) else: can_tuple.append( (0, c*7/2) ) if (5*c-2*d)*4/13 > 0 and (3*d-c)*7/13 > 0: can_tuple.append( ((5*c-2*d)*4/13, (3*d-c)*7/13) ) res_max = 0 for x, y in can_tuple: res_max = max(res_max, 1000*x+2000*y) print(res_max)