Cody

# Problem 44273. Given a square and a circle, please decide whether the square covers more area.

Solution 1244287

Submitted on 2 Aug 2017 by LY Cao
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
sq = 2; ci = 1; y_correct = (sq>ci); assert(isequal(sqci(sq,ci),y_correct))

2   Pass
sq = rand; ci = rand; y_correct = (4*sq^2>pi*ci^2); assert(isequal(sqci(sq,ci),y_correct))

3   Pass
sq = 0; ci = 0; y_correct = (0>0); assert(isequal(sqci(sq,ci),y_correct))
{"ft_lang_label":"__label__en","ft_lang_prob":0.5711358,"math_prob":0.9981608,"size":539,"snap":"2019-51-2020-05","text_gpt3_token_len":179,"char_repetition_ratio":0.17009346,"word_repetition_ratio":0.0,"special_character_ratio":0.35064936,"punctuation_ratio":0.18103448,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9963466,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-12-12T05:47:11Z\",\"WARC-Record-ID\":\"<urn:uuid:adf5ba49-d7fa-46b4-9225-f2c0275fcb62>\",\"Content-Length\":\"73822\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:adf5ad44-4e61-4a72-8cc4-f721c51cb9e1>\",\"WARC-Concurrent-To\":\"<urn:uuid:a2dd60cd-2d24-4050-b46c-a3f020b84189>\",\"WARC-IP-Address\":\"23.50.228.199\",\"WARC-Target-URI\":\"https://ch.mathworks.com/matlabcentral/cody/problems/44273-given-a-square-and-a-circle-please-decide-whether-the-square-covers-more-area/solutions/1244287\",\"WARC-Payload-Digest\":\"sha1:CL2SQSUDW45UZY5RE6SSOSPCB5LETYEA\",\"WARC-Block-Digest\":\"sha1:2KZZP67P27YNTYJCYT7SPBJNVRBG6FHD\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-51/CC-MAIN-2019-51_segments_1575540537212.96_warc_CC-MAIN-20191212051311-20191212075311-00021.warc.gz\"}"}