結果
| 問題 | No.2730 Two Types Luggage |
| コンテスト | |
| ユーザー |
june19312
|
| 提出日時 | 2024-04-19 21:49:28 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 438 bytes |
| 記録 | |
| コンパイル時間 | 71 ms |
| コンパイル使用メモリ | 80,768 KB |
| 実行使用メモリ | 386,636 KB |
| 最終ジャッジ日時 | 2026-09-14 01:39:42 |
| 合計ジャッジ時間 | 70,885 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 TLE * 15 |
ソースコード
N,M,W = map(int,input().split())
A = list(map(int,input().split()))
B = list(map(int,input().split()))
C = list(map(int,input().split()))
t = []
for i,v in enumerate(A):
t.append([v*(10**20),1,v])
for i,v in enumerate(B):
t.append([C[i]*(10**20)//B[i],B[i],C[i]])
t.sort()
#print(t)
ans = 0
weight = 0
while t:
tanka,omosa,value = t.pop()
if weight + omosa <= W:
weight += omosa
ans += value
print(ans)
june19312