Loading

摘要: Suppose you are performing the following algorithm. There is an array v1,v2,…,vnv1,v2,…,vn filled with zeroes at start. The following operation is app 阅读全文
posted @ 2020-03-10 02:01 脂环 阅读(184) 评论(0) 推荐(0) 编辑
摘要: You are given an array a1,a2,…,ana1,a2,…,an . Array is good if for each pair of indexes i<ji<j the condition j−aj≠i−aij−aj≠i−ai holds. Can you shuffle 阅读全文
posted @ 2020-03-10 01:48 脂环 阅读(204) 评论(0) 推荐(0) 编辑
摘要: You are given two integers nn and mm (m<nm<n). Consider a convex regular polygon of nn vertices. Recall that a regular polygon is a polygon that is eq 阅读全文
posted @ 2020-03-10 01:44 脂环 阅读(221) 评论(0) 推荐(0) 编辑