11 2016 档案
poj3254Corn Fields
摘要:Corn Fields Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 13765 Accepted: 7232 Description Farmer John has purchased a lush new rectangul 阅读全文
posted @ 2016-11-07 20:29 Beserious 阅读(225) 评论(0) 推荐(0) 编辑
poj 3253 Fence Repair
摘要:Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,000) planks of 阅读全文
posted @ 2016-11-07 20:04 Beserious 阅读(208) 评论(0) 推荐(0) 编辑
poj 3617 Best Cow Line
摘要:Best Cow Line Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 20226 Accepted: 5563 Description FJ is about to take his N (1 ≤ N ≤ 2,000) co 阅读全文
posted @ 2016-11-06 22:49 Beserious 阅读(202) 评论(0) 推荐(0) 编辑
POJ 1852 Ants
摘要:Ants Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 15617 Accepted: 6753 Description An army of ants walk on a horizontal pole of length l 阅读全文
posted @ 2016-11-06 22:20 Beserious 阅读(172) 评论(0) 推荐(0) 编辑
Pairs
摘要:Given integers, count the number of pairs of integers whose difference is . Given integers, count the number of pairs of integers whose difference is  阅读全文
posted @ 2016-11-06 22:11 Beserious 阅读(431) 评论(0) 推荐(0) 编辑
codility MinAbsSum
摘要:For a given array A of N integers and a sequence S of N integers from the set {−1, 1}, we define val(A, S) as follows: val(A, S) = |sum{ A[i]*S[i] for 阅读全文
posted @ 2016-11-04 19:19 Beserious 阅读(948) 评论(0) 推荐(0) 编辑