{"group":{"id":1,"name":"Community","lockable":false,"created_at":"2012-01-18T18:02:15.000Z","updated_at":"2025-12-14T01:33:56.000Z","description":"Problems submitted by members of the MATLAB Central community.","is_default":true,"created_by":161519,"badge_id":null,"featured":false,"trending":false,"solution_count_in_trending_period":0,"trending_last_calculated":"2025-12-14T00:00:00.000Z","image_id":null,"published":true,"community_created":false,"status_id":2,"is_default_group_for_player":false,"deleted_by":null,"deleted_at":null,"restored_by":null,"restored_at":null,"description_opc":null,"description_html":null,"published_at":null},"problems":[{"id":1272,"title":"The almost-birthday problem.","description":"This is a harder version of the birthday problem. Now, you will have to determine the probability that two or more people in a randomly assembled group of *n* people are having their birthdays within *d* days of each other. As usual, ignore the leap year and assume that every day is equally probable.","description_html":"\u003cp\u003eThis is a harder version of the birthday problem. Now, you will have to determine the probability that two or more people in a randomly assembled group of \u003cb\u003en\u003c/b\u003e people are having their birthdays within \u003cb\u003ed\u003c/b\u003e days of each other. As usual, ignore the leap year and assume that every day is equally probable.\u003c/p\u003e","function_template":"function p = almostBirthday(n,d)\r\n  p = 0.5;\r\nend","test_suite":"%%\r\nn = 10;\r\nd = 1;\r\ny_correct = 0.3147;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 14;\r\nd = 1;\r\ny_correct = 0.5375;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 20;\r\nd = 1;\r\ny_correct = 0.8045;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 25;\r\nd = 1;\r\ny_correct = 0.9263;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 30;\r\nd = 1;\r\ny_correct = 0.9782;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 35;\r\nd = 1;\r\ny_correct = 0.9950;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 10;\r\nd = 2;\r\ny_correct = 0.4721;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 14;\r\nd = 2;\r\ny_correct = 0.7305;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 20;\r\nd = 2;\r\ny_correct = 0.9393;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 25;\r\nd = 2;\r\ny_correct = 0.9890;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 30;\r\nd = 2;\r\ny_correct = 0.9987;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 10;\r\nd = 3;\r\ny_correct = 0.5965;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 14;\r\nd = 3;\r\ny_correct = 0.8466;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 20;\r\nd = 3;\r\ny_correct = 0.9826;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 25;\r\nd = 3;\r\ny_correct = 0.9986;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":810,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":26,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-02-14T19:58:50.000Z","updated_at":"2025-12-10T23:49:03.000Z","published_at":"2013-02-14T20:16:17.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis is a harder version of the birthday problem. Now, you will have to determine the probability that two or more people in a randomly assembled group of\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003en\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e people are having their birthdays within\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ed\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e days of each other. As usual, ignore the leap year and assume that every day is equally probable.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44380,"title":"ASCII Birthday Cake","description":"Given an age and a name, give draw an ASCII birthday cake. For example, given the name \"CODY\" and the age 5, return a string with the following (no trailing spaces)\r\n\r\n   6 6 6 6 6\r\n   | | | | |\r\n __|_|_|_|_|__\r\n{             }\r\n{             }\r\n{    CODY     }\r\n{             }\r\n{_____________}\r\n\r\nThis uses the \u003chttps://www.mathworks.com/help/matlab/ref/string.html string datatype\u003e, not a char array.","description_html":"\u003cp\u003eGiven an age and a name, give draw an ASCII birthday cake. For example, given the name \"CODY\" and the age 5, return a string with the following (no trailing spaces)\u003c/p\u003e\u003cpre\u003e   6 6 6 6 6\r\n   | | | | |\r\n __|_|_|_|_|__\r\n{             }\r\n{             }\r\n{    CODY     }\r\n{             }\r\n{_____________}\u003c/pre\u003e\u003cp\u003eThis uses the \u003ca href = \"https://www.mathworks.com/help/matlab/ref/string.html\"\u003estring datatype\u003c/a\u003e, not a char array.\u003c/p\u003e","function_template":"function s = birthday_cake(name, n)\r\n    s = \"\";\r\n    s = s + \"name\";\r\nend","test_suite":"%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 67 79 68 89 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"CODY\", 5), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 64 98 109 116 114 97 110 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"@bmtran\", 29), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 77 65 84 76 65 66 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"MATLAB\", 33), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 67 108 101 118 101 32 77 111 108 101 114 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"Cleve Moler\", 78), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 65 108 97 110 32 84 117 114 105 110 103 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"Alan Turing\", 105), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 83 105 114 32 73 115 97 97 99 32 78 101 119 116 111 110 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"Sir Isaac Newton\", 375), cake));","published":true,"deleted":false,"likes_count":10,"comments_count":4,"created_by":134,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":227,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":34,"created_at":"2017-10-12T19:48:13.000Z","updated_at":"2026-03-25T05:11:31.000Z","published_at":"2017-10-16T01:45:10.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven an age and a name, give draw an ASCII birthday cake. For example, given the name \\\"CODY\\\" and the age 5, return a string with the following (no trailing spaces)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[   6 6 6 6 6\\n   | | | | |\\n __|_|_|_|_|__\\n{             }\\n{             }\\n{    CODY     }\\n{             }\\n{_____________}]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis uses the\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/help/matlab/ref/string.html\\\"\u003e\u003cw:r\u003e\u003cw:t\u003estring datatype\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e, not a char array.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"}],"problem_search":{"errors":[],"problems":[{"id":1272,"title":"The almost-birthday problem.","description":"This is a harder version of the birthday problem. Now, you will have to determine the probability that two or more people in a randomly assembled group of *n* people are having their birthdays within *d* days of each other. As usual, ignore the leap year and assume that every day is equally probable.","description_html":"\u003cp\u003eThis is a harder version of the birthday problem. Now, you will have to determine the probability that two or more people in a randomly assembled group of \u003cb\u003en\u003c/b\u003e people are having their birthdays within \u003cb\u003ed\u003c/b\u003e days of each other. As usual, ignore the leap year and assume that every day is equally probable.\u003c/p\u003e","function_template":"function p = almostBirthday(n,d)\r\n  p = 0.5;\r\nend","test_suite":"%%\r\nn = 10;\r\nd = 1;\r\ny_correct = 0.3147;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 14;\r\nd = 1;\r\ny_correct = 0.5375;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 20;\r\nd = 1;\r\ny_correct = 0.8045;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 25;\r\nd = 1;\r\ny_correct = 0.9263;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 30;\r\nd = 1;\r\ny_correct = 0.9782;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 35;\r\nd = 1;\r\ny_correct = 0.9950;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 10;\r\nd = 2;\r\ny_correct = 0.4721;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 14;\r\nd = 2;\r\ny_correct = 0.7305;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 20;\r\nd = 2;\r\ny_correct = 0.9393;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 25;\r\nd = 2;\r\ny_correct = 0.9890;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 30;\r\nd = 2;\r\ny_correct = 0.9987;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 10;\r\nd = 3;\r\ny_correct = 0.5965;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 14;\r\nd = 3;\r\ny_correct = 0.8466;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 20;\r\nd = 3;\r\ny_correct = 0.9826;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)\r\n\r\n%%\r\nn = 25;\r\nd = 3;\r\ny_correct = 0.9986;\r\nassert(abs(almostBirthday(n,d)-y_correct) \u003c= 0.0001)","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":810,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":26,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-02-14T19:58:50.000Z","updated_at":"2025-12-10T23:49:03.000Z","published_at":"2013-02-14T20:16:17.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis is a harder version of the birthday problem. Now, you will have to determine the probability that two or more people in a randomly assembled group of\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003en\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e people are having their birthdays within\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ed\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e days of each other. As usual, ignore the leap year and assume that every day is equally probable.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44380,"title":"ASCII Birthday Cake","description":"Given an age and a name, give draw an ASCII birthday cake. For example, given the name \"CODY\" and the age 5, return a string with the following (no trailing spaces)\r\n\r\n   6 6 6 6 6\r\n   | | | | |\r\n __|_|_|_|_|__\r\n{             }\r\n{             }\r\n{    CODY     }\r\n{             }\r\n{_____________}\r\n\r\nThis uses the \u003chttps://www.mathworks.com/help/matlab/ref/string.html string datatype\u003e, not a char array.","description_html":"\u003cp\u003eGiven an age and a name, give draw an ASCII birthday cake. For example, given the name \"CODY\" and the age 5, return a string with the following (no trailing spaces)\u003c/p\u003e\u003cpre\u003e   6 6 6 6 6\r\n   | | | | |\r\n __|_|_|_|_|__\r\n{             }\r\n{             }\r\n{    CODY     }\r\n{             }\r\n{_____________}\u003c/pre\u003e\u003cp\u003eThis uses the \u003ca href = \"https://www.mathworks.com/help/matlab/ref/string.html\"\u003estring datatype\u003c/a\u003e, not a char array.\u003c/p\u003e","function_template":"function s = birthday_cake(name, n)\r\n    s = \"\";\r\n    s = s + \"name\";\r\nend","test_suite":"%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 67 79 68 89 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"CODY\", 5), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 64 98 109 116 114 97 110 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"@bmtran\", 29), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 77 65 84 76 65 66 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"MATLAB\", 33), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 67 108 101 118 101 32 77 111 108 101 114 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"Cleve Moler\", 78), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 65 108 97 110 32 84 117 114 105 110 103 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"Alan Turing\", 105), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 83 105 114 32 73 115 97 97 99 32 78 101 119 116 111 110 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"Sir Isaac Newton\", 375), cake));","published":true,"deleted":false,"likes_count":10,"comments_count":4,"created_by":134,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":227,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":34,"created_at":"2017-10-12T19:48:13.000Z","updated_at":"2026-03-25T05:11:31.000Z","published_at":"2017-10-16T01:45:10.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven an age and a name, give draw an ASCII birthday cake. For example, given the name \\\"CODY\\\" and the age 5, return a string with the following (no trailing spaces)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[   6 6 6 6 6\\n   | | | | |\\n __|_|_|_|_|__\\n{             }\\n{             }\\n{    CODY     }\\n{             }\\n{_____________}]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis uses the\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/help/matlab/ref/string.html\\\"\u003e\u003cw:r\u003e\u003cw:t\u003estring datatype\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e, not a char array.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"}],"term":"tag:\"birthday\"","current_player_id":null,"fields":[{"name":"page","type":"integer","callback":null,"default":1,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"per_page","type":"integer","callback":null,"default":50,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"sort","type":"string","callback":null,"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"body","type":"text","callback":null,"default":"*:*","directive":null,"facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":false},{"name":"group","type":"string","callback":null,"default":null,"directive":"group","facet":true,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"difficulty_rating_bin","type":"string","callback":null,"default":null,"directive":"difficulty_rating_bin","facet":true,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"id","type":"integer","callback":null,"default":null,"directive":"id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"tag","type":"string","callback":null,"default":null,"directive":"tag","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"product","type":"string","callback":null,"default":null,"directive":"product","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"created_at","type":"timeframe","callback":{},"default":null,"directive":"created_at","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"profile_id","type":"integer","callback":null,"default":null,"directive":"author_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"created_by","type":"string","callback":null,"default":null,"directive":"author","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"player_id","type":"integer","callback":null,"default":null,"directive":"solver_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"player","type":"string","callback":null,"default":null,"directive":"solver","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"solvers_count","type":"integer","callback":null,"default":null,"directive":"solvers_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"comments_count","type":"integer","callback":null,"default":null,"directive":"comments_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"likes_count","type":"integer","callback":null,"default":null,"directive":"likes_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"leader_id","type":"integer","callback":null,"default":null,"directive":"leader_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"leading_solution","type":"integer","callback":null,"default":null,"directive":"leading_solution","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true}],"filters":[{"name":"asset_type","type":"string","callback":null,"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":"\"cody:problem\"","prepend":true},{"name":"profile_id","type":"integer","callback":{},"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":"author_id","static":null,"prepend":true}],"query":{"params":{"per_page":50,"term":"tag:\"birthday\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"birthday\"","","\"","birthday","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007f2516a678a8\u003e":null,"#\u003cMathWorks::Search::Field:0x00007f2516a67768\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007f2516a65788\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007f2516a67c68\u003e":1,"#\u003cMathWorks::Search::Field:0x00007f2516a67b28\u003e":50,"#\u003cMathWorks::Search::Field:0x00007f2516a67a88\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007f2516a67948\u003e":"tag:\"birthday\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007f2516a67948\u003e":"tag:\"birthday\""},"queried_facets":{}},"query_backend":{"connection":{"configuration":{"index_url":"http://index-op-v2/solr/","query_url":"http://search-op-v2/solr/","direct_access_index_urls":["http://index-op-v2/solr/"],"direct_access_query_urls":["http://search-op-v2/solr/"],"timeout":10,"vhost":"search","exchange":"search.topic","heartbeat":30,"pre_index_mode":false,"host":"rabbitmq-eks","port":5672,"username":"search","password":"J3bGPZzQ7asjJcCk","virtual_host":"search","indexer":"amqp","http_logging":"true","core":"cody"},"query_connection":{"uri":"http://search-op-v2/solr/cody/","proxy":null,"connection":{"parallel_manager":null,"headers":{"User-Agent":"Faraday v1.0.1"},"params":{},"options":{"params_encoder":"Faraday::FlatParamsEncoder","proxy":null,"bind":null,"timeout":null,"open_timeout":null,"read_timeout":null,"write_timeout":null,"boundary":null,"oauth":null,"context":null,"on_data":null},"ssl":{"verify":true,"ca_file":null,"ca_path":null,"verify_mode":null,"cert_store":null,"client_cert":null,"client_key":null,"certificate":null,"private_key":null,"verify_depth":null,"version":null,"min_version":null,"max_version":null},"default_parallel_manager":null,"builder":{"adapter":{"name":"Faraday::Adapter::NetHttp","args":[],"block":null},"handlers":[{"name":"Faraday::Response::RaiseError","args":[],"block":null}],"app":{"app":{"ssl_cert_store":{"verify_callback":null,"error":null,"error_string":null,"chain":null,"time":null},"app":{},"connection_options":{},"config_block":null}}},"url_prefix":"http://search-op-v2/solr/cody/","manual_proxy":false,"proxy":null},"update_format":"RSolr::JSON::Generator","update_path":"update","options":{"url":"http://search-op-v2/solr/cody"}}},"query":{"params":{"per_page":50,"term":"tag:\"birthday\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"birthday\"","","\"","birthday","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007f2516a678a8\u003e":null,"#\u003cMathWorks::Search::Field:0x00007f2516a67768\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007f2516a65788\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007f2516a67c68\u003e":1,"#\u003cMathWorks::Search::Field:0x00007f2516a67b28\u003e":50,"#\u003cMathWorks::Search::Field:0x00007f2516a67a88\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007f2516a67948\u003e":"tag:\"birthday\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007f2516a67948\u003e":"tag:\"birthday\""},"queried_facets":{}},"options":{"fields":["id","difficulty_rating"]},"join":" "},"results":[{"id":1272,"difficulty_rating":"medium"},{"id":44380,"difficulty_rating":"medium"}]}}