Skip navigation.

DD的USACO征程

USACO未灭,何以家为?

Milk Measuring

,

这题我是用纯DP过的哦!
坦白地说,这题是这几天做出的题里面给我最大快感的一道。感觉真是学到了新东西。这种DP不仅要求出得数,还要方案。而且还要字典序最小的一个方案。所以在更新解的过程中若发现当前解与新解的值相同,就必须要比较两个解的方案的字典序。
milk4.cpp

Window AreaAll Latin Squares

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

Please type this security code : 79ec3f

Smilies

December 2008
S M T W T F S
November 2008January 2009
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31