摘要: Description A lattice point (x, y) in the first quadrant (x and y are integers greater than or equal to 0), other than the origin, is visible from the 阅读全文
posted @ 2017-08-17 23:54 Crutain 阅读(129) 评论(0) 推荐(0)
摘要: Description 根据一些书上的记载,上帝的一次失败的创世经历是这样的: 第一天, 上帝创造了一个世界的基本元素,称做“元”。 第二天, 上帝创造了一个新的元素,称作“α”。“α”被定义为“元”构成的集合。容易发现,一共有两种不同的“α”。 第三天, 上帝又创造了一个新的元素,称作“β”。“β 阅读全文
posted @ 2017-08-17 23:36 Crutain 阅读(163) 评论(0) 推荐(0)
摘要: Problem Description Sample Input 2 2 Sample Output 2 Hint 1. For N = 2, S(1) = S(2) = 1. 2. The input file consists of multiple test cases. 2 Hint 1. 阅读全文
posted @ 2017-08-17 16:06 Crutain 阅读(96) 评论(0) 推荐(0)
摘要: Problem Description Emily the entrepreneur has a cool business idea: packaging and selling snowflakes. She has devised a machine that captures snowfla 阅读全文
posted @ 2017-08-17 11:40 Crutain 阅读(137) 评论(0) 推荐(0)