acm icon indicating copy to clipboard operation
acm copied to clipboard

2003B Should Print the Minimum-Cost Solution

Open dotkrnl opened this issue 10 years ago • 0 comments

Function: void solve(vector<int> src, vector<int> dst) @ acm/finals/2003/B.cc

Issue: In this problem, 'For each test case, print a line containing the case number and a decimal integer representing a minimum-cost set of switches that need to be flipped to convert the row of bulbs from initial state to final state.'

But this function just prints the smallest decimal solution.

dotkrnl avatar Jan 14 '14 11:01 dotkrnl