Cody

# Problem 2174. Minimal cost

Solution 401086

Submitted on 11 Feb 2014 by Alfonso Nieto-Castanon
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
%% W=200 L=400 CL=3 CW=6 y_correct = 2239; assert(isequal(floor(minimumdist(W,L,CW,CL)),y_correct))

W = 200 L = 400 CL = 3 CW = 6

2   Pass
%% W=100 L=200 CL=2 CW=3 y_correct = 623; assert(isequal(floor(minimumdist(W,L,CW,CL)),y_correct))

W = 100 L = 200 CL = 2 CW = 3
{"ft_lang_label":"__label__en","ft_lang_prob":0.66165644,"math_prob":0.9965619,"size":776,"snap":"2019-43-2019-47","text_gpt3_token_len":259,"char_repetition_ratio":0.09974093,"word_repetition_ratio":0.0,"special_character_ratio":0.35953608,"punctuation_ratio":0.13043478,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99543965,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-15T05:49:29Z\",\"WARC-Record-ID\":\"<urn:uuid:10833405-7794-4d57-b0dc-f589ba5e4dd9>\",\"Content-Length\":\"76252\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8a47ccf5-a311-4df2-9c1b-b7cdb304de95>\",\"WARC-Concurrent-To\":\"<urn:uuid:19b4d54d-e523-43e9-9fbf-6dab4259da7a>\",\"WARC-IP-Address\":\"104.110.193.39\",\"WARC-Target-URI\":\"https://ch.mathworks.com/matlabcentral/cody/problems/2174-minimal-cost/solutions/401086\",\"WARC-Payload-Digest\":\"sha1:6YEEC3OTHIWJ3WUBP4PGBSCVCWXY3TEW\",\"WARC-Block-Digest\":\"sha1:OHQKZEC4SEW4SZAT4NQOAZK47W4GXVTU\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496668585.12_warc_CC-MAIN-20191115042541-20191115070541-00114.warc.gz\"}"}