Cody

# Problem 44433. find the logic,easy one

Solution 1701108

Submitted on 1 Jan 2019 by HH
• Size: 9
• 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 = 1; y_correct = 0 assert(isequal(your_fcn_name(x),y_correct))

y_correct = 0 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint1 (line 3) In solutionTest (line 3)]

2   Pass
x =7 ; y_correct = 42; assert(isequal(your_fcn_name(x),y_correct))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint2 (line 3) In solutionTest (line 5)]

3   Pass
x = 15; y_correct = 210 assert(isequal(your_fcn_name(x),y_correct))

y_correct = 210 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint3 (line 3) In solutionTest (line 7)]

4   Pass
x = 33; y_correct = 1056 assert(isequal(your_fcn_name(x),y_correct))

y_correct = 1056 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint4 (line 3) In solutionTest (line 9)]

5   Pass
x = 125; y_correct = 15500 assert(isequal(your_fcn_name(x),y_correct))

y_correct = 15500 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint5 (line 3) In solutionTest (line 11)]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6908267,"math_prob":0.9272929,"size":1876,"snap":"2019-35-2019-39","text_gpt3_token_len":552,"char_repetition_ratio":0.15865384,"word_repetition_ratio":0.5208333,"special_character_ratio":0.30170575,"punctuation_ratio":0.08280255,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9688586,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-16T06:34:31Z\",\"WARC-Record-ID\":\"<urn:uuid:62baa798-6b88-4911-9fb9-82ae9adb246d>\",\"Content-Length\":\"74604\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a68c0c0c-9364-4a07-bef2-f7d6ac6bb03b>\",\"WARC-Concurrent-To\":\"<urn:uuid:ea3ecc62-aee4-473e-bad7-b6cb2f043a0d>\",\"WARC-IP-Address\":\"23.50.112.17\",\"WARC-Target-URI\":\"https://uk.mathworks.com/matlabcentral/cody/problems/44433-find-the-logic-easy-one/solutions/1701108\",\"WARC-Payload-Digest\":\"sha1:72WIUCOG254VKNKFHMIBSRJZZJOSH2PL\",\"WARC-Block-Digest\":\"sha1:EQCT6KPI6GHIRRZBNTTLT5ZKYUUP5ICN\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514572491.38_warc_CC-MAIN-20190916060046-20190916082046-00257.warc.gz\"}"}