Jeffrey&Lynny

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

导航

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 for the edge conditions of the input parameters. This is just a small effect, but helps to eliminate high risk bugs!

posted on 2008-06-28 12:07  比尔盖房  阅读(225)  评论(0编辑  收藏  举报