
Codeforces
鸩羽小夜
我是小垃圾,垃圾中的战斗圾
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Codeforces Global Round 2
Ilya lives in a beautiful city of Chordalsk. There arennhouses on the street Ilya lives, they are numerated from11tonnfrom left to right; the distance between every two neighboring houses is eq...原创 2019-10-04 19:46:19 · 174 阅读 · 0 评论 -
Codeforces471B思维推导
It's time polar bears Menshykov and Uslada from the zoo of St. Petersburg and elephant Horace from the zoo of Kiev got down to business. In total, there arentasks for the day and each animal should d...原创 2019-10-04 20:56:28 · 146 阅读 · 0 评论 -
CodeForces475B Strongly Connected City(floyd算法)
Imagine a city withnhorizontal streets crossingmvertical streets, forming an(n - 1) × (m - 1)grid. In order to increase the traffic flow, mayor of the city has decided to make each street one wa...原创 2019-10-04 21:08:25 · 211 阅读 · 0 评论 -
Codeforces529 -C Round #- Powers Of Two(二进制拆分)
A positive integerxxis called apower of twoif it can be represented asx=2^y , whereyyis a non-negative integer. So, thepowers of twoare1,2,4,8,16,…1,2,4,8,16,…. You are given two positive i...原创 2019-10-04 21:32:29 · 210 阅读 · 0 评论 -
Codeforces424A (思维题)
Pasha has many hamsters and he makes them work out. Today,nhamsters (nis even) came to work out. The hamsters lined up and each hamster either sat down or stood up. For another exercise, Pasha nee...原创 2019-09-05 10:07:44 · 173 阅读 · 0 评论 -
CodeForces363D Renting Bikes(贪心+二分)
A group ofnschoolboys decided to ride bikes. As nobody of them has a bike, the boys need to rent them. The renting site offered themmbikes. The renting price is different for different bikes, ren...原创 2019-10-05 18:37:41 · 201 阅读 · 0 评论