Cody

# Problem 46. Which doors are open?

Solution 545461

Submitted on 13 Dec 2014 by santosh singh
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 = 1; assert(isequal(which_doors_open(x),y_correct))

2   Pass
%% x = 3; y_correct = 1; assert(isequal(which_doors_open(x),y_correct))

3   Pass
%% x = 100; y_correct = [1 4 9 16 25 36 49 64 81 100]; assert(isequal(which_doors_open(x),y_correct))
{"ft_lang_label":"__label__en","ft_lang_prob":0.5371184,"math_prob":0.9887549,"size":470,"snap":"2019-43-2019-47","text_gpt3_token_len":157,"char_repetition_ratio":0.16094421,"word_repetition_ratio":0.027777778,"special_character_ratio":0.3893617,"punctuation_ratio":0.105882354,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9523063,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-18T23:44:54Z\",\"WARC-Record-ID\":\"<urn:uuid:f393db6f-9739-4db0-9a83-df9f58e7ba1d>\",\"Content-Length\":\"72888\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:160e7c87-fd97-4cec-8653-13fb2990df96>\",\"WARC-Concurrent-To\":\"<urn:uuid:d225fd0d-8606-4419-b717-11adc0967af4>\",\"WARC-IP-Address\":\"23.50.228.199\",\"WARC-Target-URI\":\"https://jp.mathworks.com/matlabcentral/cody/problems/46-which-doors-are-open/solutions/545461\",\"WARC-Payload-Digest\":\"sha1:OH5QWJEF6AV2N6ITA7CUXP37QAM5UUNG\",\"WARC-Block-Digest\":\"sha1:EQNRKW3ITAEPEZAPA52CI7S3SWVBRXVS\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496669868.3_warc_CC-MAIN-20191118232526-20191119020526-00357.warc.gz\"}"}