codeforces
发型睡姿决定
越努力,越幸运
展开
-
cf思维题(判断能不能顺时针或者逆时针构成环)
Circle of StudentsThere are nn students standing in a circle in some order. The index of the ii-th student is pipi. It is guaranteed that all indices of students are distinct integers from 11 to nn (...原创 2019-08-15 09:11:44 · 127 阅读 · 0 评论 -
cf思维题(给出4*n条边判断能不能构成n个等面积矩形)
Equal RectanglesYou are given 4n4n sticks, the length of the ii-th stick is aiai.You have to create nn rectangles, each rectangle will consist of exactly 44 sticks from the given set. The rectangle ...原创 2019-08-15 09:15:09 · 153 阅读 · 0 评论