流水依依

希望朋友们有个好的身体,开开心心工作与学习。

博客园 首页 新随笔 联系 订阅 管理

2013年10月21日 #

摘要: You will be given N points on a circle. You must write a program to determine how many distinctequilateral triangles can be constructed using the given points as vertices.The gure below illustrates an example: (a) shows a set of points, determined by the lengths of thecircular arcs that have adjace. 阅读全文
posted @ 2013-10-21 23:45 流水依依 阅读(267) 评论(0) 推荐(0)

摘要: Problem F LCM Cardinality Input: Standard InputOutput: Standard OutputTime Limit: 2 SecondsA pair of numbers has a unique LCM but a single number can be the LCM of more than one possible pairs. For example 12 is the LCM of (1, 12), (2, 12), (3,4) etc. For a given positive integer N, the number of di 阅读全文
posted @ 2013-10-21 21:14 流水依依 阅读(273) 评论(0) 推荐(0)