Cody

# Problem 1058. Subtract two positive numbers

Solution 1031018

Submitted on 25 Oct 2016 by Jakub Mrowka
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
a = '0205'; b = '8120'; y_correct = 7915; A = fread(fopen('yourSubtract.m')); assert(~any(regexpi(char(A)','str2num|str2double'))); assert(isequal(yourSubtract(a,b),y_correct))

2   Pass
a = '12589'; b = '78956'; y_correct = 66367; assert(isequal(yourSubtract(a,b),y_correct))
{"ft_lang_label":"__label__en","ft_lang_prob":0.58808136,"math_prob":0.90408576,"size":626,"snap":"2019-35-2019-39","text_gpt3_token_len":183,"char_repetition_ratio":0.13022508,"word_repetition_ratio":0.0,"special_character_ratio":0.3370607,"punctuation_ratio":0.15254237,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99558735,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-22T20:48:45Z\",\"WARC-Record-ID\":\"<urn:uuid:e3090c55-f894-4022-ad68-98f1421cbed8>\",\"Content-Length\":\"70906\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:9ebfab60-60f7-4d08-901d-dff9bd18b29b>\",\"WARC-Concurrent-To\":\"<urn:uuid:90581417-22ec-44dc-87a2-53d1bb905e58>\",\"WARC-IP-Address\":\"23.13.150.165\",\"WARC-Target-URI\":\"https://uk.mathworks.com/matlabcentral/cody/problems/1058-subtract-two-positive-numbers/solutions/1031018\",\"WARC-Payload-Digest\":\"sha1:M72SQ3EQECDLVZ3F2Z6Y6PMT4RQUOOFW\",\"WARC-Block-Digest\":\"sha1:YRXPY4PBLGI3ZCAO457K75EFRFEEI5UV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514575674.3_warc_CC-MAIN-20190922201055-20190922223055-00393.warc.gz\"}"}