
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 · 156 阅读 · 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 · 137 阅读 · 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 · 197 阅读 · 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 · 201 阅读 · 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 · 167 阅读 · 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 · 191 阅读 · 0 评论