poj 2115 同余方程与扩展欧几里德
posted @ 2011-08-09 10:10 ACShiryu 阅读(477) 评论(0) 推荐(0)
2011年8月9日 #
posted @ 2011-08-09 10:10 ACShiryu 阅读(477) 评论(0) 推荐(0)
posted @ 2011-08-09 09:52 ACShiryu 阅读(662) 评论(0) 推荐(0)
2011年8月7日 #
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 origin if the line from (0, 0) to (x, y) does not pass through any other lattice point. For example, the point (4, 2) is not visible since the line from the origin passes through (2, 1). The figure below shows the points (x, y) with 0 ≤ x, y ≤ 5 with lines from the origin to the visible points.    阅读全文
posted @ 2011-08-07 11:35 ACShiryu 阅读(817) 评论(0) 推荐(0)
posted @ 2011-08-07 11:17 ACShiryu 阅读(1755) 评论(0) 推荐(0)
posted @ 2011-08-07 11:04 ACShiryu 阅读(1727) 评论(0) 推荐(1)
2011年8月6日 #
posted @ 2011-08-06 19:51 ACShiryu 阅读(1813) 评论(1) 推荐(0)
posted @ 2011-08-06 16:04 ACShiryu 阅读(914) 评论(0) 推荐(0)
In how many ways can you tile a 2xn rectangle by 2x1 or 2x2 tiles? 
Here is a sample tiling of a 2x17 rectangle.    阅读全文
posted @ 2011-08-06 15:15 ACShiryu 阅读(1882) 评论(0) 推荐(0)
2011年8月5日 #
posted @ 2011-08-05 20:46 ACShiryu 阅读(2493) 评论(0) 推荐(0)
Binomial Showdown这一题就是运用了一些简单的排列组合公式,但在做一题时WA了好多次,都是因为在一些细节上没有主要到,刚开始时数据可能会超int,又或者在做除法运算时也可能会结果不精确,递推是会出现RE,不过,最后还是解决了这些问题。    阅读全文
posted @ 2011-08-05 11:24 ACShiryu 阅读(1048) 评论(4) 推荐(1)
2011年8月4日 #
posted @ 2011-08-04 22:09 ACShiryu 阅读(1457) 评论(1) 推荐(0)
posted @ 2011-08-04 22:00 ACShiryu 阅读(2019) 评论(1) 推荐(0)
2011年8月3日 #
posted @ 2011-08-03 22:02 ACShiryu 阅读(1109) 评论(0) 推荐(0)
posted @ 2011-08-03 21:38 ACShiryu 阅读(3469) 评论(3) 推荐(2)
2011年8月2日 #
posted @ 2011-08-02 01:19 ACShiryu 阅读(1351) 评论(3) 推荐(1)
posted @ 2011-08-02 00:46 ACShiryu 阅读(813) 评论(0) 推荐(0)
2011年7月31日 #
posted @ 2011-07-31 17:09 ACShiryu 阅读(1217) 评论(0) 推荐(0)
2011年7月29日 #
posted @ 2011-07-29 21:49 ACShiryu 阅读(1325) 评论(0) 推荐(0)
posted @ 2011-07-29 18:06 ACShiryu 阅读(1644) 评论(0) 推荐(0)
posted @ 2011-07-29 11:34 ACShiryu 阅读(2217) 评论(0) 推荐(0)