結果
問題 |
No.3065 Speedrun (Normal)
|
ユーザー |
![]() |
提出日時 | 2025-03-22 17:17:40 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 231 bytes |
コンパイル時間 | 410 ms |
コンパイル使用メモリ | 82,708 KB |
実行使用メモリ | 53,348 KB |
最終ジャッジ日時 | 2025-03-22 17:17:42 |
合計ジャッジ時間 | 1,861 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
""" """ A,B,C,D = map(int,input().split()) P,Q,R,S,T = map(int,input().split()) tc = [ (P,A) , (Q,B) , (R,C) , (S,D) ] tc.sort() ans = 0 for t,c in tc: now = min( T // t , c ) ans += now T -= now * t print (ans)