Jeffrey&Lynny

一个温馨小家庭的.Net生活

导航

2008年6月28日 #

USACO: Section 1.3 -- PROB Barn Repair

摘要: Source code Lession Learned: This is the first non-trivial Gready Algorithm I wrote. It costs a bit of time for me to get it right. For non-trivial algorithm, the pseudocode design&check is really th... 阅读全文

posted @ 2008-06-28 12:17 比尔盖房 阅读(387) 评论(0) 推荐(0) 编辑

USACO: Section 1.3 -- PROB Mixing Milk

摘要: Source Code Lesson Learned: This program algorithm is simple. However, I still meet one problem: edge condition(N, M both are zero). After writting the pseudocode, I should always check algorithm f... 阅读全文

posted @ 2008-06-28 12:07 比尔盖房 阅读(225) 评论(0) 推荐(0) 编辑