A. Supermarket 输入n,m, (1?≤?n?≤?5?000, 1?≤?m?≤?100)表示n组价格数据和目标重量m 接下来n组价格数据,表示为a元b千克,每组无限取 求最小花费 B. Perfect Number 输入k,1?≤?k?≤?10?000,求第k个完美数 完美数定义为数位和 ...
分类:
其他好文 时间:
2018-04-11 19:09:20
阅读次数:
145
A supermarket has a set Prod of products on sale. It earns a profit px for each product x∈Prod sold by a deadline dx that is measured as an integral n ...
分类:
其他好文 时间:
2018-03-07 16:27:10
阅读次数:
182
Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 9078 Accepted: 3515 Description A supermarket in Tehran is open 24 hours a day every day an ...
分类:
其他好文 时间:
2018-03-03 15:23:07
阅读次数:
134
On the way home, Karen decided to stop by the supermarket to buy some groceries. She needs to buy a lot of goods, but since she is a student her budge ...
分类:
其他好文 时间:
2018-02-27 23:27:30
阅读次数:
212
这场比赛题目还行,但是被一道数学题卡了 A - Supermarket CodeForces - 919A We often go to supermarkets to buy some fruits or vegetables, and on the tag there prints the pr ...
分类:
其他好文 时间:
2018-02-21 23:37:38
阅读次数:
377
A supermarket in Tehran is open 24 hours a day every day and needs a number of cashiers to fit its need. The supermarket manager has hired you to help ...
分类:
其他好文 时间:
2018-02-16 10:57:24
阅读次数:
213
Description Karen just got home from the supermarket, and is getting ready to go to sleep. After taking a shower and changing into her pajamas, she lo ...
分类:
其他好文 时间:
2018-02-13 21:43:56
阅读次数:
211
这场cf有点意思,hack场,C题等于1的特判hack很多人(我hack成功3个人,上分了,哈哈哈,咳咳。。。) D题好像是树形dp,E题好像是中国剩余定理,F题好像还是dp,具体的不清楚,最近dp的题目好多,一会滚去学dp。 写A,B,C的题解。 A. Supermarket time limit ...
分类:
其他好文 时间:
2018-02-01 22:06:46
阅读次数:
243
A. Supermarket We often go to supermarkets to buy some fruits or vegetables, and on the tag there prints the price for a kilo. But in some supermarket ...
分类:
其他好文 时间:
2018-02-01 14:45:06
阅读次数:
207