![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Codeforces
Jason819.
看云就看云,望月就望月,专注认真的生活。
展开
-
CodeForces 1399B Gifts Fixing
You have n gifts and you want to give all of them to children. Of course, you don’t want to offend anyone, so all gifts should be equal between each other. The i-th gift consists of ai candies and bi oranges.During one move, you can choose some gift 1≤i≤n原创 2020-10-12 16:25:47 · 274 阅读 · 0 评论 -
Remove Smallest CodeForces - 1399A
给你一个由n个正(大于零)整数组成的数组a。在一步中,您可以选择两个指数i和j(i≠j),使ai和aj之间的绝对差不超过一个(| ai−aj |≤1),并删除这两个元素中最小的一个。如果两个元素相等,则可以删除其中任何一个元素(但只能删除一个元素)。您的任务是找出是否可以使用几个(可能是零)这样的移动来获得仅由一个元素组成的数组。你必须回答t个独立的测试用例。输入输入的第一行包含一个整数t(1≤t≤1000)——测试用例的数量。接下来是t测试用例。测试用例的第一行包含一个整数n(1≤n≤50)-原创 2020-10-11 11:09:32 · 157 阅读 · 0 评论 -
Valera and X CodeForces - 404A
题目链接Valera is a little boy. Yesterday he got a huge Math hometask at school, so Valera didn’t have enough time to properly learn the English alphabet for his English lesson. Unfortunately, the Englis...原创 2020-03-08 20:37:25 · 322 阅读 · 1 评论 -
Inna and Alarm Clock CodeForces - 390A
Inna loves sleeping very much, so she needs n alarm clocks in total to wake up. Let’s suppose that Inna’s room is a 100 × 100 square with the lower left corner at point (0, 0) and with the upper right...原创 2020-03-08 20:30:52 · 127 阅读 · 0 评论 -
Free Cash CodeForces - 237A
Valera runs a 24/7 fast food cafe. He magically learned that next day n people will visit his cafe. For each person we know the arrival time: the i-th person comes exactly at hi hours mi minutes. The ...原创 2020-03-08 20:28:36 · 218 阅读 · 0 评论 -
Squats CodeForces - 424A
Pasha has many hamsters and he makes them work out. Today, n hamsters (n is even) came to work out. The hamsters lined up and each hamster either sat down or stood up.For another exercise, Pasha need...原创 2020-03-08 20:25:35 · 157 阅读 · 0 评论 -
codeforces Round #618(Div.2)
题目链接第一次写cf的题觉得还不错,人家说新手(菜鸟)先参加Div2的。果然写了两道题就没然后了。。。。。。因为还有别的任务要完成,后面的题就有时间再补,把我写的那两道题先写出来吧给了题目链接,英文的我就不copy题面了(谷歌翻译对于我这种英文亟待提高的人是好东西)。A题代码:#include<iostream>#include<cstdio>#includ...原创 2020-02-10 16:17:27 · 100 阅读 · 0 评论