Cody

# Problem 43078. How many bottles can you drink?

Solution 1150287

Submitted on 30 Mar 2017 by H M Dipu Kabir
• Size: 10
• This is the leading solution.
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
x = 10; p=1; c=0.35; y_correct = 14; assert(isequal(bottle(x,p,c),y_correct))

ans = []

2   Pass
x = 20; p=1.5; c=0.4; y_correct = 17; assert(isequal(bottle(x,p,c),y_correct))

ans = []
{"ft_lang_label":"__label__en","ft_lang_prob":0.578072,"math_prob":0.97994304,"size":402,"snap":"2020-10-2020-16","text_gpt3_token_len":138,"char_repetition_ratio":0.1557789,"word_repetition_ratio":0.032258064,"special_character_ratio":0.39303482,"punctuation_ratio":0.21052632,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99164647,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-26T14:51:49Z\",\"WARC-Record-ID\":\"<urn:uuid:eb1bedc2-dfc0-456e-8090-afeebbcbd516>\",\"Content-Length\":\"72517\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1188c1cb-0772-4947-8f31-0d04aed33696>\",\"WARC-Concurrent-To\":\"<urn:uuid:ec08688a-4ae8-4b6d-b174-1904447985de>\",\"WARC-IP-Address\":\"104.96.217.125\",\"WARC-Target-URI\":\"https://ch.mathworks.com/matlabcentral/cody/problems/43078-how-many-bottles-can-you-drink/solutions/1150287\",\"WARC-Payload-Digest\":\"sha1:CIGW7AUSOTGZEC2EZYAW4MFPV5EINJBL\",\"WARC-Block-Digest\":\"sha1:QVHBGX22QFNGUOK5SBQJ5GHACYRT7R6H\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875146342.41_warc_CC-MAIN-20200226115522-20200226145522-00456.warc.gz\"}"}