Cody

# Problem 8. Add two numbers

Solution 103468

Submitted on 27 Jun 2012 by Jon Agustsson
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 = 1; b = 2; c_correct = 3; assert(isequal(add_two_numbers(a,b),c_correct))

ans = 3

2   Pass
%% a = 17; b = 2; c_correct = 19; assert(isequal(add_two_numbers(a,b),c_correct))

ans = 19

3   Pass
%% a = -5; b = 2; c_correct = -3; assert(isequal(add_two_numbers(a,b),c_correct))

ans = -3
{"ft_lang_label":"__label__en","ft_lang_prob":0.5389719,"math_prob":0.99854517,"size":502,"snap":"2020-10-2020-16","text_gpt3_token_len":175,"char_repetition_ratio":0.15662651,"word_repetition_ratio":0.03529412,"special_character_ratio":0.4123506,"punctuation_ratio":0.16666667,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9977529,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-28T22:35:25Z\",\"WARC-Record-ID\":\"<urn:uuid:9d4637ce-4f1b-4cf5-ae83-b1575b019e4f>\",\"Content-Length\":\"73125\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e9111b5a-9ac9-45f3-8116-f5177bf8c9b3>\",\"WARC-Concurrent-To\":\"<urn:uuid:f3659e26-bafd-458b-aeba-a1428f0f7271>\",\"WARC-IP-Address\":\"23.50.112.17\",\"WARC-Target-URI\":\"https://jp.mathworks.com/matlabcentral/cody/problems/8-add-two-numbers/solutions/103468\",\"WARC-Payload-Digest\":\"sha1:JTSJRHEAPV4ERKCRAF2SGXWEXGZ5XRRW\",\"WARC-Block-Digest\":\"sha1:53GFRKXJMGVXV5QELQVIHZ45KGKFX72K\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875147647.2_warc_CC-MAIN-20200228200903-20200228230903-00124.warc.gz\"}"}