You Are Very Special

本文提倡以积极的态度面对生活,鼓励读者赞美他人而非批评,并通过不断自我提升达到更高的道德水平。建议用自身天赋才能实现个人潜力,克服困难,善待他人。
 

You Are Very Special

Don't take time to criticize your fellow men or persons, instead of being critical; praise them for their notable deeds. Try to see the world with a positive

attitude; don't be blinded by negative thinking.

Concentrate on becoming a better person; by using all of your God given

talents to reach your potential. Learn all you can and motivate yourself and

reach your goals in life.

Polish yourself and become brighter than a fine diamond. Don't waste valuable days of your life feeling sorry for yourself. Find ways to tackle any

problem. Keep calm, and use brain power to solve complicated everyday

problems into solutions, that will work for you. Treat all persons with kindness, dignity, and respect; and above all retain high morals and, you will reach a

height of goodness within.

These words of wisdom have much strength, and will never become outdated. Try to improve yourself every day of your life. You are very special!

 

 

Confidence is a plant of slow growth.

信任是一种缓慢生长的植物。

F. Ranking PredictionYou and your teammates have just finished an ICPC competition. Five hours of competition have drained your energy, and your teammate has eaten your lunch. Now you can only lean on the desk and look at the ranking board. The award ceremony has not yet taken place, so the ranking is still frozen, meaning that you know the submission times and whether your team passed during the entire competition, but for other teams, you know the time of each submission they made, and you know whether each submission was accepted before the ranking was frozen, but you do not know whether the submissions made after the ranking was frozen were accepted. When you check the ranking, you notice a team you are very concerned about. You know the time and status of each submission they made before the ranking was frozen, as well as the times of each submission made after the ranking was frozen. You want to know whether their team's ranking will be strictly higher than your team's. To determine the possibility of their ranking being strictly higher than yours, you also want to know the minimum number of problems they need to solve after the ranking is frozen. In ICPC competitions, the penalty time is calculated according to the following rules. Suppose a team solved m m problems, numbered from 1 1 to m m. For each solved problem i i, let the time of the first accepted submission be t i t i ​ , and the number of submissions before solving this problem be c i c i ​ . The penalty time p p is calculated as follows: p = ∑ i = 1 m t i + 20 ⋅ c i p= i=1 ∑ m ​ t i ​ +20⋅c i ​ In this problem, special factors such as compile errors that do not count towards penalty time are not considered. For two teams A A and B B, team A A is said to have a strictly higher ranking than team B B if and only if the number of problems solved by A A is greater than that solved by B B, or if the number of problems solved by A A and B B is equal, and the penalty time of A A is less than that of B B. Input The first line contains an integer T T ( 1 ≤ T ≤ 100 1≤T≤100), indicating the number of test cases. For each test case, the first line contains three integers n , a , b n,a,b ( 10 ≤ n ≤ 15 , 1 ≤ a ≤ n , 0 ≤ b ≤ 10 5 10≤n≤15,1≤a≤n,0≤b≤10 5 ), representing that there are n n problems in the competition, your team solved a a problems by the end of the competition, and the penalty time is b b. The second line contains an integer s s ( 0 ≤ s ≤ 10 3 0≤s≤10 3 ), indicating the number of submissions made by the team you are concerned about during the normal competition. The next s s lines each contain an integer followed by two strings t , p , v t,p,v ( 0 ≤ t < 300 0≤t<300). This indicates that at minute t t, a submission was made for problem p p, and the result was v v. It is guaranteed that submissions are given in chronological order (this means that when t t is the same, the submit order is the order given by the input), p p is one of the first n n uppercase letters, and v ∈ { ac , rj , pd } v∈{ac,rj,pd}. ac means this submission was accepted, rj means the submission was rejected, and pd means this submission is in a frozen ranking state, and it is unknown whether this submission was accepted. It is guaranteed that when t < 240 t<240, v v is not pd, and when t ≥ 240 t≥240, v v is guaranteed to be pd. Output For each test case, output a single integer on a new line. If it is impossible for the team you are concerned about to have a final ranking strictly higher than your team, output − 1 −1; otherwise, output the minimum number of problems they need to solve after the ranking is frozen for their final ranking to be strictly higher than yours. Examples Inputcopy Outputcopy 1 11 6 900 13 11 C ac 34 J ac 52 D rj 61 D ac 193 A rj 207 A rj 220 G ac 245 A pd 247 A pd 262 H pd 299 A pd 299 C pd 299 K pd
07-22
统计下文中单词出现的个数存入字典,统计出现字数最多的三个单词和最少三个单词。删除原文中出现次数第二多的单词,其他单词保持顺序不变,先试试删除单词后的文章。 Sports help everyone to keep healthy, happy, and efficient. So 1 pay special attention to games,especially table-tennis. Table tennis is my favorite game. I play it almost every day Table-tennis is an ideal game for us because it brings the whole body into action. It strengthens our muscles, expands our lungs, promotes the circulation of the blood, and causes a healthy action of the skin. Besides, it is very amusing and does not cost us much money. Table-tennis is very moderate; it is not so rough as football. It is an indoor game and can be played even on rainy days. Thus, it is my favorite kind of exercise. One morning a fox sees a cock.He think,"This is my breakfast. He comes up to the cock and says,"I know you can sing very well.Can you sing for me? The cock is glad.He closes his eyes and begins to sing.The fox sees that and catches him in his mouth and carries him away. The people in the field see the fox.They cry,"Look, look!The fox is carrying the cock away. The cock says to the fox,"Mr Fox,do you understand?The people say you are carrying their cock away.Tell them it is yours.Not theirs. The fox opens his mouth and says,"The cock is mine, not yours.Just then the cock runs away from the fox and flies into the tree.多加注释,要流程图
06-03
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值