#P2721. 小 Q 的赚钱计划
小 Q 的赚钱计划
Description
Xiao Q decides to make big money in the new year, and Xiao P recommends financial products. At the beginning of this (non-leap) year, Xiao Q has yuan. There are financial products, each described by three parameters: release date, investment days, and annual interest rate. At any moment, Xiao Q can hold at most one product. Find the maximum amount of money attainable after one year.
Input Format
The first line contains an integer .
Each of the next lines contains three space-separated values :
- denotes the release date, in the format MMDD.
- is an integer, the number of investment days, in the range .
- has at most decimal places, representing the annual interest rate in percent, in the range .
Output Format
A single number: the maximum total funds (principal plus interest) obtainable at the end of the year, rounded to two decimal places.
3
0101 100 4.5
0201 30 5
0402 50 7.8
101483.84
Hint
。
Translated by ChatGPT 5
京公网安备 11011102002149号