Drink Milk Every Day

编程入门 行业动态 更新时间:2024-10-24 08:32:53

<a href=https://www.elefans.com/category/jswz/34/159166.html style=Drink Milk Every Day"/>

Drink Milk Every Day

3168: Drink Milk Every Day

描述:

For the health’s sake, Mr. Doraemonok drinks one and only one package of pure milk every day. However, Mr. Doraemonok will never drink sour milk which is out of storage period. When coming to them, he will throw them away. To save money, he wishes to save milk as much as possible. Considering these factors, he starts to check the milk stored in his closet to decide the drinking sequence. Can you offer a hand to him?

输入:

The first line of the input data will be a positive integer n (n<=100000) to represent the amount of the milk. Every one of the following n lines describes a package of milk: The first string stands for the brand of the milk, the second string stands for the production date, and the format is like ’03-20’. The n+2 line will be a positive integer m (m<=50) which stands for the number of the milk bran

更多推荐

Drink Milk Every Day

本文发布于:2024-02-10 16:44:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1676273.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Drink   Milk   Day

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!