| {"id": "cc-06490", "n_tests": 50, "public_tests": "{\"inputs\": [\"5 998244353\\n\", \"42 998244353\\n\", \"3 998244353\\n\", \"6 732284177\\n\", \"634 982032773\\n\", \"199862 999999937\\n\", \"2 554714911\\n\", \"124953 922406879\\n\", \"8045 992942057\\n\", \"200000 665880409\\n\", \"158032 121694641\\n\", \"199568 100000007\\n\", \"48 166017469\\n\", \"200000 187160003\\n\", \"199995 597768679\\n\", \"200000 558920641\\n\", \"199660 160959167\\n\", \"191683 549754339\\n\", \"349 528449821\\n\", \"140750 872921717\\n\", \"6 1390462132\\n\", \"1049 982032773\\n\", \"4 554714911\\n\", \"59857 922406879\\n\", \"11821 992942057\\n\", \"25184 665880409\\n\", \"158032 108325441\\n\", \"65711 100000007\\n\", \"48 250636721\\n\", \"162685 187160003\\n\", \"197426 597768679\\n\", \"200000 316925344\\n\", \"199660 117675997\\n\", \"349 602811213\\n\", \"140750 887458748\\n\", \"5 638085038\\n\", \"83 998244353\\n\", \"3 1205924298\\n\", \"1819 982032773\\n\", \"33754 922406879\\n\", \"25184 636766460\\n\", \"46721 108325441\\n\", \"65711 15505247\\n\", \"95 250636721\\n\", \"197426 364348492\\n\", \"199660 52002887\\n\", \"581 602811213\\n\", \"83 469355691\\n\", \"3568 982032773\\n\", \"14760 636766460\\n\"], \"outputs\": [\"25\", \"793019428\", \"5\", \"55\", \"695544646\", \"750469605\", \"2\", \"768303295\", \"882251038\", \"86083213\", \"114975792\", \"31278679\", \"119670181\", \"147468989\", \"390104637\", \"14322946\", \"32483089\", \"207301921\", \"190306170\", \"17972639\", \"55\\n\", \"471592080\\n\", \"12\\n\", \"831986499\\n\", \"257412568\\n\", \"409096655\\n\", \"47582277\\n\", \"11333950\\n\", \"158347232\\n\", \"175888140\\n\", \"54217445\\n\", \"253547906\\n\", \"44508239\\n\", \"70144617\\n\", \"669831877\\n\", \"25\\n\", \"436912026\\n\", \"5\\n\", \"287588159\\n\", \"270535288\\n\", \"261135210\\n\", \"86700212\\n\", \"1951828\\n\", \"249812670\\n\", \"289708472\\n\", \"10533840\\n\", \"542179078\\n\", \"439789304\\n\", \"353478967\\n\", \"272754163\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "cc-06495", "n_tests": 50, "public_tests": "{\"inputs\": [\"6\\n01\\n1111\\n01100\\n101\\n0000\\n01010\\n\", \"6\\n01\\n1111\\n01100\\n100\\n0000\\n01010\\n\", \"6\\n01\\n1011\\n01100\\n100\\n0000\\n01010\\n\", \"6\\n01\\n1001\\n01100\\n111\\n0000\\n01010\\n\", \"6\\n1\\n1001\\n01100\\n111\\n0000\\n01010\\n\", \"6\\n01\\n1010\\n01100\\n100\\n0000\\n01010\\n\", \"6\\n1\\n1001\\n01100\\n101\\n0000\\n01010\\n\", \"6\\n01\\n1010\\n11100\\n100\\n0000\\n01010\\n\", \"6\\n01\\n1001\\n11100\\n100\\n0000\\n11010\\n\", \"6\\n1\\n1111\\n01100\\n101\\n1000\\n11010\\n\", \"6\\n1\\n1010\\n11100\\n100\\n0000\\n01010\\n\", \"6\\n01\\n1001\\n11100\\n100\\n0000\\n11011\\n\", \"6\\n0\\n1011\\n01100\\n010\\n0000\\n01010\\n\", \"6\\n0\\n1001\\n01100\\n110\\n0010\\n01010\\n\", \"6\\n0\\n1001\\n01100\\n111\\n0010\\n01010\\n\", \"6\\n01\\n1111\\n01101\\n100\\n1000\\n11110\\n\", \"6\\n1\\n0010\\n01100\\n100\\n0000\\n01010\\n\", \"6\\n01\\n1001\\n11100\\n100\\n0001\\n11111\\n\", \"6\\n01\\n1111\\n01101\\n100\\n1010\\n11010\\n\", \"6\\n1\\n1001\\n11100\\n100\\n0011\\n11111\\n\", \"6\\n1\\n1001\\n11100\\n100\\n0011\\n11110\\n\", \"6\\n1\\n1001\\n11100\\n000\\n0010\\n11110\\n\", \"6\\n1\\n1001\\n11100\\n010\\n0010\\n11110\\n\", \"6\\n1\\n1001\\n11100\\n000\\n0110\\n11010\\n\", \"6\\n1\\n1001\\n11000\\n000\\n0111\\n11010\\n\", \"6\\n1\\n1000\\n11010\\n000\\n0101\\n11010\\n\", \"6\\n1\\n1000\\n11010\\n000\\n0101\\n11011\\n\", \"6\\n1\\n1000\\n11010\\n100\\n0111\\n11011\\n\", \"6\\n1\\n1100\\n11010\\n000\\n0101\\n11111\\n\", \"6\\n1\\n1100\\n11010\\n010\\n0101\\n11111\\n\", \"6\\n1\\n1100\\n11010\\n010\\n0101\\n11110\\n\", \"6\\n1\\n1100\\n10010\\n010\\n0111\\n11110\\n\", \"6\\n1\\n1100\\n10010\\n010\\n0111\\n11010\\n\", \"6\\n1\\n1000\\n11010\\n111\\n0111\\n11110\\n\", \"6\\n1\\n1000\\n11010\\n111\\n0110\\n11110\\n\", \"6\\n1\\n1010\\n11010\\n111\\n0110\\n11110\\n\", \"6\\n1\\n1010\\n11010\\n111\\n1110\\n11110\\n\", \"6\\n1\\n1010\\n11100\\n100\\n0010\\n01010\\n\", \"6\\n01\\n1001\\n11100\\n100\\n0100\\n11011\\n\", \"6\\n0\\n1001\\n01100\\n010\\n0010\\n01010\\n\", \"6\\n01\\n1111\\n01101\\n100\\n1000\\n11111\\n\", \"6\\n1\\n0010\\n01101\\n100\\n0010\\n01010\\n\", \"6\\n1\\n1001\\n11100\\n010\\n0011\\n11110\\n\", \"6\\n0\\n1001\\n00000\\n011\\n0110\\n01000\\n\", \"6\\n0\\n1000\\n11010\\n100\\n0111\\n11011\\n\", \"6\\n1\\n0100\\n11010\\n000\\n0101\\n11111\\n\", \"6\\n1\\n1100\\n10010\\n010\\n0110\\n11010\\n\", \"6\\n1\\n1010\\n11010\\n011\\n0110\\n11000\\n\", \"6\\n1\\n1000\\n11000\\n111\\n0111\\n11110\\n\", \"6\\n0\\n1010\\n11010\\n111\\n0110\\n11110\\n\"], \"outputs\": [\"1\\n0\\n2\\n1\\n1\\n2\\n\", \"1\\n0\\n2\\n1\\n1\\n2\\n\", \"1\\n1\\n2\\n1\\n1\\n2\\n\", \"1\\n1\\n2\\n0\\n1\\n2\\n\", \"0\\n1\\n2\\n0\\n1\\n2\\n\", \"1\\n2\\n2\\n1\\n1\\n2\\n\", \"0\\n1\\n2\\n1\\n1\\n2\\n\", \"1\\n2\\n1\\n1\\n1\\n2\\n\", \"1\\n1\\n1\\n1\\n1\\n2\\n\", \"0\\n0\\n2\\n1\\n1\\n2\\n\", \"0\\n2\\n1\\n1\\n1\\n2\\n\", \"1\\n1\\n1\\n1\\n1\\n1\\n\", \"1\\n1\\n2\\n2\\n1\\n2\\n\", \"1\\n1\\n2\\n1\\n2\\n2\\n\", \"1\\n1\\n2\\n0\\n2\\n2\\n\", \"1\\n0\\n2\\n1\\n1\\n1\\n\", \"0\\n2\\n2\\n1\\n1\\n2\\n\", \"1\\n1\\n1\\n1\\n1\\n0\\n\", \"1\\n0\\n2\\n1\\n2\\n2\\n\", \"0\\n1\\n1\\n1\\n1\\n0\\n\", \"0\\n1\\n1\\n1\\n1\\n1\\n\", \"0\\n1\\n1\\n1\\n2\\n1\\n\", \"0\\n1\\n1\\n2\\n2\\n1\\n\", \"0\\n1\\n1\\n1\\n2\\n2\\n\", \"0\\n1\\n1\\n1\\n1\\n2\\n\", \"0\\n1\\n2\\n1\\n2\\n2\\n\", \"0\\n1\\n2\\n1\\n2\\n1\\n\", \"0\\n1\\n2\\n1\\n1\\n1\\n\", \"0\\n1\\n2\\n1\\n2\\n0\\n\", \"0\\n1\\n2\\n2\\n2\\n0\\n\", \"0\\n1\\n2\\n2\\n2\\n1\\n\", \"0\\n1\\n2\\n2\\n1\\n1\\n\", \"0\\n1\\n2\\n2\\n1\\n2\\n\", \"0\\n1\\n2\\n0\\n1\\n1\\n\", \"0\\n1\\n2\\n0\\n2\\n1\\n\", \"0\\n2\\n2\\n0\\n2\\n1\\n\", \"0\\n2\\n2\\n0\\n1\\n1\\n\", \"0\\n2\\n1\\n1\\n2\\n2\\n\", \"1\\n1\\n1\\n1\\n2\\n1\\n\", \"1\\n1\\n2\\n2\\n2\\n2\\n\", \"1\\n0\\n2\\n1\\n1\\n0\\n\", \"0\\n2\\n2\\n1\\n2\\n2\\n\", \"0\\n1\\n1\\n2\\n1\\n1\\n\", \"1\\n1\\n1\\n1\\n2\\n2\\n\", \"1\\n1\\n2\\n1\\n1\\n1\\n\", \"0\\n2\\n2\\n1\\n2\\n0\\n\", \"0\\n1\\n2\\n2\\n2\\n2\\n\", \"0\\n2\\n2\\n1\\n2\\n1\\n\", \"0\\n1\\n1\\n0\\n1\\n1\\n\", \"1\\n2\\n2\\n0\\n2\\n1\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "cc-06500", "n_tests": 50, "public_tests": "{\"inputs\": [\"4\\n1\\na\\n6\\nabbaba\\n6\\nabbaba\\n9\\nbabbabbaa\\n\", \"1\\n30\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\n\", \"1\\n29\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\n\", \"4\\n1\\na\\n6\\nabbaba\\n6\\nabbaba\\n9\\nbabbabbaa\\n\", \"4\\n1\\na\\n6\\nabbaba\\n6\\nabbaba\\n7\\nbabbabbaa\\n\", \"1\\n29\\naabaaaaaaaaaaaaaaaaaaaaaaaaaa\\n\", \"1\\n27\\naaaaaaaaaabaaaaaaaaaababaabaa\\n\", \"4\\n1\\na\\n6\\nababba\\n6\\nabbaba\\n9\\nbbababbaa\\n\", \"4\\n1\\na\\n6\\nababba\\n6\\nbbbaba\\n9\\nbbababbaa\\n\", \"1\\n17\\naaabaaaaaabaaaaaaaaaabbbaabaa\\n\", \"1\\n21\\naaaaabaabaaaaaaaaaaaaaabaabaa\\n\", \"1\\n14\\naaaaaaabaabaaaaaaaaaababaab`a\\n\", \"1\\n6\\nbaaaaaaaaabaaaa`aaaaababaabaa\\n\", \"1\\n29\\naaaaaaaaaaaaaaaaaaaaaaaaaabaa\\n\", \"1\\n17\\naaaaaaaaaaaabaaaaaaaabbbaabaa\\n\", \"1\\n30\\naaaaaaaaaaabaaaaaaaaaaaaaaaaaa\\n\", \"1\\n8\\naaaaaabaaaab`aaaaa`aaabaaaaaa\\n\", \"1\\n29\\naaaaaaaabaaaaaaaaaaaaaabaabaa\\n\", \"1\\n30\\naaaaaaaaaaaaaaaaaabaaaaaaaaaaa\\n\", \"1\\n21\\naabaaaaaaaaaaaaaaaaaaaaaaaaaa\\n\", \"1\\n21\\naabaabaaaaaaaaaaaaaaaaaaaaaaa\\n\", \"1\\n21\\naabaababaaaaaaaaaaaaaaaaaaaaa\\n\", \"1\\n21\\naabaababaaaaaaaaaabaaaaaaaaaa\\n\", \"1\\n27\\naabaababaaaaaaaaaabaaaaaaaaaa\\n\", \"1\\n17\\naaaaaaaaaabaaaaaaaaaababaabaa\\n\", \"1\\n17\\naaaaaaaaaabaaaaaaaaaabbbaabaa\\n\", \"4\\n1\\na\\n6\\nababba\\n6\\nabbaba\\n9\\nbabbabbaa\\n\", \"1\\n21\\naabaabaaaaaaaaaaaaaabaaaaaaaa\\n\", \"1\\n14\\naabaababaaaaaaaaaabaaaaaaaaaa\\n\", \"1\\n27\\naabaabaaaaaaabaaaabaaaaaaaaaa\\n\", \"1\\n27\\naabaababaaaaaaaaaabaaaaaaaaab\\n\", \"1\\n19\\naaaaaaaaaabaaaaaaaaaababaabaa\\n\", \"1\\n10\\naabaababaaaaaaaaaabaaaaaaaaaa\\n\", \"1\\n3\\naabaababaaaaaaaaaabaaaaaaaaab\\n\", \"1\\n10\\naabaababaaaaaaaaaaaaaaaaaaaaa\\n\", \"1\\n8\\naabaaaaaaaaaaaaaaaaaaaaaaaaaa\\n\", \"1\\n5\\naabaababaaaaaaaaaabaaaaaaaaaa\\n\", \"1\\n27\\naaaaaaaaaababaaaaaaaababaabaa\\n\", \"1\\n21\\naaaaaaaaaabaaaaaaaaaababaabaa\\n\", \"4\\n1\\nb\\n6\\nababba\\n6\\nabbaba\\n9\\nbabbabbaa\\n\", \"1\\n21\\naabaabaaaaaaaaaaaaaabaabaaaaa\\n\", \"1\\n14\\naaaaaaaaaabaaaaaaaaaababaabaa\\n\", \"1\\n19\\naabaababaaaaaaaaaabaaaaaaaaaa\\n\", \"1\\n3\\naabaababaaaaa`aaaabaaaaaaaaab\\n\", \"1\\n10\\naabaababaaaaaaaaaaaaaaaaaa`aa\\n\", \"1\\n8\\naabaaaaaaaaaaaaaaa`aaaaaaaaaa\\n\", \"1\\n21\\naabaabababaaaaaaaabaaaaaaaaaa\\n\", \"1\\n15\\naaabaaaaaabaaaaaaaaaabbbaabaa\\n\", \"1\\n14\\naaaaaaaaaabaaaaaaaaaababaab`a\\n\", \"1\\n19\\naabaababaaaaaaaaaabbaaaaaaaaa\\n\"], \"outputs\": [\"-1 -1\\n1 2\\n1 2\\n1 2\\n\", \"-1 -1\\n\", \"-1 -1\\n\", \"-1 -1\\n1 2\\n1 2\\n1 2\\n\", \"-1 -1\\n1 2\\n1 2\\n1 2\\n\", \"2 3\\n\", \"10 11\\n\", \"-1 -1\\n1 2\\n1 2\\n2 3\\n\", \"-1 -1\\n1 2\\n3 4\\n2 3\\n\", \"3 4\\n\", \"5 6\\n\", \"7 8\\n\", \"1 2\\n\", \"26 27\\n\", \"12 13\\n\", \"11 12\\n\", \"6 7\\n\", \"8 9\\n\", \"18 19\\n\", \"2 3\\n\", \"2 3\\n\", \"2 3\\n\", \"2 3\\n\", \"2 3\\n\", \"10 11\\n\", \"10 11\\n\", \"-1 -1\\n1 2\\n1 2\\n1 2\\n\", \"2 3\\n\", \"2 3\\n\", \"2 3\\n\", \"2 3\\n\", \"10 11\\n\", \"2 3\\n\", \"2 3\\n\", \"2 3\\n\", \"2 3\\n\", \"2 3\\n\", \"10 11\\n\", \"10 11\\n\", \"-1 -1\\n1 2\\n1 2\\n1 2\\n\", \"2 3\\n\", \"10 11\\n\", \"2 3\\n\", \"2 3\\n\", \"2 3\\n\", \"2 3\\n\", \"2 3\\n\", \"3 4\\n\", \"10 11\\n\", \"2 3\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "cc-06505", "n_tests": 50, "public_tests": "{\"inputs\": [\"3\\n2 2 1 0\\n1 1 1 1\\n1 2 3 2\\n\", \"1\\n1 2 2 114514\\n\", \"1\\n1 1 1 1919810\\n\", \"1\\n1 1 1 46\\n\", \"1\\n114514 1 1 1919810\\n\", \"2\\n23 1 2 1\\n1 1 1 46\\n\", \"1\\n1 2 2 70572\\n\", \"2\\n23 1 2 1\\n2 1 1 46\\n\", \"2\\n5 1 1 2\\n2 4 1 8\\n\", \"3\\n3 2 1 0\\n1 1 1 1\\n1 2 3 2\\n\", \"2\\n5 1 1 2\\n2 4 1 2\\n\", \"1\\n2 1 4 4\\n\", \"3\\n3 2 1 0\\n1 1 1 1\\n1 2 3 6\\n\", \"2\\n23 1 2 4\\n2 1 2 0\\n\", \"3\\n2 2 1 0\\n2 1 1 1\\n1 2 3 2\\n\", \"1\\n1 1 2 1919810\\n\", \"1\\n1 1 2 46\\n\", \"1\\n35936 1 1 1919810\\n\", \"1\\n1 2 2 34959\\n\", \"1\\n1 1 2 2722288\\n\", \"1\\n1 1 2 55\\n\", \"1\\n59831 1 1 1919810\\n\", \"2\\n23 1 2 2\\n2 1 1 46\\n\", \"1\\n1 2 2 14130\\n\", \"1\\n1 0 2 2722288\\n\", \"1\\n1 1 3 55\\n\", \"1\\n59831 1 1 250092\\n\", \"2\\n23 1 2 2\\n2 1 1 18\\n\", \"1\\n1 2 2 26497\\n\", \"1\\n1 0 1 2722288\\n\", \"1\\n1 2 3 55\\n\", \"1\\n1253 1 1 250092\\n\", \"2\\n23 1 2 4\\n2 1 1 18\\n\", \"1\\n2 2 2 26497\\n\", \"1\\n1 0 2 4187757\\n\", \"1\\n1 1 4 55\\n\", \"2\\n40 1 2 4\\n2 1 1 18\\n\", \"1\\n2 1 2 26497\\n\", \"1\\n1 1 2 4187757\\n\", \"1\\n1 1 4 107\\n\", \"2\\n40 1 2 4\\n2 1 1 36\\n\", \"1\\n2 1 2 38332\\n\", \"1\\n1 2 2 4187757\\n\", \"1\\n1 2 4 107\\n\", \"2\\n40 1 2 4\\n2 2 1 36\\n\", \"1\\n2 1 2 57583\\n\", \"1\\n1 3 2 4187757\\n\", \"1\\n1 2 0 107\\n\", \"2\\n69 1 2 4\\n2 2 1 36\\n\", \"1\\n3 1 2 57583\\n\"], \"outputs\": [\"YES\\nNO\\nYES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\nNO\\n\", \"NO\\n\", \"NO\\nNO\\n\", \"YES\\nNO\\n\", \"YES\\nNO\\nYES\\n\", \"YES\\nYES\\n\", \"YES\\n\", \"YES\\nNO\\nNO\\n\", \"NO\\nYES\\n\", \"YES\\nYES\\nYES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\nNO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\nNO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\nNO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\nNO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\nNO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\nNO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\nNO\\n\", \"NO\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00003", "n_tests": 1, "public_tests": "{\"inputs\": [\"5\\n01111001\\n0000\\n111111\\n101010101\\n011011110111\\n\"], \"outputs\": [\"4\\n0\\n6\\n3\\n6\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00008", "n_tests": 1, "public_tests": "{\"inputs\": [\"4\\n6\\n40 6 40 3 20 1\\n1\\n1024\\n4\\n2 4 8 16\\n3\\n3 1 7\\n\"], \"outputs\": [\"4\\n10\\n4\\n0\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00013", "n_tests": 1, "public_tests": "{\"inputs\": [\"4\\n3\\n1 2 3\\n4\\n3 1 2 4\\n3\\n2 3 1\\n6\\n2 4 6 1 3 5\\n\"], \"outputs\": [\"YES\\nYES\\nNO\\nYES\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00018", "n_tests": 1, "public_tests": "{\"inputs\": [\"4\\naaa\\nbbb\\nccc\\nabc\\nbca\\nbca\\naabb\\nbbaa\\nbaba\\nimi\\nmii\\niim\\n\"], \"outputs\": [\"NO\\nYES\\nYES\\nNO\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00023", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 2, 3, 4, 5, 6, 1], 3]], \"outputs\": [12], \"testtype\": \"functional\", \"fn_name\": \"maxScore\", \"starter_code\": \"\\nclass Solution:\\n def maxScore(self, cardPoints: List[int], k: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00028", "n_tests": 1, "public_tests": "{\"inputs\": [[5, 3, [2, 2], [2, 3]]], \"outputs\": [2], \"testtype\": \"functional\", \"fn_name\": \"profitableSchemes\", \"starter_code\": \"\\nclass Solution:\\n def profitableSchemes(self, G: int, P: int, group: List[int], profit: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00033", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 2, 3, 4, 5], [4, 5, 3, 2, 1]]], \"outputs\": [true], \"testtype\": \"functional\", \"fn_name\": \"validateStackSequences\", \"starter_code\": \"\\nclass Solution:\\n def validateStackSequences(self, pushed: List[int], popped: List[int]) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00038", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 2], 3]], \"outputs\": [1], \"testtype\": \"functional\", \"fn_name\": \"numRescueBoats\", \"starter_code\": \"\\nclass Solution:\\n def numRescueBoats(self, people: List[int], limit: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00043", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"3[a]2[bc]\\\"\"]], \"outputs\": [\"\\\"aaabcbc\\\"\"], \"testtype\": \"functional\", \"fn_name\": \"decodeString\", \"starter_code\": \"\\nclass Solution:\\n def decodeString(self, s: str) -> str:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00048", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"a\\\"\"]], \"outputs\": [3], \"testtype\": \"functional\", \"fn_name\": \"strongPasswordChecker\", \"starter_code\": \"\\nclass Solution:\\n def strongPasswordChecker(self, s: str) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00053", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"aa\\\"\", \"\\\"a\\\"\"]], \"outputs\": [false], \"testtype\": \"functional\", \"fn_name\": \"isMatch\", \"starter_code\": \"\\nclass Solution:\\n def isMatch(self, s: str, p: str) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00058", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"abcde\\\"\", \"\\\"ace\\\"\"]], \"outputs\": [5], \"testtype\": \"functional\", \"fn_name\": \"longestCommonSubsequence\", \"starter_code\": \"\\nclass Solution:\\n def longestCommonSubsequence(self, text1: str, text2: str) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00063", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"annabelle\\\"\", 2]], \"outputs\": [true], \"testtype\": \"functional\", \"fn_name\": \"canConstruct\", \"starter_code\": \"\\nclass Solution:\\n def canConstruct(self, s: str, k: int) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00068", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 2, 3, 4, 5, 10, 6, 7, 8, 9], 5]], \"outputs\": [true], \"testtype\": \"functional\", \"fn_name\": \"canArrange\", \"starter_code\": \"\\nclass Solution:\\n def canArrange(self, arr: List[int], k: int) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00073", "n_tests": 1, "public_tests": "{\"inputs\": [[[10, 9, 2, 5, 3, 7, 101, 18]]], \"outputs\": [4], \"testtype\": \"functional\", \"fn_name\": \"lengthOfLIS\", \"starter_code\": \"\\nclass Solution:\\n def lengthOfLIS(self, nums: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00078", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"00110110\\\"\", 2]], \"outputs\": [true], \"testtype\": \"functional\", \"fn_name\": \"hasAllCodes\", \"starter_code\": \"\\nclass Solution:\\n def hasAllCodes(self, s: str, k: int) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00083", "n_tests": 1, "public_tests": "{\"inputs\": [[[\"\\\"1\\\"\", \"\\\"3\\\"\", \"\\\"5\\\"\", \"\\\"7\\\"\"], 100]], \"outputs\": [84], \"testtype\": \"functional\", \"fn_name\": \"atMostNGivenDigitSet\", \"starter_code\": \"\\nclass Solution:\\n def atMostNGivenDigitSet(self, digits: List[str], n: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00088", "n_tests": 1, "public_tests": "{\"inputs\": [[[-2, 3, -2, 1]]], \"outputs\": [3], \"testtype\": \"functional\", \"fn_name\": \"maxSubarraySumCircular\", \"starter_code\": \"\\nclass Solution:\\n def maxSubarraySumCircular(self, A: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00093", "n_tests": 1, "public_tests": "{\"inputs\": [[3]], \"outputs\": [5], \"testtype\": \"functional\", \"fn_name\": \"numTrees\", \"starter_code\": \"\\nclass Solution:\\n def numTrees(self, n: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00098", "n_tests": 1, "public_tests": "{\"inputs\": [[[10, 2]]], \"outputs\": [\"210\"], \"testtype\": \"functional\", \"fn_name\": \"largestNumber\", \"starter_code\": \"\\nclass Solution:\\n def largestNumber(self, nums: List[int]) -> str:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00103", "n_tests": 1, "public_tests": "{\"inputs\": [[[2, 4]]], \"outputs\": [3], \"testtype\": \"functional\", \"fn_name\": \"numFactoredBinaryTrees\", \"starter_code\": \"\\nclass Solution:\\n def numFactoredBinaryTrees(self, A: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00108", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"cba\\\"\", 1]], \"outputs\": [\"\\\"\\\"cba\"], \"testtype\": \"functional\", \"fn_name\": \"orderlyQueue\", \"starter_code\": \"\\nclass Solution:\\n def orderlyQueue(self, S: str, K: int) -> str:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00113", "n_tests": 1, "public_tests": "{\"inputs\": [[[0, 1, 3, 5, 6]]], \"outputs\": [3], \"testtype\": \"functional\", \"fn_name\": \"hIndex\", \"starter_code\": \"\\nclass Solution:\\n def hIndex(self, citations: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00118", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"abciiidef\\\"\", 3]], \"outputs\": [3], \"testtype\": \"functional\", \"fn_name\": \"maxVowels\", \"starter_code\": \"\\nclass Solution:\\n def maxVowels(self, s: str, k: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00123", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 2, 3, 4]]], \"outputs\": [3], \"testtype\": \"functional\", \"fn_name\": \"numberOfArithmeticSlices\", \"starter_code\": \"\\nclass Solution:\\n def numberOfArithmeticSlices(self, A: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00128", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"GGLLGG\\\"\"]], \"outputs\": [true], \"testtype\": \"functional\", \"fn_name\": \"isRobotBounded\", \"starter_code\": \"\\nclass Solution:\\n def isRobotBounded(self, instructions: str) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00133", "n_tests": 1, "public_tests": "{\"inputs\": [[[3, 2, 2, 4, 3], 3]], \"outputs\": [2], \"testtype\": \"functional\", \"fn_name\": \"minSumOfLengths\", \"starter_code\": \"\\nclass Solution:\\n def minSumOfLengths(self, arr: List[int], target: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00138", "n_tests": 1, "public_tests": "{\"inputs\": [[2]], \"outputs\": [91], \"testtype\": \"functional\", \"fn_name\": \"countNumbersWithUniqueDigits\", \"starter_code\": \"\\nclass Solution:\\n def countNumbersWithUniqueDigits(self, n: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00143", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 7, 4, 9, 2, 5]]], \"outputs\": [6], \"testtype\": \"functional\", \"fn_name\": \"wiggleMaxLength\", \"starter_code\": \"\\nclass Solution:\\n def wiggleMaxLength(self, nums: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00148", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"aacaba\\\"\"]], \"outputs\": [2], \"testtype\": \"functional\", \"fn_name\": \"numSplits\", \"starter_code\": \"\\nclass Solution:\\n def numSplits(self, s: str) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00153", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 1, 1, 0], [7, 5, 4, 100], [[], [], [1], [], [], []], [[1, 2], [3], [], [], [], []], [0]]], \"outputs\": [16], \"testtype\": \"functional\", \"fn_name\": \"maxCandies\", \"starter_code\": \"\\nclass Solution:\\n def maxCandies(self, status: List[int], candies: List[int], keys: List[List[int]], containedBoxes: List[List[int]], initialBoxes: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00158", "n_tests": 1, "public_tests": "{\"inputs\": [[[2, 1, 3, 5, 4]]], \"outputs\": [3], \"testtype\": \"functional\", \"fn_name\": \"numTimesAllBlue\", \"starter_code\": \"\\nclass Solution:\\n def numTimesAllBlue(self, light: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00163", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 1, 3], 1]], \"outputs\": [0], \"testtype\": \"functional\", \"fn_name\": \"smallestDistancePair\", \"starter_code\": \"\\nclass Solution:\\n def smallestDistancePair(self, nums: List[int], k: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00168", "n_tests": 1, "public_tests": "{\"inputs\": [[1, 1]], \"outputs\": [2], \"testtype\": \"functional\", \"fn_name\": \"flipLights\", \"starter_code\": \"\\nclass Solution:\\n def flipLights(self, n: int, m: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00173", "n_tests": 1, "public_tests": "{\"inputs\": [[4]], \"outputs\": [2], \"testtype\": \"functional\", \"fn_name\": \"totalNQueens\", \"starter_code\": \"\\nclass Solution:\\n def totalNQueens(self, n: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00178", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 4, 2], [1, 2, 4]]], \"outputs\": [2], \"testtype\": \"functional\", \"fn_name\": \"maxUncrossedLines\", \"starter_code\": \"\\nclass Solution:\\n def maxUncrossedLines(self, A: List[int], B: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00183", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 2, 3], 4]], \"outputs\": [7], \"testtype\": \"functional\", \"fn_name\": \"combinationSum4\", \"starter_code\": \"\\nclass Solution:\\n def combinationSum4(self, nums: List[int], target: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00188", "n_tests": 1, "public_tests": "{\"inputs\": [[[1], 1]], \"outputs\": [1], \"testtype\": \"functional\", \"fn_name\": \"shortestSubarray\", \"starter_code\": \"\\nclass Solution:\\n def shortestSubarray(self, A: List[int], K: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00193", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 2, 3, 4, 5, 6]]], \"outputs\": [10], \"testtype\": \"functional\", \"fn_name\": \"maxSizeSlices\", \"starter_code\": \"\\nclass Solution:\\n def maxSizeSlices(self, slices: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00198", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"aabcc\\\"\", \"\\\"dbbca\\\"\", \"\\\"aadbbcbcac\\\"\"]], \"outputs\": [false], \"testtype\": \"functional\", \"fn_name\": \"isInterleave\", \"starter_code\": \"\\nclass Solution:\\n def isInterleave(self, s1: str, s2: str, s3: str) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00203", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"0\\\"\"]], \"outputs\": [false], \"testtype\": \"functional\", \"fn_name\": \"isNumber\", \"starter_code\": \"\\nclass Solution:\\n def isNumber(self, s: str) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00208", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 2, 3, 6]]], \"outputs\": [6], \"testtype\": \"functional\", \"fn_name\": \"tallestBillboard\", \"starter_code\": \"\\nclass Solution:\\n def tallestBillboard(self, rods: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00213", "n_tests": 1, "public_tests": "{\"inputs\": [[10]], \"outputs\": [12], \"testtype\": \"functional\", \"fn_name\": \"nthUglyNumber\", \"starter_code\": \"\\nclass Solution:\\n def nthUglyNumber(self, n: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00218", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, -2, 0, 3]]], \"outputs\": [4], \"testtype\": \"functional\", \"fn_name\": \"maximumSum\", \"starter_code\": \"\\nclass Solution:\\n def maximumSum(self, arr: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00223", "n_tests": 1, "public_tests": "{\"inputs\": [[[3, 5, 6, 7], 9]], \"outputs\": [4], \"testtype\": \"functional\", \"fn_name\": \"numSubseq\", \"starter_code\": \"\\nclass Solution:\\n def numSubseq(self, nums: List[int], target: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00228", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"abcd\\\"\", [0, 2], [\"\\\"a\\\"\", \" \\\"cd\\\"\"], [\"\\\"eee\\\"\", \" \\\"ffff\\\"\"]]], \"outputs\": [\"\\\"abcd\\\"\"], \"testtype\": \"functional\", \"fn_name\": \"findReplaceString\", \"starter_code\": \"\\nclass Solution:\\n def findReplaceString(self, S: str, indexes: List[int], sources: List[str], targets: List[str]) -> str:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00233", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"ABC\\\"\"]], \"outputs\": [33], \"testtype\": \"functional\", \"fn_name\": \"uniqueLetterString\", \"starter_code\": \"\\nclass Solution:\\n def uniqueLetterString(self, s: str) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00238", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"aa\\\"\", \"\\\"a\\\"\"]], \"outputs\": [false], \"testtype\": \"functional\", \"fn_name\": \"isMatch\", \"starter_code\": \"\\nclass Solution:\\n def isMatch(self, s: str, p: str) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00243", "n_tests": 1, "public_tests": "{\"inputs\": [[1, 2, 3]], \"outputs\": [2], \"testtype\": \"functional\", \"fn_name\": \"nthMagicalNumber\", \"starter_code\": \"\\nclass Solution:\\n def nthMagicalNumber(self, N: int, A: int, B: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00248", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 2, 3, 1]]], \"outputs\": [2], \"testtype\": \"functional\", \"fn_name\": \"findPeakElement\", \"starter_code\": \"\\nclass Solution:\\n def findPeakElement(self, nums: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00253", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 2, 3, 4, 5, 6, 7, 8]]], \"outputs\": [true], \"testtype\": \"functional\", \"fn_name\": \"splitArraySameAverage\", \"starter_code\": \"\\nclass Solution:\\n def splitArraySameAverage(self, A: List[int]) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00258", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 2, 3]]], \"outputs\": [2], \"testtype\": \"functional\", \"fn_name\": \"minMoves2\", \"starter_code\": \"\\nclass Solution:\\n def minMoves2(self, nums: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00263", "n_tests": 1, "public_tests": "{\"inputs\": [[[2, 1, 5, 6, 2, 3, -1]]], \"outputs\": [10], \"testtype\": \"functional\", \"fn_name\": \"largestRectangleArea\", \"starter_code\": \"\\nclass Solution:\\n def largestRectangleArea(self, heights: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00268", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"hit\\\"\", \"\\\"cog\\\"\", [\"\\\"hot\\\"\", \"\\\"dot\\\"\", \"\\\"dog\\\"\", \"\\\"lot\\\"\", \"\\\"log\\\"\", \"\\\"cog\\\"\"]]], \"outputs\": [5], \"testtype\": \"functional\", \"fn_name\": \"ladderLength\", \"starter_code\": \"\\nclass Solution:\\n def ladderLength(self, beginWord: str, endWord: str, wordList: List[str]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00273", "n_tests": 1, "public_tests": "{\"inputs\": [[1, 6, 3]], \"outputs\": [1], \"testtype\": \"functional\", \"fn_name\": \"numRollsToTarget\", \"starter_code\": \"\\nclass Solution:\\n def numRollsToTarget(self, d: int, f: int, target: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00278", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 3], [2]]], \"outputs\": [2.0], \"testtype\": \"functional\", \"fn_name\": \"findMedianSortedArrays\", \"starter_code\": \"\\nclass Solution:\\n def findMedianSortedArrays(self, nums1: List[int], nums2: List[int]) -> float:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00283", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"babad\\\"\"]], \"outputs\": [\"bab\"], \"testtype\": \"functional\", \"fn_name\": \"longestPalindrome\", \"starter_code\": \"\\nclass Solution:\\n def longestPalindrome(self, s: str) -> str:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00288", "n_tests": 1, "public_tests": "{\"inputs\": [[[\"\\\"@.a.#\\\"\", \"\\\"###.#\\\"\", \"\\\"b.A.B\\\"\"]]], \"outputs\": [8], \"testtype\": \"functional\", \"fn_name\": \"shortestPathAllKeys\", \"starter_code\": \"\\nclass Solution:\\n def shortestPathAllKeys(self, grid: List[str]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00293", "n_tests": 1, "public_tests": "{\"inputs\": [[[2, 2, 2, 2, 5, 5, 5, 8], 3, 4]], \"outputs\": [3], \"testtype\": \"functional\", \"fn_name\": \"numOfSubarrays\", \"starter_code\": \"\\nclass Solution:\\n def numOfSubarrays(self, arr: List[int], k: int, threshold: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00298", "n_tests": 1, "public_tests": "{\"inputs\": [[[3, 5, 1, 2, 4], 1]], \"outputs\": [4], \"testtype\": \"functional\", \"fn_name\": \"findLatestStep\", \"starter_code\": \"\\nclass Solution:\\n def findLatestStep(self, arr: List[int], m: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00303", "n_tests": 1, "public_tests": "{\"inputs\": [[1]], \"outputs\": [1.0], \"testtype\": \"functional\", \"fn_name\": \"nthPersonGetsNthSeat\", \"starter_code\": \"\\nclass Solution:\\n def nthPersonGetsNthSeat(self, n: int) -> float:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00308", "n_tests": 1, "public_tests": "{\"inputs\": [[[3, 4, 5, 1, 2]]], \"outputs\": [1], \"testtype\": \"functional\", \"fn_name\": \"findMin\", \"starter_code\": \"\\nclass Solution:\\n def findMin(self, nums: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00313", "n_tests": 1, "public_tests": "{\"inputs\": [[[0, 1, 3, 4, 5, 7, 9, 10, 12]]], \"outputs\": [true], \"testtype\": \"functional\", \"fn_name\": \"canCross\", \"starter_code\": \"\\nclass Solution:\\n def canCross(self, stones: List[int]) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00318", "n_tests": 1, "public_tests": "{\"inputs\": [[1, 0, [-1], [0]]], \"outputs\": [0], \"testtype\": \"functional\", \"fn_name\": \"numOfMinutes\", \"starter_code\": \"\\nclass Solution:\\n def numOfMinutes(self, n: int, headID: int, manager: List[int], informTime: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00323", "n_tests": 1, "public_tests": "{\"inputs\": [[[21, 4, 7]]], \"outputs\": [32], \"testtype\": \"functional\", \"fn_name\": \"sumFourDivisors\", \"starter_code\": \"\\nclass Solution:\\n def sumFourDivisors(self, nums: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00328", "n_tests": 1, "public_tests": "{\"inputs\": [[[2, 3, 1, 6, 7]]], \"outputs\": [4], \"testtype\": \"functional\", \"fn_name\": \"countTriplets\", \"starter_code\": \"\\nclass Solution:\\n def countTriplets(self, arr: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00333", "n_tests": 1, "public_tests": "{\"inputs\": [[[[1, 2, 2, 1], [3, 1, 2], [1, 3, 2], [2, 4], [3, 1, 2], [1, 3, 1, 1], [], []]]], \"outputs\": [4], \"testtype\": \"functional\", \"fn_name\": \"leastBricks\", \"starter_code\": \"\\nclass Solution:\\n def leastBricks(self, wall: List[List[int]]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00338", "n_tests": 1, "public_tests": "{\"inputs\": [[6]], \"outputs\": [7], \"testtype\": \"functional\", \"fn_name\": \"primePalindrome\", \"starter_code\": \"\\nclass Solution:\\n def primePalindrome(self, N: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00343", "n_tests": 1, "public_tests": "{\"inputs\": [[[[1], [2], [3], [], [], []]]], \"outputs\": [false], \"testtype\": \"functional\", \"fn_name\": \"canVisitAllRooms\", \"starter_code\": \"\\nclass Solution:\\n def canVisitAllRooms(self, rooms: List[List[int]]) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00348", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 2, 3, 3], [3, 4, 5, 6], [50, 10, 40, 70]]], \"outputs\": [120], \"testtype\": \"functional\", \"fn_name\": \"jobScheduling\", \"starter_code\": \"\\nclass Solution:\\n def jobScheduling(self, startTime: List[int], endTime: List[int], profit: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00353", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"(abcd)\\\"\"]], \"outputs\": [\"\\\"dcba\\\"\"], \"testtype\": \"functional\", \"fn_name\": \"reverseParentheses\", \"starter_code\": \"\\nclass Solution:\\n def reverseParentheses(self, s: str) -> str:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-00358", "n_tests": 1, "public_tests": "{\"inputs\": [\"7\\nabcdbbd\\n6\\n2 3 6\\n1 5 z\\n2 1 1\\n1 4 a\\n1 7 d\\n2 1 7\\n\"], \"outputs\": [\"3\\n1\\n5\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00363", "n_tests": 1, "public_tests": "{\"inputs\": [\"3 176\"], \"outputs\": [\"6\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00368", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\"], \"outputs\": [\"3\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00373", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n1 10\\n2 10\"], \"outputs\": [\"10\\n4\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00378", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n5 8\"], \"outputs\": [\"1\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00383", "n_tests": 1, "public_tests": "{\"inputs\": [\"4\\n14\\n5 4 2 2 3 2 1 3 2 7 4 9 9 9\\n3\\n1 2 1\\n3\\n1 1 1\\n5\\n1 2 3 4 1\"], \"outputs\": [\"3\\n1\\n1\\n0\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00388", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n4 5\"], \"outputs\": [\"2 7\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00393", "n_tests": 1, "public_tests": "{\"inputs\": [\"5\\n1\\n2\\n3\\n50\\n12233443\"], \"outputs\": [\"0 1\\n-1 1\\n-1 0\\n2 4\\n-1749 812\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00398", "n_tests": 1, "public_tests": "{\"inputs\": [\"8 8\\n00101010\\n00010101\\n10101010\\n01010101\\n10101010\\n01010101\\n10101010\\n01010101\\n4\\n1 2 0 1001\"], \"outputs\": [\"7\\n8\\n6\\n8\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00403", "n_tests": 1, "public_tests": "{\"inputs\": [\"5\\n8\\n9\\n20\\n32\\n109\"], \"outputs\": [\"2\\n3\\n5\\n4\\n4\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00408", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\nabc\\naba\"], \"outputs\": [\"4\\n6\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00413", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n1\\n-1\\n2\\n1 2\"], \"outputs\": [\"NO\\nYES\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00418", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n3 2 3\\n1 2 3\\n3 3 3\\n1 2 3\"], \"outputs\": [\"5\\n15\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00423", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n5\\n1 1\\n2 2\\n3 3\\n4 4\\n5 5\"], \"outputs\": [\"27\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00428", "n_tests": 1, "public_tests": "{\"inputs\": [\"5\\n1 1\\nR\\n2 3\\nLLRU\\n3 2\\nLLRU\\n4 3\\nULURUDRDLD\\n3 6\\nRURUR\"], \"outputs\": [\"unsafe\\nsafe\\nunsafe\\nsafe\\nsafe\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00433", "n_tests": 1, "public_tests": "{\"inputs\": [\"4\\n4\\n1 1 2 3\\n4\\n2 1 3 3\\n5\\n5 4 4 3 1\\n5\\n3 2 1 1 4\"], \"outputs\": [\"Truly Happy\\nPoor Chef\\nPoor Chef\\nTruly Happy\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00438", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n4\\n1 2\\n4 3\\n3 5\\n2 4\"], \"outputs\": [\"3\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00443", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n1\\n2\"], \"outputs\": [\"0 1\\n2 1\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00448", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n5\\n4\\n7\\n6\\n3\\n1\"], \"outputs\": [\"7\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00453", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\naaaabccc\\naabbcc\\nppppmmnnoooopp\"], \"outputs\": [\"Dynamic\\nNot\\nDynamic\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00458", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n3\\n1 2 3\"], \"outputs\": [\"Yes\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00463", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n4 4\\n1010\\n0010\\n1001\\n0100\\nLRDU\\n4 3\\n000\\n010\\n001\\n101\\nLRL\\n3 2\\n01\\n10\\n00\\nD\"], \"outputs\": [\"0011\\n0011\\n0001\\n0001\\n000\\n100\\n100\\n110\\n00\\n00\\n11\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00468", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n120 11 400\\n10213 312 10\\n10 3 450\"], \"outputs\": [\"120\\n312\\n10\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00473", "n_tests": 1, "public_tests": "{\"inputs\": [\"2 20\\n5\\n3\"], \"outputs\": [\"yes\\nno\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00478", "n_tests": 1, "public_tests": "{\"inputs\": [\"4\\n1\\n2\\n3\\n4\"], \"outputs\": [\"1\\n12\\n34\\n123\\n456\\n789\\n1234\\n5678\\n9101112\\n13141516\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00483", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n4 90\\n3 8 6 5\\n0 1 1 0\\n4 90\\n5 7 6 5\\n0 1 1 0\"], \"outputs\": [\"yes\\nno\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00488", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n3 4\\n2 -1 5\\n3 3 2 4\\n6\\n3\\n1 2 3 -2\\n3\\n1 1 3 1\\n2 2 4 2\\n3\"], \"outputs\": [\"72\\n24\\n90\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00493", "n_tests": 1, "public_tests": "{\"inputs\": [\"4\\n00000000\\n10101010\\n10000001\\n10010011\"], \"outputs\": [\"uniform\\nnon-uniform\\nuniform\\nnon-uniform\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00498", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n3\\n4\\n5\"], \"outputs\": [\"6\\n24\\n120\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00503", "n_tests": 1, "public_tests": "{\"inputs\": [\"5\\n1 5 31\\n4\\n1 10 3\\n23\\n2 5 7\\n20 36\\n2 5 10\\n19 2\\n3 3 300\\n1 1 1\"], \"outputs\": [\"0\\n2\\n7\\n4\\n1\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00508", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n12 2 17\\n523 3 11\\n\\n\"], \"outputs\": [\"5\\n6\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00513", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n1\\n2\"], \"outputs\": [\"2\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00518", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n6 7\\n2 5 8 10 3 44\\n1 2 6\\n0 2 3\\n1 2 6\\n0 4 6\\n1 1 6\\n0 1 6\\n1 4 6\\n2 2\\n1 3\\n0 2 2\\n1 1 2\"], \"outputs\": [\"5 3 5 11\\n1\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00523", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n1\\n1 2\\n3\\n1 3\\n1 1\\n1 0\"], \"outputs\": [\"2x^1\\n3x^2 + 1\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00528", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n4\\n1 3 3 4\\n1 2 4 4\\n2\\n2 3\\n3 2\\n2\\n3 3\\n3 3\"], \"outputs\": [\"5\\n0\\n6\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00533", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n7 5\\n6 5\"], \"outputs\": [\"YES\\nNO\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00538", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n10 12 4 5 3\"], \"outputs\": [\"0\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00543", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n1 2 3\\n3 2 1\\n1 3 4\"], \"outputs\": [\"7\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00548", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n7\\n3 2 15 6 8 5 10\"], \"outputs\": [\"5\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00553", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n5\\n4 2 1 5 3\"], \"outputs\": [\"20 2\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00558", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n11010\\n101001011\\n\\n\"], \"outputs\": [\"9\\n18\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00563", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n2\\n9 3\\n3\\n3 2 9\"], \"outputs\": [\"6.00000000\\n4.00000000\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00568", "n_tests": 1, "public_tests": "{\"inputs\": [\"4\\n5\\n8\\n9\\n1000000000\"], \"outputs\": [\"4 3\\n5 3\\n5 4\\n35 30\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00573", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n3 a\\n3 ab\"], \"outputs\": [\"1326\\n76\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00578", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n1 1 0\\n1 1 1\\n1 0 0\"], \"outputs\": [\"2\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00583", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n4 2\\n3 1 2 4\\n1\\n5\"], \"outputs\": [\"4\\n3\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00588", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n\\n7 3 2 \\n4 1 5 \\n6 8 9 \\n\\n9 8 5 \\n2 4 1 \\n3 7 6 \\n\\n\"], \"outputs\": [\"6\\n-1\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00593", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n3\\n3 7\\n2 5\\n6 9\"], \"outputs\": [\"100\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00598", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n4 2\\nabcb\\n7 1\\naayzbaa\\n12 80123123\\nabzbabzbazab\\n\\n\"], \"outputs\": [\"6\\n2\\n64197148392731290\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00603", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n3 2\\na b a\\na c d\\nb a b\\n1 3\\n3 3\"], \"outputs\": [\"1\\n2\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00608", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n5\\n3\\n4\"], \"outputs\": [\"1 1\\n2 2\\n3\\n4 4\\n5 5\\n1 1\\n2\\n3 3\\n1 1\\n22\\n33\\n4 4\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00613", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n7\\n10 40 30 30 20 0 0\"], \"outputs\": [\"100\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00618", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\nTracy\"], \"outputs\": [\"ycarT\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00623", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n3 3\\n1 2 3\\n3 4\\n1 2 3\\n4 5\\n4 3 2 7\"], \"outputs\": [\"3\\n2\\n4\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00628", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n2\\n3\"], \"outputs\": [\"0\\n2\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00633", "n_tests": 1, "public_tests": "{\"inputs\": [\"10\\n3 3\\nR--\\n---\\n--U\\n1 4\\nR--R\\n2 2\\n--\\n--\\n1 4\\nR--L\\n1 4\\n-R-L\\n1 4\\n-R#L\\n3 3\\nR-D\\n-#-\\nR-U\\n3 3\\nR-D\\n---\\nR#U\\n3 3\\n-D-\\nR-L\\n-U-\\n1 7\\nRLLLLLL\\n\"], \"outputs\": [\"1\\n0\\n0\\n0\\n1\\n0\\n3\\n2\\n6\\n3\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00638", "n_tests": 1, "public_tests": "{\"inputs\": [\"5\\n0 1 1 1\\n1 4 1 5\\n4 2 1 7\\n3 7 2 10\\n8 2 3 15\"], \"outputs\": [\"No\\nNo\\nYes\\nYes\\nYes\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00643", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n4\\n3 2 2 2\"], \"outputs\": [\"1\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00648", "n_tests": 1, "public_tests": "{\"inputs\": [\"codechef\\nchefcode\\n3\\n4\\n12\\n1455\"], \"outputs\": [\"0\\n1\\n181\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00653", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n1 9\"], \"outputs\": [\"1 1\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00658", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n1 1\\n4 4\"], \"outputs\": [\"1.60\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00663", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n2\\n1 3\\n2 4\"], \"outputs\": [\"YES\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00668", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\ngb\\nbgg\\nbbgg\"], \"outputs\": [\"1\\n2\\n6\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00673", "n_tests": 1, "public_tests": "{\"inputs\": [\"5 4\\n7\\n12\\n10\\n1\"], \"outputs\": [\"17\\n22\\n20\\n20\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00678", "n_tests": 1, "public_tests": "{\"inputs\": [\"1 \\n3 1 3\\n1 2 3\\n5\\n4 5 6\\n\\n\"], \"outputs\": [\"399\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00683", "n_tests": 1, "public_tests": "{\"inputs\": [\"4\\n1 100\\n1 10000\\n1 100000\\n4444 4447\\n\\n\"], \"outputs\": [\"0\\n16\\n640\\n2\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00688", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n10\\n1 2 3 2 1 5 1 2 8 2\"], \"outputs\": [\"7\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00693", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\naeiou\\ndbcc\"], \"outputs\": [\"0\\n6\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00698", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n4\\n1 -3 2 -3\"], \"outputs\": [\"9\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00703", "n_tests": 1, "public_tests": "{\"inputs\": [\"8\\n1 1 1 1 5 8 6\\n1 2 3 4 5 15 70 10\"], \"outputs\": [\"1 3 4 5 6 21 96 26\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00708", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n3 4 1 2\\n10 20 3 7\"], \"outputs\": [\"YES\\nNO\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00713", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n9 1 2\\n123456 123456 123456\"], \"outputs\": [\"45\\n131351258112\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00718", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n10 100 10 10\\n100 10 5 10\"], \"outputs\": [\"Bolt\\nTiger\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00723", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n4\\n5\"], \"outputs\": [\"YES\\nNO\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00728", "n_tests": 1, "public_tests": "{\"inputs\": [\"2 4\\nRowAdd 1 3\\nColAdd 2 1\\nColAdd 1 4\\nRowAdd 2 1\"], \"outputs\": [\"7\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00733", "n_tests": 1, "public_tests": "{\"inputs\": [\"5\\n1 2 7 4 5\\n1 2\\n2 3\\n2 4\\n2 5\\n7\\nC 1 5\\nF 1 5\\nC 2 4\\nC 1 2\\nF 1 3\\nF 3 4\\nF 2 4\"], \"outputs\": [\"1\\n4\\n2\\n1\\n6\\n5\\n2\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00738", "n_tests": 1, "public_tests": "{\"inputs\": [\"4\\n5 1\\nfrauD\\n5 1\\nFRAUD\\n4 4\\nLife\\n10 4\\nsTRAWBerry\"], \"outputs\": [\"chef\\nbrother\\nboth\\nnone\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00743", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n14 10 12 6 18 2\\n10 10 10 10 10 3\"], \"outputs\": [\"No\\nYes\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00748", "n_tests": 1, "public_tests": "{\"inputs\": [\"4\\n4\\n1 1 1 1\\n4\\n1 1 1 2\\n4\\n1 -1 -1 4\\n4\\n1 -1 2 -1\"], \"outputs\": [\"YES\\n1 1 1 1\\nNO\\nYES\\n1 4 1 4\\nNO\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00753", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n153\\n11\\n1634\"], \"outputs\": [\"FEELS GOOD\\nFEELS BAD\\nFEELS GOOD\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00758", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n..P.P\"], \"outputs\": [\"Yes\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00763", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n2 3\\n3 3\\n————————————————————————————————————————\"], \"outputs\": [\"1\\n1\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00768", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n2 1\\n9 3\\n11 13\\n\"], \"outputs\": [\"1 9\\n3 2\\n1 4\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00773", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n3527\\n47269\"], \"outputs\": [\"1305\\n25047\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00778", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n1 2\\n100 200\\n40 15\"], \"outputs\": [\"1\\n100\\n10\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00783", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n1 2\\n100 200\\n10 40\"], \"outputs\": [\"3\\n300\\n50\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00788", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n4\\n1 2 1 2\\n8\\n1 2 1 3 4 1 5 6\"], \"outputs\": [\"1\\n0\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00793", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\nHELLO\\nHELL\"], \"outputs\": [\"BJQEI\\nBJQE\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00798", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n13\\n1 1 1 1 1 4 3 4 4 3 4 3\"], \"outputs\": [\"4\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00803", "n_tests": 1, "public_tests": "{\"inputs\": [\"3 4 2\\n15 21\\n5 10\\n7 25\\n4 14 25 2\\n13 21\"], \"outputs\": [\"8\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00808", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n5\\n72\"], \"outputs\": [\"3\\n12\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00813", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n4\\n5\"], \"outputs\": [\"YES\\nNO\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00818", "n_tests": 1, "public_tests": "{\"inputs\": [\"6\\n1 3 -4 2 2 -2\"], \"outputs\": [\"3\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00823", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n3\"], \"outputs\": [\"Jhon\\nRavi\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00828", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\ngandhi\\nmahatma gandhI\\nMohndas KaramChand gandhi\\n\\n\"], \"outputs\": [\"Gandhi \\nM. Gandhi \\nM. K. Gandhi \"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00833", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n1\\n2\\n3\"], \"outputs\": [\"1\\n6\\n90\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00838", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n12\\n223\"], \"outputs\": [\"YES\\nNO\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00843", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n17\\n10\"], \"outputs\": [\"2111\\n0\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00848", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n4 2 5\\n4 2 3 5\"], \"outputs\": [\"3\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00853", "n_tests": 1, "public_tests": "{\"inputs\": [\"CodeSprInT\"], \"outputs\": [\".c.d.s.p.r.n.t\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00858", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n111\"], \"outputs\": [\"YESS(sunglass emo)\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00863", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n16\\n27\"], \"outputs\": [\"No\\nYes\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00868", "n_tests": 1, "public_tests": "{\"inputs\": [\"6\\n0 1 1 2 2 3\"], \"outputs\": [\"4 5 6\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00873", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n4 1 3 2 4 3 2 4\\n1 2 3 4\"], \"outputs\": [\"6\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00878", "n_tests": 1, "public_tests": "{\"inputs\": [\"4\\nAB\\nABBA\\nABAABB\\nAA\"], \"outputs\": [\"yes\\nyes\\nno\\nno\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00883", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n3\"], \"outputs\": [\"12\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00888", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n1 3 2 1 2\\n1 5 2 1 2\\n1 5 3 2 2\"], \"outputs\": [\"Kefa\\nChef\\nDraw\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00893", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n3 10\"], \"outputs\": [\"18\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00898", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n3 4 11 23\\n10 11 30\\n3 4 11 40\\n10 11 30\"], \"outputs\": [\"16\\n16\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00903", "n_tests": 1, "public_tests": "{\"inputs\": [\"4\\n\\n1\\n0\\n\\n3\\n0\\n0\\n1 1 2\\n\\n3\\n0\\n0\\n2 1 2\\n\\n5\\n0\\n0\\n0\\n2 1 2\\n1 3 4\\n\\n\"], \"outputs\": [\"0.50000\\n0.29289\\n0.70711\\n0.40303\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00908", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n6\\n6 7 9 11 4 16\"], \"outputs\": [\"23\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00913", "n_tests": 1, "public_tests": "{\"inputs\": [\"4\\n6\\n9\\n11\\n24\"], \"outputs\": [\"4\\n7\\n8\\n14\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00918", "n_tests": 1, "public_tests": "{\"inputs\": [\"4\\nhelowrd 0\\nbackground 0\\nabcdefghijklmnopqrstuvwxyz 0\\nb 1\"], \"outputs\": [\"abcfgij\\nefhijlmpqs\\nNOPE\\na\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00923", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n3 3\\n2\\n1 1\\n1 3\\n2\\n2 1\\n2 2\"], \"outputs\": [\"0 1 0\\nX X 1\\n4 3 2\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00928", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n4\\n8 8 10 12\\n15 20 3 5\\n3\\n20 20 20\\n10 10 10\"], \"outputs\": [\"30\\n30\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00933", "n_tests": 1, "public_tests": "{\"inputs\": [\"4\\nabc\\nabcba\\nabcd\\ncba\"], \"outputs\": [\"2\\n0\\n4\\n2\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00938", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n3\\n1 2 5\\n6 3 4\\n2 7 1\"], \"outputs\": [\"13\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00943", "n_tests": 1, "public_tests": "{\"inputs\": [\"4 4 5 2 1 3 2 1 3 2 3 3 4 3 1 4 2 3\"], \"outputs\": [\"22\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00948", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n10 20\\n20 10\\n10 10\"], \"outputs\": [\"<\\n>\\n=\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00953", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n16\"], \"outputs\": [\"4\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00958", "n_tests": 1, "public_tests": "{\"inputs\": [\"absdbads\\nasdjenfef\\ntyerbet\\nabc564\"], \"outputs\": [\"Invalid\\nInvalid\\nInvalid\\nValid\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00963", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n4 3\\n4 4\"], \"outputs\": [\"Case 1: 3\\nCase 2: 1\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00968", "n_tests": 1, "public_tests": "{\"inputs\": [\"8\\n-20\\n90\\n-30\\n-20\\n80\\n-70\\n-60\\n125\"], \"outputs\": [\"-5\\n6 8\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00973", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n3 3\\n3 5 6\\n11 3 1 2 3\\n5 2 1 2\\n5 2 1 3\"], \"outputs\": [\"10\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00978", "n_tests": 1, "public_tests": "{\"inputs\": [\"4 4.296 3 3.8 -2 1.8 2 2.8678 1\"], \"outputs\": [\"4296.00\\n0.04\\n180.00\\n28.68\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00983", "n_tests": 1, "public_tests": "{\"inputs\": [\"2 4\\n1 2\\n1 1 WhoDoesntLoveChefBook\\n2 2 WinterIsComing\\n3 10 TheseViolentDelightsHaveViolentEnds\\n4 3 ComeAtTheKingBestNotMiss\"], \"outputs\": [\"WinterIsComing\\nWhoDoesntLoveChefBook\\nTheseViolentDelightsHaveViolentEnds\\nComeAtTheKingBestNotMiss\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00988", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n2\\n5 10\\n2\\n10 5\\n2\\n5 15\\n\"], \"outputs\": [\"YES\\nNO\\nNO\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00993", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n4\\n1 2 3 4\\n5\\n3 2 0 3 0\"], \"outputs\": [\"4\\n4\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-00998", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n6 2\\n1 1 1 2 2 1\\n5 3\\n1 1 2 2 1\"], \"outputs\": [\"3\\n5\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01003", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n7\"], \"outputs\": [\"21\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01008", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n600000\\n250000\"], \"outputs\": [\"577500\\n250000\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01013", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n4\\n10000000000\"], \"outputs\": [\"23\\n227374950\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01018", "n_tests": 1, "public_tests": "{\"inputs\": [\"7 50\\n1 12 5 111 200 1000 10\"], \"outputs\": [\"4\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01023", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n3 10 2 5\\n2 20 5 10\"], \"outputs\": [\"1\\n0\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01028", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n3\\n474\\n2 1 1\\n34\\n6311861109697810998905373107116111\\n10 4 25\"], \"outputs\": [\"2\\n1\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01033", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n3 10 15 5 10 100\\n12 15 18\\n3 10 15 5 10 100\\n5 5 10\\n4 40 80 30 30 100\\n100 100 100 100\"], \"outputs\": [\"4\\nRIP\\n1\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01038", "n_tests": 1, "public_tests": "{\"inputs\": [\"7 1 5\\n1 1 2 2 3 3\\n3 5 4 2 7 9 1\\n1\\n2 3 100\\n1 1 100\\n2 1 100\\n4 5 100\\n4 7 100\"], \"outputs\": [\"6\\n6\\n6\\n20\\n16\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01043", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n2\"], \"outputs\": [\"3\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01048", "n_tests": 1, "public_tests": "{\"inputs\": [\"5\\n1 3 2 4 5\\n5\\n1 5\\n1 4\\n2 4\\n3 3\\n3 5\"], \"outputs\": [\"4\\n3\\n2\\n0\\n5\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01053", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\nGovernment clg Berhampore\\nSeRaMporE textile college\\nGirls college Kolkata\"], \"outputs\": [\"GCETTB\\nGCETTS\\nOthers\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01058", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\na\\nabba\"], \"outputs\": [\"0\\n2\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01063", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n3\\n-1 -1 -1\\n5\\n1 -1 -1 4 1\\n4\\n4 6 7 -1\"], \"outputs\": [\"inf\\n4\\nimpossible\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01068", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n(xy)2\\nx(x2y)3(z)2\"], \"outputs\": [\"12\\n46\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01073", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n10\\n178 184 178 177 171 173 171 183 171 175\"], \"outputs\": [\"5\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01078", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n12\\n3 1 2 3 2 0 2 2 2 0 2 3\\n11\\n3 9 9 6 4 3 6 4 9 6 0\"], \"outputs\": [\"33322222200\\n999666330\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01083", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\nabcd\\n4\\na b c d\\naabbbcccdddd\\n4\\na b c d\\nacd\\n3\\na b d\"], \"outputs\": [\"1\\n1\\n0\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01088", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n3 3 1 1 1 2\"], \"outputs\": [\"5\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01093", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n1 1 1 2 2 2\\n1 2 3 2 4 2\"], \"outputs\": [\"0\\n1\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01098", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n3\\n7\"], \"outputs\": [\"4\\n8\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01103", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n4\\naba\\nabc\\nbab\\naac\\n3\\naba\\nbaab\\nabc\"], \"outputs\": [\"1.1250000\\n0.0277778\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01108", "n_tests": 1, "public_tests": "{\"inputs\": [\"5 5 3\\n1 3 5\\n1 2 3\\n2 3 4\\n3 4 1\\n4 5 8\\n1 5 19\"], \"outputs\": [\"7\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01113", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n120 140\\n10213 312\\n10 30\"], \"outputs\": [\"20 840\\n1 3186456\\n10 30\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01118", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n3 4 5\\n1 3 4\"], \"outputs\": [\"YES\\nNO\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01123", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n1 1 1\\n1 2 1\\n4 5 2\"], \"outputs\": [\"0\\n1\\n3\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01128", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n2 3\"], \"outputs\": [\"6 4 3 3 2 1\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01133", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n24 1\"], \"outputs\": [\"34\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01138", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n1\\n2\"], \"outputs\": [\"1\\n5\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01143", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n3\\n3\\n3\"], \"outputs\": [\"12\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01148", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n2 1 1 2 2 1 2\\n3 1 1 1 3 1 2\"], \"outputs\": [\"2\\n4\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01153", "n_tests": 1, "public_tests": "{\"inputs\": [\"1\\n1 2 1\"], \"outputs\": [\"Yes\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01158", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\nwwwwwwwwww\\n3\\n+-+-+-+-+-\\n----------\\n+---------\\nwbwbwbwbwb\\n3\\n+-+-+-+-+-\\n+-+-------\\n----+-+-+-\\nbbbbbbbbbb\\n2\\n----------\\n----------\\n\\n\"], \"outputs\": [\"0\\n2\\n4\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01163", "n_tests": 1, "public_tests": "{\"inputs\": [[[[5]]]], \"outputs\": [[5]], \"testtype\": \"functional\", \"fn_name\": \"determinant\", \"starter_code\": \"\\ndef determinant(matrix):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01168", "n_tests": 5, "public_tests": "{\"inputs\": [[[\"C_Yellow\", \"E_Red\", \"G_Yellow\", \"B_Red\", \"D_Yellow\", \"B_Red\", \"B_Yellow\", \"G_Red\", \"C_Yellow\", \"C_Red\", \"D_Yellow\", \"F_Red\", \"E_Yellow\", \"A_Red\", \"A_Yellow\", \"G_Red\", \"A_Yellow\", \"F_Red\", \"F_Yellow\", \"D_Red\", \"B_Yellow\", \"E_Red\", \"D_Yellow\", \"A_Red\", \"G_Yellow\", \"D_Red\", \"D_Yellow\", \"C_Red\"]], [[\"C_Yellow\", \"B_Red\", \"B_Yellow\", \"E_Red\", \"D_Yellow\", \"G_Red\", \"B_Yellow\", \"G_Red\", \"E_Yellow\", \"A_Red\", \"G_Yellow\", \"C_Red\", \"A_Yellow\", \"A_Red\", \"D_Yellow\", \"B_Red\", \"G_Yellow\", \"A_Red\", \"F_Yellow\", \"B_Red\", \"D_Yellow\", \"A_Red\", \"F_Yellow\", \"F_Red\", \"B_Yellow\", \"F_Red\", \"F_Yellow\", \"G_Red\", \"A_Yellow\", \"F_Red\", \"C_Yellow\", \"C_Red\", \"G_Yellow\", \"C_Red\", \"D_Yellow\", \"D_Red\", \"E_Yellow\", \"D_Red\", \"E_Yellow\", \"C_Red\", \"E_Yellow\", \"E_Red\"]], [[\"F_Yellow\", \"G_Red\", \"D_Yellow\", \"C_Red\", \"A_Yellow\", \"A_Red\", \"E_Yellow\", \"D_Red\", \"D_Yellow\", \"F_Red\", \"B_Yellow\", \"E_Red\", \"C_Yellow\", \"D_Red\", \"F_Yellow\", \"D_Red\", \"D_Yellow\", \"F_Red\", \"G_Yellow\", \"C_Red\", \"F_Yellow\", \"E_Red\", \"A_Yellow\", \"A_Red\", \"C_Yellow\", \"B_Red\", \"E_Yellow\", \"C_Red\", \"E_Yellow\", \"G_Red\", \"A_Yellow\", \"A_Red\", \"G_Yellow\", \"C_Red\", \"B_Yellow\", \"E_Red\", \"F_Yellow\", \"G_Red\", \"G_Yellow\", \"B_Red\", \"B_Yellow\", \"B_Red\"]], [[\"A_Yellow\", \"B_Red\", \"B_Yellow\", \"C_Red\", \"G_Yellow\", \"C_Red\", \"C_Yellow\", \"D_Red\", \"G_Yellow\", \"D_Red\", \"G_Yellow\", \"D_Red\", \"F_Yellow\", \"E_Red\", \"D_Yellow\"]], [[\"A_Red\", \"B_Yellow\", \"A_Red\", \"B_Yellow\", \"A_Red\", \"B_Yellow\", \"G_Red\", \"B_Yellow\"]]], \"outputs\": [[\"Yellow\"], [\"Yellow\"], [\"Red\"], [\"Red\"], [\"Yellow\"]], \"testtype\": \"functional\", \"fn_name\": \"who_is_winner\", \"starter_code\": \"\\ndef who_is_winner(pieces_position_list):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01173", "n_tests": 50, "public_tests": "{\"inputs\": [[[2, 3], 0], [[3, 2, 5], 0], [[2, 3], 1], [[2, 3], 2], [[2, 3], 3], [[2, 3], 4], [[2, 3], 5], [[2, 3], 6], [[2, 3], 7], [[2, 3], 8], [[2, 3], 9], [[2, 3], 10], [[2, 3], 11], [[2, 3], 12], [[2, 3], 13], [[2, 3], 14], [[2, 3], 15], [[2, 3], 16], [[2, 3], 17], [[2, 3], 18], [[2, 3], 19], [[2, 3], 20], [[2, 3], 30], [[2, 3], 50], [[2, 3], 97], [[2, 3], 100], [[2, 3], 144], [[2, 3], 200], [[2, 3], 951], [[2, 3], 1000], [[5, 7, 8], 10], [[5, 7, 8], 11], [[2, 3, 4, 5], 33], [[2, 3, 4, 5], 100], [[3, 5, 7, 9, 11], 50], [[3, 5, 7, 9, 11], 70], [[3, 5, 7, 9, 11], 90], [[3, 2], 10], [[3, 2], 234], [[3, 2], 923], [[3, 2], 445], [[1, 3], 999], [[1, 5], 1000], [[5, 12], 519], [[14, 10], 56], [[2, 6], 416], [[10, 13], 741], [[3, 5], 351], [[5, 9], 246], [[8, 13], 864]], \"outputs\": [[1], [1], [3], [4], [7], [9], [10], [13], [15], [19], [21], [22], [27], [28], [31], [39], [40], [43], [45], [46], [55], [57], [91], [175], [406], [447], [706], [1051], [8013], [8488], [64], [65], [46], [139], [154], [226], [316], [22], [1339], [7537], [2983], [1000], [1001], [32961973], [304795], [37339], [3172655773], [58596], [1553901], [1727528929]], \"testtype\": \"functional\", \"fn_name\": \"n_linear\", \"starter_code\": \"\\ndef n_linear(m,n):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01178", "n_tests": 6, "public_tests": "{\"inputs\": [[[7, 11]], [[1, 7, 15]], [[2, 10]], [[687, 829, 998]], [[]], [[1]]], \"outputs\": [[59], [0], [-1], [45664], [-1], [0]], \"testtype\": \"functional\", \"fn_name\": \"survivor\", \"starter_code\": \"\\ndef survivor(zombies):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01183", "n_tests": 4, "public_tests": "{\"inputs\": [[3], [6], [12], [2]], \"outputs\": [[10], [30], [61], [4]], \"testtype\": \"functional\", \"fn_name\": \"productsum\", \"starter_code\": \"\\ndef productsum(n):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01188", "n_tests": 7, "public_tests": "{\"inputs\": [[24, 2], [100, 1], [20, 3], [1, 2], [1000000, 3], [10, 2], [36, 4]], \"outputs\": [[8], [1], [18], [1], [784], [4], [100]], \"testtype\": \"functional\", \"fn_name\": \"multiply\", \"starter_code\": \"\\ndef multiply(n, k):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01193", "n_tests": 4, "public_tests": "{\"inputs\": [[10, 3], [27, 3], [84, 4], [35, 6]], \"outputs\": [[[8, 118, 334]], [[1, 999, 999]], [[]], [[123, 116999, 566666]]], \"testtype\": \"functional\", \"fn_name\": \"find_all\", \"starter_code\": \"\\ndef find_all(sum_dig, digs):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01198", "n_tests": 7, "public_tests": "{\"inputs\": [[\"This is a string exemplification!\", 0], [\"String for test: incommensurability\", 1], [\"Ohh Man God Damn\", 7], [\"Ohh Man God Damnn\", 19], [\"I like it!\", 1234], [\"codingisfornerdsyounerd\", 10101010], [\"this_test_will_hurt_you\", 12345678987654321]], \"outputs\": [[\"This is a string exemplification!\"], [\"ySttirliinbga rfuosrn etmemsotc:n i\"], [\" nGOnmohaadhMD \"], [\"haG mnad MhO noDn\"], [\"iitkIl !e \"], [\"fonroisreinrddgdneyscou\"], [\"tt_rt_swuhyeihiotl_su_l\"]], \"testtype\": \"functional\", \"fn_name\": \"string_func\", \"starter_code\": \"\\ndef string_func(s, n):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01203", "n_tests": 9, "public_tests": "{\"inputs\": [[[6, 9, 21]], [[9]], [[30, 12]], [[11, 22]], [[1, 21, 55]], [[4, 16, 24]], [[3, 13, 23, 7, 83]], [[60, 12, 96, 48, 60, 24, 72, 36, 72, 72, 48]], [[71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71]]], \"outputs\": [[9], [9], [12], [22], [3], [12], [5], [132], [923]], \"testtype\": \"functional\", \"fn_name\": \"solution\", \"starter_code\": \"\\ndef solution(a):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01208", "n_tests": 19, "public_tests": "{\"inputs\": [\"010101\\n\", \"11001100\\n\", \"0\\n\", \"00\\n\", \"01\\n\", \"000\\n\", \"100\\n\", \"001\\n\", \"101\\n\", \"0000\\n\", \"0100101110\\n\", \"1101111000011110111111110101100111111110111100001111011010111001101100010110000001010101101010111000\\n\", \"1000\\n\", \"0010\\n\", \"1010\\n\", \"0001\\n\", \"1001\\n\", \"0011\\n\", \"1011\\n\"], \"outputs\": [\"3\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"3\\n\", \"16\\n\", \"4672\\n\", \"2\\n\", \"0\\n\", \"0\\n\", \"2\\n\", \"0\\n\", \"0\\n\", \"0\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01213", "n_tests": 15, "public_tests": "{\"inputs\": [\"3 1 3 1 2\\n\", \"7 2 3 1 3\\n\", \"1000 1 1000 1 1000\\n\", \"10 3 4 2 5\\n\", \"1000 1 68 1 986\\n\", \"1000 1 934 8 993\\n\", \"1000 1 80 2 980\\n\", \"1000 1 467 4 942\\n\", \"1000 739 920 1 679\\n\", \"1000 340 423 2 935\\n\", \"1 1 1 1 1\\n\", \"522 155 404 151 358\\n\", \"81 7 60 34 67\\n\", \"775 211 497 3 226\\n\", \"156 42 153 1 129\\n\"], \"outputs\": [\"4\\n\", \"105\\n\", \"465231251\\n\", \"0\\n\", \"567116057\\n\", \"671590509\\n\", \"6786109\\n\", \"999969801\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"269383946\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01218", "n_tests": 12, "public_tests": "{\"inputs\": [\"8\\n1 4\\n10 5\\n3 3\\n4 11\\n8 9\\n22 40\\n8 36\\n314159265 358979323\\n\", \"99\\n207579013 207579013\\n376140463 376140463\\n186969586 186969586\\n326402540 326402540\\n158176573 158176573\\n127860890 127860890\\n570870045 570870045\\n178509023 178509023\\n61263305 61263305\\n558212775 558212775\\n26389630 26389630\\n496148000 496148000\\n837151741 837151741\\n656585276 656585276\\n902071051 902071051\\n727123763 727123763\\n296231663 296231663\\n899374334 899374334\\n798571511 798571511\\n799313373 799313373\\n789204467 789204467\\n162733265 162733265\\n555253432 555253432\\n181457955 181457955\\n751354014 751354014\\n152040411 152040411\\n458000643 458000643\\n164556874 164556874\\n205461190 205461190\\n167035009 167035009\\n300206285 300206285\\n775142615 775142615\\n896205951 896205951\\n457641319 457641319\\n590064714 590064714\\n909420688 909420688\\n55434271 55434271\\n210461043 210461043\\n537850353 537850353\\n614794872 614794872\\n905203770 905203770\\n904237002 904237002\\n337246325 337246325\\n150625750 150625750\\n644505509 644505509\\n1738704 1738704\\n226102989 226102989\\n122173998 122173998\\n583502198 583502198\\n747545899 747545899\\n620479532 620479532\\n541326149 541326149\\n203959041 203959041\\n491192255 491192255\\n101365768 101365768\\n960570656 960570656\\n440998363 440998363\\n484916146 484916146\\n917826070 917826070\\n607465477 607465477\\n596079578 596079578\\n649320809 649320809\\n530909771 530909771\\n666130551 666130551\\n618524434 618524434\\n781321609 781321609\\n338249948 338249948\\n116584253 116584253\\n166308313 166308313\\n688253174 688253174\\n439133758 439133758\\n163916122 163916122\\n887651011 887651011\\n322205909 322205909\\n842842918 842842918\\n77623317 77623317\\n112541862 112541862\\n987809421 987809421\\n528855176 528855176\\n546812146 546812146\\n650982038 650982038\\n108056513 108056513\\n802439067 802439067\\n593571254 593571254\\n189607912 189607912\\n21890134 21890134\\n60051922 60051922\\n928042087 928042087\\n15765553 15765553\\n233605234 233605234\\n366127331 366127331\\n861562696 861562696\\n857043783 857043783\\n432087162 432087162\\n71055043 71055043\\n588455136 588455136\\n867602751 867602751\\n961242387 961242387\\n387771815 387771815\\n\", \"98\\n153203339 153203340\\n778377584 778377585\\n703186338 703186339\\n53312704 53312703\\n781534200 781534199\\n399552959 399552960\\n182061002 182061003\\n228141366 228141365\\n472301827 472301826\\n430648520 430648519\\n669286311 669286312\\n927216003 927216002\\n28692073 28692074\\n33339990 33339989\\n431545624 431545625\\n939969171 939969172\\n851655467 851655466\\n611182710 611182709\\n10986041 10986040\\n827862935 827862934\\n779079810 779079809\\n575075190 575075189\\n211940198 211940199\\n911405559 911405560\\n662413805 662413804\\n846206435 846206434\\n87516990 87516989\\n330156388 330156387\\n206036265 206036264\\n695392393 695392392\\n295261852 295261853\\n398615495 398615496\\n248748594 248748593\\n24601206 24601207\\n9940127 9940128\\n445134161 445134162\\n750824260 750824261\\n574966008 574966007\\n279164579 279164578\\n93898861 93898862\\n927952095 927952096\\n692477850 692477849\\n936211525 936211524\\n472616393 472616392\\n459249086 459249087\\n830572586 830572585\\n734324577 734324576\\n52046928 52046927\\n695371488 695371487\\n463536819 463536820\\n702243862 702243861\\n148656433 148656432\\n497589120 497589119\\n367803782 367803781\\n57022144 57022145\\n764116952 764116951\\n667023643 667023642\\n608970028 608970029\\n264619514 264619515\\n719217138 719217137\\n857661295 857661294\\n675902582 675902581\\n542817957 542817958\\n9719149 9719148\\n784365687 784365688\\n688620652 688620653\\n479234013 479234012\\n645203572 645203571\\n356952178 356952179\\n459021408 459021407\\n534233339 534233340\\n4860790 4860789\\n888331742 888331741\\n698565084 698565083\\n27652514 27652515\\n971368734 971368735\\n933552501 933552502\\n5127855 5127854\\n125553579 125553578\\n622876764 622876765\\n719103542 719103543\\n71047395 71047396\\n416880435 416880436\\n30920284 30920285\\n129735006 129735007\\n817164487 817164486\\n457827994 457827993\\n804626056 804626057\\n990016105 990016106\\n527093991 527093992\\n274625657 274625656\\n593594001 593594000\\n756056854 756056853\\n981626899 981626898\\n424066480 424066479\\n942690 942689\\n166168415 166168414\\n371382612 371382613\\n\", \"100\\n342421272 250204768\\n275903100 36659799\\n23319666 57339784\\n98115328 6489103\\n26107200 173427325\\n181267950 312932352\\n99942128 122619068\\n109357697 177261632\\n200427200 111950528\\n60761421 170931789\\n307279902 286391118\\n84529575 118621503\\n98569494 1275264\\n496605780 77973005\\n15976960 3893760\\n286645920 261393000\\n120408704 159394976\\n322009348 2124688\\n60920475 43947819\\n3746736 823504064\\n2621808 8164800\\n1798067 97686272\\n136305625 248850625\\n229074944 138661544\\n3214941 23241876\\n424622640 68214960\\n14941465 92061585\\n253853905 233512000\\n11504801 12768161\\n27177512 22625000\\n177326496 46769850\\n461012011 28880064\\n443280012 178547712\\n517405050 185587872\\n229641080 644213630\\n43799112 23688\\n47189826 2105344\\n623492865 429926625\\n63700992 39269772\\n663533021 618561104\\n211631616 152829824\\n13329441 7536609\\n712787796 58847796\\n508608 53002075\\n2292144 160500876\\n1373328 15169572\\n644899878 4236800\\n596464350 994734\\n473472 9062550\\n380880000 262663200\\n298021698 46773792\\n26929620 429998605\\n130014150 12615000\\n199999600 324622576\\n479581280 326798720\\n111297368 186368\\n392608125 90843893\\n199756800 254803968\\n217306400 74847776\\n92145600 209637639\\n394902288 374667953\\n177917432 40077792\\n115046316 4762604\\n25408640 257882210\\n529767500 159335867\\n115843608 80779032\\n306587655 36353295\\n2593537 2108425\\n707917504 191049579\\n171101952 100800\\n522956980 714328020\\n134571668 39034688\\n1152 4829832\\n132720665 21765065\\n25609662 67462200\\n177949964 151926284\\n70592582 155998208\\n11667520 325628545\\n442352768 126850592\\n495870336 311619224\\n8251425 137494672\\n19193161 37173409\\n114525373 87800413\\n1474742 1923750\\n50171537 229321508\\n443787433 6606073\\n25295627 133188300\\n501993 41731425\\n1100800 165863728\\n1710720 61585920\\n54271888 1350628\\n268984161 226574596\\n298248000 508610880\\n6439850 15863306\\n5009724 48981519\\n161240540 39017340\\n262773344 210364256\\n71500 441724140\\n527494012 60299200\\n481235532 311739072\\n\", \"99\\n79923898 900\\n2202127 278\\n12888042 751\\n1282655 424\\n30631554 239\\n825772306 995\\n306234 105\\n480056952 991\\n413861995 614\\n636799913 754\\n569 474301674\\n802 759277631\\n237 144931970\\n710 216340392\\n791 665144116\\n91107497 748\\n823 439779834\\n918 618770459\\n3468168 669\\n632716 807\\n170 6332523\\n230527944 549\\n452764578 685\\n136 473475\\n86400300 960\\n658 585126785\\n754 21535163\\n181070490 407\\n774 27356444\\n224 4774930\\n303599420 547\\n2788368 10\\n104363358 982\\n35221931 52\\n830 650077635\\n1020474 425\\n735680880 950\\n99 32732450\\n324731814 433\\n970 156756282\\n45058686 457\\n97401151 132\\n801 745912190\\n93437542 668\\n908 117024307\\n485972354 648\\n105566912 213\\n334 332000003\\n6137095 680\\n767 18190326\\n337 232719888\\n856 85477052\\n318945008 564\\n62580999 700\\n222 45556851\\n198 56461422\\n18 4182314\\n726 544468922\\n260738166 710\\n6447728 514\\n194158716 480\\n310131510 319\\n92766804 203\\n14031181 632\\n5795685 318\\n1325854 263\\n439 48680604\\n1582945 314\\n44 203524\\n179438160 512\\n1642578 19\\n724 600863715\\n394699620 587\\n9614010 218\\n226 8505930\\n736 536571\\n121 42981732\\n81730780 566\\n62313930 157\\n225 179828994\\n464 416999604\\n404 64964005\\n73534632 255\\n873 90516454\\n69310 693\\n311 215800312\\n177 34423578\\n583392264 853\\n507 12180830\\n149719 518\\n653 51929454\\n58415430 269\\n146931332 976\\n1271745 628\\n740 278977654\\n511 467999796\\n701 220619982\\n398 98310079\\n4548244 338\\n\", \"98\\n682582034 9480858\\n857223175 395011806\\n343124157 346019554\\n536293122 874416351\\n749078689 294344339\\n258447755 392529770\\n574773516 238110922\\n75949591 50330840\\n539580840 584701118\\n423924791 82319314\\n697716494 714922949\\n828921039 61328381\\n268136346 40206233\\n206191219 465776880\\n285260154 229755362\\n582039598 858648900\\n872437744 34362633\\n36944170 925370183\\n780437797 332348157\\n703728723 358334511\\n115916040 587271024\\n880816094 531213803\\n681109409 342227225\\n303766813 307214632\\n591142707 944846761\\n419309641 237986269\\n466908021 801668910\\n435609124 890707078\\n15958123 59422284\\n384650586 643020308\\n645373679 119899476\\n282255764 35680439\\n912166219 251653050\\n56462137 964982388\\n799400558 147741053\\n104940747 251193502\\n907846406 590598434\\n965967250 42209925\\n359423419 631957781\\n590888833 11421546\\n403253644 294346078\\n273393193 967547874\\n955882932 948389468\\n475553810 17381202\\n170113132 718477075\\n72162677 171199126\\n920587775 290562484\\n673072958 71071438\\n70762340 313880861\\n518100074 692835420\\n929594266 943870479\\n43445914 918279977\\n690978143 602808468\\n32925808 533486496\\n946013151 126914792\\n801194842 45180601\\n770895414 551306762\\n854185644 412688186\\n329041614 410718973\\n68952621 828806142\\n129222118 348647764\\n654649853 93411693\\n774102818 394427196\\n335496356 526290753\\n173659689 384304372\\n655083255 187360503\\n46586241 225046156\\n39357697 817306561\\n872988585 369043937\\n315413220 576210687\\n430883447 186626264\\n274043436 50391231\\n849269940 45915609\\n24648841 397707614\\n656272885 48357007\\n29282702 33245857\\n42397917 376694972\\n278327699 370260523\\n305221326 788722211\\n499338696 434248000\\n204209329 756559830\\n499978302 405281046\\n580748171 597646907\\n404724492 365590154\\n347059295 68726333\\n912416936 480109849\\n711253955 477696854\\n929193326 282608437\\n331036623 637939123\\n409250311 442071096\\n391600713 887679649\\n598906290 251421933\\n297729933 57407166\\n14270774 493897213\\n49544574 387934881\\n422799495 34615835\\n975745365 740112157\\n411206913 434037289\\n\", \"100\\n41 60\\n89 29\\n11 59\\n41 43\\n7 32\\n41 47\\n19 59\\n3 67\\n74 91\\n99 10\\n29 44\\n35 36\\n61 44\\n84 14\\n3 70\\n1 18\\n42 79\\n96 8\\n37 4\\n64 12\\n1 14\\n27 28\\n66 2\\n48 28\\n94 69\\n61 99\\n86 79\\n83 33\\n33 9\\n59 30\\n88 18\\n98 97\\n66 47\\n95 57\\n87 83\\n48 44\\n61 39\\n16 13\\n7 65\\n3 45\\n5 10\\n22 83\\n20 79\\n17 44\\n66 36\\n85 84\\n88 100\\n68 49\\n20 55\\n74 9\\n94 6\\n47 39\\n21 15\\n56 72\\n21 72\\n54 6\\n67 10\\n81 33\\n88 90\\n88 62\\n8 19\\n41 51\\n23 1\\n38 29\\n32 42\\n74 3\\n61 15\\n84 80\\n42 95\\n56 75\\n68 99\\n87 65\\n31 42\\n92 81\\n70 76\\n57 7\\n11 75\\n67 35\\n96 5\\n57 49\\n4 60\\n72 29\\n85 4\\n43 68\\n92 91\\n23 14\\n58 42\\n64 45\\n63 58\\n29 22\\n15 25\\n82 1\\n15 47\\n91 56\\n20 48\\n100 25\\n27 63\\n15 33\\n85 95\\n75 34\\n\", \"99\\n675327540 672524204\\n497075416 898369316\\n178150518 341282365\\n585178897 322660866\\n806624377 806624377\\n666275660 666275660\\n23941449 139287204\\n79 55\\n4845273 4845273\\n16 1\\n18 58\\n716746526 716746525\\n196148982 196148982\\n897690387 897690387\\n544160979 714\\n401539995 401539995\\n33 92\\n99 72\\n4483003 4483004\\n402199659 539487719\\n30296448 15838550\\n93 74\\n198216141 10102164\\n510 56214572\\n974839853 763383053\\n537600792 537600792\\n710797277 710797277\\n1537464 391500000\\n91 82\\n781708445 332471457\\n388 386450550\\n567305716 567305716\\n31 52\\n85 7\\n725775109 810860286\\n2966801 39779225\\n64373184 64373183\\n363916229 363916228\\n52379125 4264960\\n270176220 785733743\\n4902215 132826140\\n75 95\\n697990169 697990169\\n695 551748186\\n118551030 8806317\\n761 30440200\\n632816351 632816352\\n968689187 968689188\\n232 85762656\\n11 34\\n68429858 92269500\\n453192250 631418479\\n74 89\\n27196928 574634318\\n406 9013755\\n24685480 24685480\\n97 22\\n51 23\\n2427600 9653364\\n74 52\\n298423445 298423445\\n18911232 525312\\n623567589 623567589\\n37200038 150198144\\n732120438 732120437\\n263602540 28064140\\n251687912 414807050\\n89690858 89690859\\n62 93\\n626193809 626193810\\n843421137 843421138\\n58 63\\n90 53\\n59 47\\n122676939 1849536\\n759422597 759422597\\n249662339 54810196\\n469952087 469952086\\n234567403 234567403\\n726 109859435\\n74425844 31647581\\n28185666 307\\n214598981 297461336\\n922001569 922001568\\n16 98\\n666583124 666583124\\n13068123 163824990\\n406 30927732\\n30 100\\n210525716 210525717\\n31 28\\n6 9\\n146429495 146429496\\n516303374 516303374\\n47788103 266213241\\n711638585 711638586\\n311 215282496\\n22499325 131116288\\n187211250 20801250\\n\", \"98\\n71744790 402418520\\n978001001 978001000\\n840052802 430653505\\n92515890 92515890\\n195079104 198542711\\n4526652 186\\n662450618 974077607\\n30492770 763852320\\n22875250 366\\n611661121 441892303\\n33 70\\n74 66\\n161791875 44391875\\n483575 20844992\\n72 12\\n241567992 586773823\\n918198470 979952853\\n574265812 726395239\\n75 4538946\\n69207408 69207408\\n83 41\\n648869928 648869928\\n57 57\\n473473324 37272848\\n158496268 158496268\\n14 20\\n730789452 845656502\\n177879872 124717268\\n991744361 967036516\\n166 104389727\\n70421727 70421728\\n799677321 799677321\\n725267321 725267320\\n40316131 22203811\\n528119945 350234851\\n46 96\\n53 33\\n48263690 50075871\\n932 201522165\\n200019028 385938432\\n866 106692417\\n49579813 620653437\\n973317354 973317354\\n750718122 750718121\\n864863012 17284019\\n520 164239442\\n920885463 920885463\\n215358518 572277810\\n23968256 7583706\\n460792028 550884642\\n729 492830\\n540682956 166614048\\n21305889 21305890\\n852539989 852539989\\n60552000 131276880\\n119193866 119193867\\n26690916 797\\n147348091 410830968\\n382960239 507644799\\n227020910 227020911\\n313764 18\\n6 3\\n876298605 876298606\\n70 70\\n469606179 469606180\\n365584790 919221115\\n456426204 140199364\\n708548232 983\\n278645816 792053476\\n21 82\\n800693574 800693573\\n365783040 278784000\\n1751088 35997888\\n81589227 69788196\\n799125174 799125174\\n343477007 343477006\\n33 12\\n820266679 194826237\\n3840100 384\\n346123366 566\\n925 92952642\\n173462896 173462897\\n956988850 956988850\\n27 29\\n617 555330\\n51294584 834\\n728540366 958798108\\n312824679 312824679\\n715873188 715873187\\n49 63\\n27341120 267\\n73 90\\n869183947 869183947\\n19125838 139737088\\n150462103 35263415\\n450 258554558\\n4712519 40724775\\n689 13504540\\n\", \"100\\n37882 56\\n23348596 23348597\\n66964743 66964743\\n872393938 872393937\\n79 69\\n349057774 402285893\\n436340579 436340580\\n231948288 10955412\\n705530638 705530638\\n6 35\\n86461132 12078700\\n110 84798118\\n647801830 647801831\\n76962776 61551576\\n957803433 252932498\\n16205280 641\\n961538871 961538872\\n231747642 171716328\\n117951526 379646134\\n7267165 33456085\\n82258077 522380480\\n16 16\\n42850830 42850831\\n244483456 224131894\\n350 19992589\\n215 20661810\\n26153481 122\\n477820591 477820592\\n2528470 516\\n2945488 3095872\\n128446642 855658593\\n44712051 968519612\\n32443488 21718368\\n43 90\\n541468232 49183362\\n813594538 813594539\\n377172800 426320192\\n60575631 60575631\\n473791816 473791817\\n360506203 360506204\\n49280670 676\\n350801850 481\\n121828608 94897172\\n701788138 221720993\\n935119877 935119876\\n724357167 724357168\\n128277108 632101167\\n658411361 658411362\\n646013952 178806612\\n56 57\\n28064501 185760909\\n565875769 565875768\\n638367880 991838538\\n354118118 795963780\\n73478016 73478016\\n68596622 68596621\\n575315212 399884\\n62388478 62388479\\n201494948 201494948\\n82 40\\n82 8\\n40021305 797460324\\n26 100\\n955 65055816\\n480722501 109436058\\n253236091 253236090\\n316846080 50519500\\n678329903 973699982\\n15925248 9806592\\n631777057 501037819\\n401093478 60162048\\n422349611 422349611\\n479730381 479730382\\n165288216 165288215\\n6 60\\n82061189 573453125\\n112377358 112377358\\n188743780 535017411\\n890 791432553\\n943673388 858585956\\n87643510 912\\n214551060 247\\n118822156 501\\n993533949 671364548\\n196716059 482435813\\n865903925 865903925\\n987004820 987004820\\n53806619 80693739\\n49689515 49689515\\n253554918 253554918\\n77236918 759\\n582435 14068460\\n27997420 27997421\\n67960418 67960418\\n309719484 917401142\\n666293310 666293309\\n89 17\\n503657418 503657418\\n66 37\\n512767278 56748909\\n\", \"99\\n225497868 1086828\\n642 91247195\\n35019270 397\\n1181004 610\\n881384110 881384111\\n182998419 480459607\\n531433416 908325859\\n560454384 560454384\\n699459065 699459064\\n100641792 414892800\\n75 89\\n317697269 210740095\\n78 100\\n22266720 444528000\\n13803440 130371500\\n201757866 448355653\\n83627271 430\\n381375065 381375065\\n51 41\\n61 43\\n527538370 527538369\\n100 1\\n888370649 888370649\\n407 161026516\\n230772880 145626345\\n563823120 563823120\\n697738155 697738154\\n2794045 2794045\\n122451200 86564052\\n877590646 877590646\\n287490 17177160\\n158714127 686\\n43 68\\n196827229 196827230\\n629313965 629313966\\n42 51\\n787799974 125030923\\n16 75\\n925227771 916923008\\n517801385 517801385\\n2399544 8107694\\n763584400 476417476\\n77 56\\n519303810 519303811\\n472164347 472164347\\n27513510 27513510\\n146988073 146988073\\n864 851947329\\n561491781 561491781\\n755799 694\\n686138853 686138852\\n980 11643489\\n725269597 725269597\\n38357785 38357784\\n63 82\\n40093867 150\\n38 20\\n252968331 252968332\\n60601902 375\\n610106345 610106346\\n23263216 23263216\\n404505620 410947790\\n645003643 645413353\\n641293515 641293516\\n85 70\\n78128469 13688125\\n82 30\\n499585900 499585899\\n289525858 16087372\\n43 91\\n32111238 32111238\\n681484580 741\\n542391811 542391811\\n98 2\\n821357242 821357242\\n881926236 881926237\\n422131412 869958795\\n75 89\\n10210364 25339100\\n46310506 46310507\\n147026157 479666616\\n274544724 142934580\\n97 46\\n672767048 672767049\\n879185915 879185915\\n973233835 298781525\\n41538115 47694640\\n85503774 66885600\\n4704237 133809408\\n632345530 632345530\\n476616101 679200587\\n83 37\\n117742335 292\\n44358904 4477824\\n5079911 669559388\\n292858879 292858878\\n326484452 83835968\\n75 14\\n786217715 786217715\\n\", \"10\\n1 1\\n1 2\\n1 3\\n1 4\\n1 5\\n1 6\\n1 7\\n1 8\\n1 9\\n1 10\\n\"], \"outputs\": [\"1\\n12\\n4\\n11\\n14\\n57\\n31\\n671644785\\n\", \"415158024\\n752280924\\n373939170\\n652805078\\n316353144\\n255721778\\n1141740088\\n357018044\\n122526608\\n1116425548\\n52779258\\n992295998\\n1674303480\\n1313170550\\n1804142100\\n1454247524\\n592463324\\n1798748666\\n1597143020\\n1598626744\\n1578408932\\n325466528\\n1110506862\\n362915908\\n1502708026\\n304080820\\n916001284\\n329113746\\n410922378\\n334070016\\n600412568\\n1550285228\\n1792411900\\n915282636\\n1180129426\\n1818841374\\n110868540\\n420922084\\n1075700704\\n1229589742\\n1810407538\\n1808474002\\n674492648\\n301251498\\n1289011016\\n3477406\\n452205976\\n244347994\\n1167004394\\n1495091796\\n1240959062\\n1082652296\\n407918080\\n982384508\\n202731534\\n1921141310\\n881996724\\n969832290\\n1835652138\\n1214930952\\n1192159154\\n1298641616\\n1061819540\\n1332261100\\n1237048866\\n1562643216\\n676499894\\n233168504\\n332616624\\n1376506346\\n878267514\\n327832242\\n1775302020\\n644411816\\n1685685834\\n155246632\\n225083722\\n1975618840\\n1057710350\\n1093624290\\n1301964074\\n216113024\\n1604878132\\n1187142506\\n379215822\\n43780266\\n120103842\\n1856084172\\n31531104\\n467210466\\n732254660\\n1723125390\\n1714087564\\n864174322\\n142110084\\n1176910270\\n1735205500\\n1922484772\\n775543628\\n\", \"306406676\\n1556755166\\n1406372674\\n106625404\\n1563068396\\n799105916\\n364122002\\n456282728\\n944603650\\n861297036\\n1338572620\\n1854432002\\n57384144\\n66679976\\n863091246\\n1879938340\\n1703310930\\n1222365416\\n21972078\\n1655725866\\n1558159616\\n1150150376\\n423880394\\n1822811116\\n1324827606\\n1692412866\\n175033976\\n660312772\\n412072526\\n1390784782\\n590523702\\n797230988\\n497497184\\n49202410\\n19880252\\n890268320\\n1501648518\\n1149932012\\n558329154\\n187797720\\n1855904188\\n1384955696\\n1872423046\\n945232782\\n918498170\\n1661145168\\n1468649150\\n104093852\\n1390742972\\n927073636\\n1404487720\\n297312862\\n995178236\\n735607560\\n114044286\\n1528233900\\n1334047282\\n1217940054\\n529239026\\n1438434272\\n1715322586\\n1351805160\\n1085635912\\n19438294\\n1568731372\\n1377241302\\n958468022\\n1290407140\\n713904354\\n918042812\\n1068466676\\n9721576\\n1776663480\\n1397130164\\n55305026\\n1942737466\\n1867105000\\n10255706\\n251107154\\n1245753526\\n1438207082\\n142094788\\n833760868\\n61840566\\n259470010\\n1634328970\\n915655984\\n1609252110\\n1980032208\\n1054187980\\n549251310\\n1187187998\\n1512113704\\n1963253794\\n848132956\\n1885376\\n332336826\\n742765222\\n\", \"585407325\\n201142257\\n73133973\\n50465053\\n134576397\\n476338557\\n221402893\\n278459501\\n299585917\\n203824023\\n593303409\\n200270067\\n22423389\\n393557337\\n15774717\\n547456797\\n277074301\\n52313261\\n103485687\\n111093693\\n9253437\\n26506333\\n368346247\\n356448509\\n17288289\\n340385757\\n74176407\\n486941197\\n24240059\\n49593997\\n182137677\\n230773101\\n562660221\\n619755117\\n769253957\\n2037165\\n19934973\\n1035482847\\n100030461\\n1281305141\\n359686653\\n20045823\\n409614405\\n10384077\\n38360973\\n9128589\\n104543037\\n48716457\\n4142877\\n632591997\\n236132205\\n215218017\\n80996997\\n509605277\\n791774077\\n9108733\\n377709147\\n451215357\\n255067837\\n277972557\\n769304181\\n168885021\\n46815381\\n161894237\\n581071297\\n193470765\\n211144227\\n4676867\\n735519789\\n8305917\\n1222395717\\n144954653\\n149181\\n107492767\\n83130837\\n328848149\\n209879165\\n123276557\\n473762429\\n786187581\\n67365477\\n53421911\\n200552983\\n3368697\\n214526569\\n108290203\\n116087577\\n9153987\\n27024637\\n20528637\\n17123213\\n493740729\\n778953597\\n20214577\\n31329465\\n158633877\\n470225981\\n11239797\\n356692957\\n774648093\\n\", \"536398\\n49482\\n196760\\n46638\\n171122\\n1812888\\n11338\\n1379470\\n1008186\\n1385850\\n1038992\\n1560690\\n370666\\n783838\\n1450692\\n522102\\n1203224\\n1507354\\n96334\\n45190\\n65618\\n711502\\n1113808\\n16046\\n575998\\n1240986\\n254850\\n542936\\n291022\\n65406\\n815028\\n10558\\n640262\\n85590\\n1469098\\n41648\\n1671998\\n113848\\n749954\\n779878\\n286994\\n226774\\n1545928\\n499662\\n651942\\n1122334\\n299902\\n665994\\n129198\\n236234\\n560092\\n540990\\n848254\\n418598\\n201130\\n211462\\n17350\\n1257430\\n860518\\n115134\\n610558\\n629066\\n274454\\n188334\\n85858\\n37344\\n292372\\n44586\\n5982\\n606206\\n11170\\n1319126\\n962678\\n91558\\n87686\\n39742\\n144230\\n430158\\n197818\\n402298\\n879742\\n324006\\n273868\\n562210\\n13858\\n518124\\n156112\\n1410860\\n157168\\n17610\\n368290\\n250706\\n757374\\n56518\\n908718\\n978052\\n786520\\n395610\\n78414\\n\", \"160890809\\n1163809732\\n689137626\\n1369588950\\n939121015\\n637019425\\n739891481\\n123654463\\n1123376195\\n373615832\\n1412534646\\n450938509\\n207660802\\n619803523\\n512015817\\n1413884944\\n346290384\\n369794715\\n1018581489\\n1004331194\\n521820394\\n1368066761\\n965596565\\n610971714\\n1494709698\\n631790903\\n1223610465\\n1245793126\\n61587922\\n994662027\\n556345092\\n200708837\\n958226299\\n466840303\\n687326063\\n324717929\\n1464476239\\n403848510\\n953185030\\n164302937\\n689046088\\n1028632104\\n1904257654\\n181831753\\n699206363\\n222298781\\n1034385362\\n437430051\\n298066730\\n1198262210\\n1873410348\\n399477220\\n1290778795\\n265069603\\n693002342\\n380517879\\n1303840255\\n1187454963\\n735237738\\n478114443\\n424513849\\n494578408\\n1105128413\\n840401401\\n516674664\\n700676037\\n204783341\\n358704912\\n1135202436\\n852629972\\n567147837\\n235026686\\n394941748\\n198020519\\n356288602\\n62402835\\n252753491\\n642039745\\n981294732\\n931314832\\n786121045\\n900292681\\n1178273901\\n769319929\\n308882582\\n1323722563\\n1165785186\\n1024886086\\n919089140\\n850688503\\n1179179345\\n776088078\\n261471462\\n167908252\\n277272920\\n241955014\\n1699601135\\n844935815\\n\", \"97\\n99\\n48\\n81\\n27\\n85\\n64\\n26\\n162\\n60\\n69\\n68\\n101\\n66\\n26\\n6\\n113\\n53\\n22\\n53\\n5\\n52\\n20\\n71\\n159\\n153\\n162\\n102\\n32\\n82\\n77\\n192\\n109\\n145\\n167\\n89\\n95\\n26\\n40\\n21\\n12\\n83\\n77\\n52\\n95\\n166\\n185\\n113\\n64\\n49\\n45\\n83\\n33\\n124\\n75\\n33\\n49\\n101\\n175\\n145\\n22\\n89\\n7\\n64\\n71\\n27\\n58\\n161\\n124\\n127\\n162\\n148\\n70\\n170\\n143\\n37\\n55\\n94\\n41\\n103\\n28\\n89\\n34\\n106\\n180\\n33\\n96\\n105\\n118\\n48\\n36\\n16\\n51\\n140\\n59\\n97\\n80\\n42\\n177\\n98\\n\", \"1347848826\\n1336498859\\n493151618\\n869055415\\n1613248752\\n1332551318\\n115494369\\n129\\n9690544\\n5\\n62\\n1433493048\\n392297962\\n1795380772\\n1246642\\n803079988\\n108\\n166\\n8966004\\n931626053\\n43811037\\n163\\n89496633\\n338638\\n1725312981\\n1075201582\\n1421594552\\n49067997\\n170\\n1019599420\\n774446\\n1134611430\\n78\\n46\\n1534277955\\n21727127\\n128746364\\n727832454\\n29892797\\n921491338\\n51034977\\n166\\n1395980336\\n1238488\\n64621912\\n304398\\n1265632700\\n1937378372\\n282110\\n36\\n158921221\\n1069867206\\n160\\n250026301\\n120986\\n49370958\\n90\\n66\\n9681837\\n122\\n596846888\\n6303741\\n1247135176\\n149497511\\n1464240872\\n172020677\\n646225717\\n179381714\\n149\\n1252387616\\n1686842272\\n118\\n136\\n103\\n30126093\\n1518845192\\n233957615\\n939904170\\n469134804\\n564826\\n97064881\\n186040\\n505311385\\n1844003134\\n77\\n1333166246\\n92539397\\n224110\\n107\\n421051430\\n56\\n12\\n292858988\\n1032606746\\n225582140\\n1423277168\\n517502\\n108628317\\n124807497\\n\", \"339831910\\n1956001998\\n1202949179\\n185031778\\n393606573\\n58030\\n1606584340\\n305234157\\n182998\\n1039785247\\n94\\n137\\n169496247\\n6349837\\n56\\n752982797\\n1897146497\\n1291733641\\n36898\\n138414814\\n114\\n1297739854\\n112\\n265689284\\n316992534\\n31\\n1572255513\\n297890525\\n1958625037\\n263274\\n140843452\\n1599354640\\n1450534638\\n59838839\\n860153496\\n130\\n81\\n98322860\\n866758\\n555679869\\n607930\\n350838315\\n1946634706\\n1501436240\\n244526550\\n584478\\n1841770924\\n702125061\\n26964285\\n1007657184\\n37906\\n600284517\\n42611776\\n1705079976\\n178315197\\n238387730\\n291700\\n492077873\\n881833935\\n454041818\\n4750\\n6\\n1752597208\\n138\\n939212356\\n1159402013\\n505927516\\n1669132\\n939579451\\n80\\n1601387144\\n638668797\\n15878973\\n150916729\\n1598250346\\n686954010\\n37\\n799523532\\n76798\\n885222\\n586448\\n346925790\\n1913977698\\n53\\n37018\\n413662\\n1671553915\\n625649356\\n1431746372\\n109\\n170878\\n160\\n1738367892\\n103394173\\n145681947\\n682198\\n27706767\\n192918\\n\", \"2910\\n46697190\\n133929484\\n1744787872\\n145\\n749455849\\n872681156\\n100818429\\n1411061274\\n26\\n64632437\\n193158\\n1295603658\\n137654349\\n984397508\\n203836\\n1923077740\\n398972949\\n423224953\\n31185307\\n414584193\\n30\\n85701658\\n468173213\\n167298\\n133298\\n112970\\n955641180\\n72238\\n6039485\\n663042901\\n416194655\\n53089341\\n122\\n326381541\\n1627189074\\n801988477\\n121151260\\n947583630\\n721012404\\n365038\\n821546\\n215045949\\n788926262\\n1870239750\\n1448714332\\n569505431\\n1316822720\\n679739848\\n110\\n144406191\\n1131751534\\n1591424347\\n1061819560\\n146956030\\n137193240\\n30335412\\n124776954\\n402989894\\n112\\n49\\n357297648\\n99\\n498508\\n458730313\\n506472178\\n253036797\\n1625410486\\n24993789\\n1125245213\\n310680573\\n844699220\\n959460760\\n330576428\\n35\\n433858247\\n224754714\\n635550809\\n1678538\\n1800249667\\n565438\\n460406\\n487972\\n1633430095\\n616126192\\n1731807848\\n1974009638\\n131785539\\n99379028\\n507109834\\n484240\\n5725017\\n55994838\\n135920834\\n1066090066\\n1332586616\\n75\\n1007314834\\n96\\n341168481\\n\", \"31309893\\n484066\\n235816\\n53678\\n1762768218\\n593037428\\n1389553471\\n1120908766\\n1398918126\\n408683517\\n161\\n517499959\\n174\\n198979197\\n84842797\\n601528982\\n379258\\n762750128\\n89\\n100\\n1055076736\\n17\\n1776741296\\n512004\\n366642117\\n1127646238\\n1395476306\\n5588088\\n205911357\\n1755181290\\n4444437\\n659930\\n106\\n393654456\\n1258627928\\n90\\n627692145\\n67\\n1842132057\\n1035602768\\n8821509\\n1206291757\\n129\\n1038607618\\n944328692\\n55027018\\n293976144\\n1715902\\n1122983560\\n45802\\n1372277702\\n213638\\n1450539192\\n76715566\\n141\\n155098\\n53\\n505936660\\n301498\\n1220212688\\n46526430\\n815427960\\n1290416928\\n1282587028\\n152\\n65404347\\n97\\n999171796\\n136494835\\n123\\n64222474\\n1421236\\n1084783620\\n25\\n1642714482\\n1763852470\\n1212001540\\n161\\n32169637\\n92621010\\n531125366\\n396191541\\n131\\n1345534094\\n1758371828\\n1078488364\\n89020117\\n151247757\\n50178525\\n1264691058\\n1137924311\\n108\\n370838\\n28187325\\n116641364\\n585717754\\n330884509\\n62\\n1572435428\\n\", \"0\\n0\\n1\\n1\\n2\\n2\\n3\\n3\\n3\\n4\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01223", "n_tests": 10, "public_tests": "{\"inputs\": [\"ababa\\naba\\n\", \"welcometoroundtwohundredandeightytwo\\nd\\n\", \"ddd\\nd\\n\", \"vnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssn\\nnssnssns\\n\", \"kpjmawawawawawawawawawawawawawawawawawawawawawawaw\\nwawawawa\\n\", \"vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv\\nvvvvvvvv\\n\", \"a\\na\\n\", \"a\\naa\\n\", \"a\\nb\\n\", \"ababababab\\nabab\\n\"], \"outputs\": [\"5\\n\", \"274201\\n\", \"12\\n\", \"943392\\n\", \"834052\\n\", \"2728075\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"35\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01228", "n_tests": 10, "public_tests": "{\"inputs\": [\"6 3\\n3 3 1 4 1 6\\n\", \"3 3\\n1 1 1\\n\", \"3 3\\n1 1 2\\n\", \"3 1\\n1 10 100\\n\", \"1 1\\n3\\n\", \"2 1\\n1 3\\n\", \"2 1\\n3 3\\n\", \"2 2\\n3 1\\n\", \"2 2\\n1 3\\n\", \"4 2\\n2 1 3 1\\n\"], \"outputs\": [\"Yes\\n2 3 1 \", \"Yes\\n1 1 1 \", \"No\", \"Yes\\n3 \", \"Yes\\n1 \", \"Yes\\n2 \", \"Yes\\n2 \", \"No\", \"No\", \"No\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01233", "n_tests": 7, "public_tests": "{\"inputs\": [\"4 4\\n1 2\\n2 3\\n3 4\\n4 1\\n\", \"4 3\\n2 1\\n2 3\\n4 3\\n\", \"10 20\\n2 1\\n7 9\\n10 2\\n4 9\\n3 1\\n6 4\\n3 6\\n2 9\\n5 2\\n3 9\\n6 8\\n8 7\\n10 4\\n7 4\\n8 5\\n3 4\\n6 7\\n2 6\\n10 6\\n3 8\\n\", \"10 9\\n8 5\\n3 5\\n3 7\\n10 6\\n4 6\\n8 1\\n9 2\\n4 2\\n9 7\\n\", \"50 49\\n1 3\\n6 46\\n47 25\\n11 49\\n47 10\\n26 10\\n12 38\\n45 38\\n24 39\\n34 22\\n36 3\\n21 16\\n43 44\\n45 23\\n2 31\\n26 13\\n28 42\\n43 30\\n12 27\\n32 44\\n24 25\\n28 20\\n15 19\\n6 48\\n41 7\\n15 17\\n8 9\\n2 48\\n33 5\\n33 23\\n4 19\\n40 31\\n11 9\\n40 39\\n35 27\\n14 37\\n32 50\\n41 20\\n21 13\\n14 42\\n18 30\\n35 22\\n36 5\\n18 7\\n4 49\\n29 16\\n29 17\\n8 37\\n34 46\\n\", \"13 13\\n2 1\\n2 3\\n1 4\\n4 5\\n5 6\\n6 7\\n7 3\\n8 3\\n8 9\\n10 9\\n10 11\\n12 11\\n12 13\\n\", \"2 1\\n2 1\\n\"], \"outputs\": [\"2\\n\", \"10\\n\", \"3\\n\", \"520\\n\", \"16495294\\n\", \"74\\n\", \"2\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01238", "n_tests": 6, "public_tests": "{\"inputs\": [\"5\\n01011\\n11001\\n\", \"6\\n011000\\n010011\\n\", \"10\\n0110101101\\n1010000101\\n\", \"30\\n011110110100010000011001000100\\n110111101001011001100001101101\\n\", \"2\\n00\\n00\\n\", \"2\\n00\\n11\\n\"], \"outputs\": [\"4\\n\", \"6\\n\", \"21\\n\", \"146\\n\", \"0\\n\", \"0\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01243", "n_tests": 4, "public_tests": "{\"inputs\": [\"3\\n10 4\\n12 6\\n179 822\\n\", \"10\\n246857872446986130 713202678\\n857754240051582063 933416507\\n873935277189052612 530795521\\n557307185726829409 746530097\\n173788420792057536 769449696\\n101626841876448103 132345797\\n598448092106640578 746411314\\n733629261048200000 361714100\\n981271355542147402 38\\n559754147245184151 431517529\\n\", \"10\\n228282288 228282288\\n1000000000000000000 1000000000\\n1244094302301841 35271721\\n998005893107997601 999002449\\n999999874000003969 999999937\\n956980859148255595 5\\n1 323\\n1 1000000000\\n424001357601318819 537974673\\n100000000 1000000000\\n\", \"1\\n42034266112 80174\\n\"], \"outputs\": [\"10\\n4\\n179\\n\", \"123428936223493065\\n918940509\\n37932865019708\\n1\\n57929473597352512\\n767888699\\n299224046053320289\\n31896924393400000\\n490635677771073701\\n26946235365387\\n\", \"114141144\\n976562500000000\\n5939\\n31607\\n1\\n191396171829651119\\n1\\n1\\n424001357601318819\\n100000000\\n\", \"1048576\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01248", "n_tests": 4, "public_tests": "{\"inputs\": [\"5\\n1 2\\n2 3\\n2 4\\n4 5\\nWBBWW\\n\", \"6\\n3 1\\n4 5\\n2 6\\n6 1\\n3 4\\nWWBWBB\\n\", \"1\\nB\\n\", \"20\\n2 19\\n5 13\\n6 4\\n15 6\\n12 19\\n13 19\\n3 11\\n8 3\\n3 20\\n16 13\\n7 14\\n3 17\\n7 8\\n10 20\\n11 9\\n8 18\\n8 2\\n10 1\\n6 13\\nWBWBWBBWWWBBWWBBBBBW\\n\"], \"outputs\": [\"5\\n\", \"7\\n\", \"0\\n\", \"21\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01253", "n_tests": 3, "public_tests": "{\"inputs\": [\"2\\n2 3\\n2 5 7\\n4 2 4\\n3 6\\n4 1 5 2 10 4\\n8 6 6 4 9 10\\n5 4 9 5 8 7\\n\", \"40\\n2 2\\n5 2\\n1 5\\n1 1\\n3\\n1 2\\n1 1\\n1 2\\n1 1\\n1 2\\n2 3\\n2 1\\n1\\n1\\n1 1\\n1\\n2 1\\n1\\n1\\n1 2\\n2 3\\n2 2\\n1 3\\n3 3\\n1 1\\n1\\n2 1\\n3\\n4\\n1 1\\n2\\n2 2\\n1 1\\n1 1\\n2 2\\n1 1\\n1 1\\n1 1\\n1\\n2 1\\n1\\n1\\n2 1\\n5\\n3\\n1 1\\n2\\n1 2\\n2 2\\n2 1\\n1\\n1\\n2 2\\n3 2\\n2 4\\n1 1\\n5\\n1 2\\n2 1\\n1 2\\n1 1\\n1 2\\n1 1\\n1 2\\n1 1\\n1 1\\n3\\n2 2\\n1 2\\n2 2\\n1 2\\n4 3\\n1 1\\n3\\n2 1\\n2\\n2\\n1 2\\n3 2\\n2 1\\n3\\n1\\n2 1\\n1\\n1\\n2 1\\n1\\n2\\n2 2\\n2 1\\n2 1\\n1 1\\n2\\n1 2\\n3 5\\n1 1\\n2\\n\", \"1\\n4 2\\n1 1\\n2 1\\n1 2\\n2 2\\n\"], \"outputs\": [\"12\\n29\\n\", \"10\\n3\\n1\\n1\\n3\\n2\\n1\\n2\\n3\\n6\\n1\\n7\\n2\\n2\\n2\\n1\\n2\\n8\\n2\\n2\\n2\\n7\\n5\\n2\\n1\\n1\\n1\\n3\\n4\\n4\\n3\\n4\\n3\\n4\\n2\\n3\\n4\\n2\\n5\\n2\\n\", \"7\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01258", "n_tests": 3, "public_tests": "{\"inputs\": [\"4 2 5\\n1 2 5 7\\n\", \"7 1 100\\n40 43 45 105 108 115 124\\n\", \"7 1 2\\n24 35 40 68 72 99 103\\n\"], \"outputs\": [\"11\\n\", \"84\\n\", \"12\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01263", "n_tests": 2, "public_tests": "{\"inputs\": [\"3\\n4\\n1 7 6 5\\n5\\n1 2 3 4 5\\n2\\n0 -4\\n\", \"6\\n3\\n1000000000 0 -1000000000\\n1\\n6\\n2\\n-1000000000 1000000000\\n2\\n1000000000 -1000000000\\n2\\n1000000000 1000000000\\n2\\n-1000000000 -1000000000\\n\"], \"outputs\": [\"2\\n0\\n3\\n\", \"31\\n0\\n0\\n31\\n0\\n0\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01268", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n7 7 3 5\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\\n6 7\\n7 5\\n4 5 2 3\\n1 2\\n2 3\\n3 4\\n4 1\\n4 2\\n4 3 2 1\\n1 2\\n2 3\\n4 1\\n\"], \"outputs\": [\"4\\n0\\n1\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01273", "n_tests": 13, "public_tests": "{\"inputs\": [\"3 3\\n1 2 3\\n\", \"10 10\\n1 1 1 1 1 1 1 1 1 1\\n\", \"2 5\\n1234 5678\\n\", \"192 275\\n426 445 272 81 447 129 497 202 275 325 482 284 417 156 432 402 228 37 357 239 418 211 179 6 340 68 368 16 440 263 93 449 491 310 355 68 431 80 257 218 434 328 176 355 221 80 422 45 11 67 467 174 191 4 335 34 465 480 221 395 1 152 325 231 302 153 396 22 489 399 107 466 432 2 468 333 475 292 84 10 194 328 354 212 409 480 143 121 451 492 420 197 107 425 167 217 438 200 486 104 483 120 306 381 358 59 53 2 54 462 325 435 279 464 327 49 332 95 200 220 158 139 492 130 467 489 458 81 100 466 473 429 275 81 270 455 218 128 307 335 398 52 30 311 69 148 384 454 413 114 315 186 334 382 392 326 8 53 462 457 350 231 61 185 88 305 480 64 390 52 247 443 240 93 469 370 16 443 7 25 299 412 163 199 71 476 455 217 90 343 427 220\\n\", \"144 284\\n239 496 375 101 258 449 377 40 428 238 455 17 153 433 268 457 307 456 378 477 368 499 382 41 326 264 269 401 98 198 263 15 413 495 23 71 206 357 404 310 410 344 111 484 410 59 262 394 449 107 46 237 487 479 306 185 291 42 42 134 94 251 89 398 229 212 464 297 323 220 297 280 417 338 176 183 465 240 41 55 3 316 256 13 111 474 431 24 109 176 304 151 199 376 325 393 439 237 374 323 346 319 154 157 314 343 386 197 100 356 209 379 479 461 14 123 244 400 94 447 20 152 463 174 329 484 430 322 165 146 385 191 353 105 110 453 356 243 194 354 297 75 331 474\\n\", \"200 237\\n195 345 154 173 306 365 24 452 231 329 353 331 192 27 413 81 438 63 358 358 266 301 95 374 307 51 368 478 309 304 7 308 492 499 150 206 399 322 198 15 381 267 282 237 119 111 426 444 288 326 444 202 388 444 155 21 489 446 131 116 445 154 434 22 350 183 42 226 241 486 101 161 32 461 68 403 276 258 272 266 259 224 336 241 54 18 325 395 449 425 56 350 378 211 83 184 290 59 445 345 268 322 1 55 272 285 175 312 165 321 420 196 16 357 149 448 307 35 91 284 82 268 398 174 341 439 93 217 3 334 268 471 465 121 83 103 366 149 232 276 488 238 64 236 273 70 122 274 132 60 455 248 380 61 389 454 320 34 233 345 90 140 212 217 135 211 37 483 144 168 278 256 345 127 398 308 328 258 66 91 371 76 305 464 279 370 309 441 329 125 429 161 241 166 370 394 314 13 401 187\\n\", \"201 214\\n465 222 122 248 234 311 497 193 338 172 6 303 211 47 136 442 343 431 420 423 343 239 314 403 401 122 35 277 275 321 177 404 261 472 93 247 62 237 198 271 336 4 420 101 243 433 397 277 110 145 487 324 246 389 24 243 258 461 389 81 289 119 188 477 399 25 413 134 420 179 65 197 227 51 206 263 500 471 68 152 266 350 52 500 319 411 456 126 115 264 380 17 257 264 179 301 26 490 467 104 475 416 249 406 199 57 454 355 491 39 5 137 268 254 66 236 428 107 432 332 286 266 368 159 418 152 268 468 210 405 465 269 475 460 302 138 16 306 2 159 222 423 326 406 419 5 221 375 115 255 174 458 246 111 149 497 288 76 378 483 211 464 485 430 77 83 228 157 135 171 185 151 195 338 81 46 403 336 301 433 359 486 193 147 119 427 28 310 247 323 294 305 298 399 154 149 20 214 188 88 235\\n\", \"148 64\\n417 185 65 281 166 216 385 131 258 437 28 337 376 454 143 80 118 256 49 322 378 413 56 16 136 288 336 149 114 328 254 241 267 164 138 466 169 270 146 42 399 368 425 235 151 274 350 361 473 106 282 452 142 35 337 460 59 49 209 495 347 474 381 226 224 309 443 25 27 110 495 298 155 67 198 290 278 495 408 16 300 133 150 312 82 353 97 381 120 427 425 355 240 70 50 178 133 239 319 33 388 299 58 220 122 361 266 422 456 101 377 144 382 466 46 104 9 149 196 327 85 55 413 359 463 139 91 470 360 334 411 274 376 145 177 214 45 243 109 379 437 440 282 53 31 495 317 494\\n\", \"107 265\\n90 386 93 4 172 493 454 221 132 60 123 482 181 64 236 365 371 394 458 175 456 310 254 429 274 495 316 126 383 364 352 215 140 335 180 362 374 345 112 45 107 154 221 20 211 307 203 113 52 263 351 291 225 274 42 143 181 342 219 130 129 453 157 303 1 40 143 338 171 273 406 389 278 431 178 419 452 156 49 47 261 434 451 318 430 391 493 323 3 463 346 472 406 354 161 31 489 351 228 263 412 499 178 319 436 172 71\\n\", \"7 49\\n54 467 215 289 425 19 141\\n\", \"291 69\\n119 15 281 493 200 335 18 281 116 365 420 4 45 381 283 490 214 82 285 443 307 164 476 433 47 95 312 478 93 214 422 297 36 65 466 436 26 359 181 81 182 144 179 89 494 232 294 322 333 219 246 146 62 19 147 270 291 397 362 117 143 111 425 274 473 64 498 373 407 140 408 302 296 289 81 480 217 388 113 31 44 364 325 452 160 50 90 184 235 56 164 352 20 443 19 112 373 448 293 443 378 322 453 460 200 426 54 384 220 114 330 482 349 447 396 334 266 215 111 243 145 356 377 353 213 343 92 467 37 374 264 362 62 18 274 268 293 57 107 145 334 173 375 210 222 423 135 137 262 430 88 423 179 74 221 387 280 173 356 420 227 69 405 386 472 479 179 149 120 341 170 300 199 457 139 251 223 433 408 138 39 65 31 285 124 360 316 194 415 172 340 45 257 121 419 379 154 377 18 99 363 135 217 348 364 207 39 26 206 396 97 100 114 62 239 255 188 236 394 438 249 228 299 149 70 118 459 322 127 177 405 486 152 285 159 77 263 114 261 286 337 180 237 352 4 156 413 247 344 242 472 228 107 89 385 197 286 104 403 498 435 97 199 35 53 225 305 307 26 186 303 151 35 285 48 100 18 48 151 417 410 224 477 351 287 120 35 166 266 376 361\\n\", \"170 82\\n235 428 281 110 458 126 95 189 123 104 349 272 155 371 486 331 328 344 231 296 496 54 219 395 224 7 257 376 49 312 250 269 498 445 120 449 461 237 144 298 202 32 436 296 179 28 13 236 138 380 259 5 85 397 136 418 161 163 89 127 300 113 438 367 23 404 164 444 224 37 10 147 89 256 421 364 392 405 166 259 145 387 496 202 147 372 247 449 43 23 259 156 271 306 331 388 301 79 126 498 313 411 277 247 2 471 15 311 218 486 99 214 217 58 402 30 158 334 115 38 159 161 373 24 112 337 181 121 123 230 253 104 359 161 478 194 397 73 114 293 113 461 494 112 371 172 382 289 263 31 112 355 364 91 397 396 82 413 200 284 284 439 357 156 495 350 323 305 232 390\\n\", \"258 126\\n450 76 174 485 46 157 375 223 193 196 83 99 438 468 278 223 141 319 149 151 161 500 78 152 331 430 294 299 117 251 456 291 36 194 464 58 78 33 477 96 460 364 458 323 293 280 389 17 54 456 23 377 44 80 273 407 97 97 231 48 323 423 87 375 19 7 422 294 147 189 296 405 453 487 71 353 246 91 116 51 500 53 290 23 408 339 385 110 248 152 8 164 26 402 15 94 75 264 70 37 174 364 4 153 155 5 129 331 204 434 261 484 207 81 363 144 69 138 366 495 164 398 251 283 419 488 329 372 61 47 335 499 130 470 234 20 310 427 189 316 143 172 483 64 31 133 484 128 7 36 473 476 402 447 243 154 200 254 436 138 360 154 442 273 491 363 221 431 494 495 462 81 443 117 234 147 156 435 467 235 63 449 500 76 25 379 328 32 71 151 280 139 460 420 269 438 85 252 242 496 191 287 328 40 53 82 283 262 83 45 32 333 440 465 65 364 261 487 243 349 356 435 89 271 350 418 310 446 217 92 359 185 462 207 315 15 64 129 65 475 431 150 9 135 430 380 7 454 498 118 275 318 153 310 199 399 388 67\\n\"], \"outputs\": [\"12\\n50\\n216\\n\", \"90\\n180\\n360\\n720\\n1440\\n2880\\n5760\\n11520\\n23040\\n46080\\n\", \"6912\\n47775744\\n805306038\\n64822328\\n838460992\\n\", \"9809187\\n152448061\\n632140950\\n106783509\\n563857255\\n812952695\\n108791293\\n577604746\\n985355095\\n380123909\\n907672609\\n900583229\\n776777228\\n132614448\\n813250915\\n286249066\\n926178855\\n572159152\\n689366745\\n173146261\\n825466094\\n509400183\\n827305647\\n292299005\\n231967265\\n466947667\\n309270140\\n809489015\\n922658285\\n995242088\\n743208060\\n207099745\\n735370855\\n607568313\\n239762115\\n815319525\\n228398443\\n726807761\\n370011120\\n507707637\\n898162681\\n422569662\\n408231324\\n553810886\\n463453840\\n917530582\\n292108188\\n403802602\\n521508052\\n823050061\\n262923033\\n673242975\\n834453797\\n419681632\\n545597411\\n873052301\\n65214090\\n228461800\\n322412918\\n353940849\\n542192859\\n369021315\\n816302009\\n512786465\\n291297579\\n978676167\\n221900339\\n738940766\\n102670091\\n36662395\\n251065410\\n118427137\\n911936464\\n353597013\\n202360291\\n422834849\\n291173160\\n821332440\\n422080389\\n335762225\\n861508767\\n31825250\\n3798970\\n12716795\\n797098541\\n604805427\\n851628673\\n229256164\\n659362272\\n35990606\\n585752841\\n15940366\\n333313846\\n310392236\\n894687048\\n264365908\\n180744841\\n423230571\\n479275962\\n420593586\\n913846653\\n631293291\\n308974911\\n693218885\\n741149778\\n188807405\\n180249789\\n130567223\\n609746119\\n130313819\\n116922647\\n928510649\\n203258067\\n828606439\\n752405851\\n990934444\\n339820740\\n405677074\\n332006826\\n456267059\\n248204592\\n91392855\\n6950400\\n597274554\\n544064022\\n102836088\\n594894057\\n659566282\\n428253736\\n62554685\\n396755388\\n774923434\\n391271793\\n166108011\\n393967892\\n691721164\\n592084703\\n44325851\\n974148498\\n79350119\\n65566289\\n386980594\\n770654112\\n656348867\\n250056293\\n259389711\\n91071664\\n455828611\\n666212402\\n32244938\\n168996359\\n570690759\\n279392320\\n237014615\\n704217836\\n24556654\\n426946762\\n336986938\\n778455970\\n199282944\\n352013934\\n883716616\\n902423146\\n459886835\\n870661499\\n837515018\\n657946896\\n468343591\\n610560342\\n275596592\\n874121243\\n858761994\\n106574830\\n994031166\\n162487750\\n485139051\\n520624898\\n687267722\\n545579309\\n733075842\\n278673307\\n522820484\\n869751257\\n174641913\\n110331035\\n459462601\\n412069077\\n671344733\\n283158703\\n881923499\\n678743941\\n302773881\\n134145080\\n253701764\\n764655725\\n499808273\\n529862047\\n297330578\\n250317715\\n611962223\\n905935031\\n709080259\\n403919788\\n235716131\\n545480055\\n147972380\\n992082591\\n812475488\\n875831922\\n476311762\\n753904393\\n556458275\\n593894811\\n200312193\\n387727426\\n756673629\\n362187314\\n628830001\\n91346378\\n960250787\\n810513310\\n734528030\\n688794633\\n439999494\\n483049088\\n910495311\\n533718954\\n719649791\\n786014636\\n490083501\\n650274858\\n809336851\\n448486251\\n508700326\\n407812448\\n938631461\\n50145744\\n838645913\\n367071433\\n226278133\\n959967869\\n286028606\\n782318200\\n937193423\\n932704918\\n538802355\\n495979432\\n560835107\\n459110693\\n198650309\\n58409700\\n501395817\\n78298951\\n290641251\\n131773525\\n295626012\\n93029094\\n843983197\\n641039575\\n886354105\\n795192972\\n893589569\\n856132493\\n726153186\\n280730710\\n500196649\\n861061960\\n518040252\\n619040026\\n22862026\\n229158063\\n659029075\\n877126959\\n652422465\\n829584404\\n\", \"5622045\\n496852052\\n336225344\\n816815719\\n896921083\\n897749042\\n275453962\\n900773929\\n801035652\\n620742342\\n418899551\\n120259294\\n537844861\\n900377817\\n864045077\\n944516226\\n473541152\\n554985469\\n724191447\\n564026962\\n116180251\\n912484601\\n670555001\\n73287442\\n265418278\\n1161539\\n84468186\\n564820654\\n302844758\\n249777146\\n738507409\\n662499266\\n991814556\\n326939581\\n857559368\\n406453985\\n546955053\\n333300575\\n640669391\\n159004008\\n804623511\\n6003465\\n274302979\\n46388859\\n49596100\\n22910269\\n680465090\\n724605241\\n841808119\\n3557306\\n486971424\\n367636707\\n480344524\\n726453659\\n544719531\\n893184771\\n233795773\\n370185145\\n885448884\\n930399246\\n951103380\\n395387345\\n587025325\\n840396098\\n818836110\\n545846482\\n179789793\\n100390130\\n496018496\\n652424774\\n347320662\\n904634829\\n277677369\\n184680003\\n356982053\\n621398084\\n14192984\\n371507394\\n421064613\\n679078765\\n408234771\\n114152561\\n446110146\\n327862646\\n10405555\\n223843134\\n431276867\\n688595911\\n127588783\\n874103061\\n175895529\\n71338781\\n578592431\\n280627355\\n74851270\\n527128025\\n656578518\\n875686667\\n83254372\\n743703246\\n443314100\\n952056436\\n662503698\\n931448048\\n86887983\\n482721118\\n125043662\\n209098\\n48638962\\n940683198\\n654888529\\n373457655\\n599863891\\n66737989\\n494565141\\n122275514\\n891150202\\n386211340\\n158502912\\n533245907\\n332715281\\n112136864\\n871825297\\n52714285\\n879464779\\n618764797\\n107083893\\n192708974\\n511793037\\n405377553\\n209165260\\n911330586\\n817615433\\n483733063\\n446572953\\n878995236\\n6936323\\n405480597\\n168879989\\n676414052\\n250289946\\n519125893\\n516624360\\n866295063\\n825111216\\n427545005\\n949753387\\n979622649\\n649059127\\n246804304\\n477531159\\n274738807\\n866354850\\n264528716\\n631056136\\n426011832\\n335348666\\n342425132\\n706722912\\n63631743\\n691074018\\n986288016\\n388267723\\n475976531\\n737408283\\n507104604\\n987962181\\n820161275\\n141513997\\n184951473\\n454306615\\n829837457\\n515724009\\n498115919\\n405979993\\n927324770\\n886302762\\n230443691\\n685445263\\n839178773\\n215636717\\n823978324\\n854925484\\n221630009\\n520546582\\n525451054\\n460384577\\n644333361\\n921833391\\n453314806\\n681661459\\n334620301\\n797609347\\n324246385\\n521599205\\n645708724\\n230809226\\n923646839\\n896686305\\n365209744\\n73830967\\n976562159\\n693001966\\n233974094\\n991529389\\n125999418\\n150261285\\n854973727\\n427402104\\n251043472\\n311332025\\n828836295\\n225895895\\n398443277\\n670207422\\n552698873\\n25638344\\n60755956\\n565164054\\n553745315\\n938560084\\n802760431\\n28884419\\n876432445\\n518471269\\n70614362\\n251455648\\n865466453\\n325634567\\n304272429\\n765304556\\n971176373\\n838750142\\n802346546\\n820760482\\n745638674\\n407914216\\n208542294\\n206721844\\n680683819\\n380289425\\n460187045\\n765487541\\n780036879\\n843808267\\n34084379\\n785958453\\n229505908\\n161923786\\n703473200\\n349336940\\n276092401\\n867603096\\n772171597\\n991412996\\n634160465\\n142811346\\n151451006\\n221690222\\n268549998\\n101311619\\n26055756\\n479296534\\n324118393\\n914084134\\n807519957\\n262641675\\n249621567\\n650062682\\n637792651\\n394081365\\n488791521\\n702068016\\n268497161\\n371248663\\n904364317\\n756239005\\n833788283\\n791251447\\n615346632\\n260307609\\n579299196\\n849888879\\n607609010\\n\", \"10076763\\n861709346\\n926262745\\n819731114\\n584030848\\n546951437\\n478890792\\n714985619\\n544986596\\n514360803\\n543484262\\n364838412\\n162918536\\n819867365\\n820491077\\n599993984\\n599822431\\n127444230\\n330076002\\n718624547\\n23625548\\n441340862\\n307735226\\n556302901\\n940115991\\n174298347\\n102135932\\n106227751\\n879070628\\n355701669\\n176095435\\n971355989\\n67027329\\n43017204\\n985032866\\n148091371\\n798686635\\n909459445\\n242040903\\n973859374\\n819852368\\n961133305\\n988972921\\n630899361\\n68170734\\n110038664\\n191852310\\n820002961\\n89773748\\n43112127\\n886265829\\n768824876\\n412707762\\n156785396\\n152723441\\n870636802\\n666278257\\n554341576\\n859396157\\n227549144\\n485072926\\n214226475\\n18469370\\n429827555\\n187384623\\n315730340\\n768713216\\n759629287\\n797420340\\n706410943\\n574322489\\n490515787\\n753457676\\n577638491\\n474109145\\n402263440\\n101974232\\n146698641\\n639020449\\n352098327\\n424781831\\n658388454\\n466055880\\n421070331\\n294112297\\n8621470\\n869027435\\n606022568\\n955175594\\n153928224\\n602450412\\n654095667\\n560373726\\n285032566\\n118382250\\n28402056\\n638324886\\n71686490\\n950768024\\n865929612\\n140165239\\n24312364\\n611246568\\n568702381\\n792126222\\n504823803\\n303634975\\n566865658\\n483915149\\n490270117\\n659874825\\n175499748\\n414949619\\n709745614\\n471583062\\n389176840\\n745371001\\n849296665\\n597030932\\n957325110\\n74857147\\n854826736\\n201087712\\n274746492\\n99876695\\n682121540\\n465856271\\n497394230\\n513226462\\n877331601\\n395455335\\n940091453\\n464061290\\n515555129\\n626707875\\n139803820\\n138343206\\n815922433\\n671748743\\n577660709\\n882186947\\n711487884\\n659106986\\n388450510\\n310750945\\n321088719\\n310139145\\n791735723\\n134510575\\n19683711\\n375293030\\n275567668\\n747354777\\n942106696\\n987944754\\n704224993\\n116329954\\n979320439\\n34898532\\n339558678\\n260684533\\n820934124\\n969443963\\n637939406\\n710773986\\n916619623\\n721015120\\n114942203\\n13919876\\n7374658\\n65088920\\n841088948\\n477342354\\n285267305\\n745315751\\n658986059\\n42295911\\n361717748\\n775731485\\n226999430\\n490275171\\n599925881\\n781718522\\n956664279\\n550167322\\n227748773\\n838014897\\n813759191\\n546041153\\n38050503\\n387672669\\n584254342\\n918477366\\n523976089\\n671932139\\n352914168\\n343308492\\n513517463\\n970836027\\n132783270\\n798417887\\n343706974\\n618459341\\n77345558\\n314875400\\n710061494\\n685143502\\n785203463\\n495876680\\n262534694\\n935695383\\n861810459\\n382741574\\n419655547\\n625622300\\n217660884\\n642810102\\n798816554\\n949294859\\n524207848\\n462202352\\n955594663\\n322222689\\n835595533\\n724638058\\n377586731\\n265384178\\n169495226\\n183853618\\n716803241\\n112321111\\n200939589\\n656331878\\n473590646\\n564374940\\n709484198\\n126230491\\n\", \"10557800\\n360870374\\n252948746\\n501116458\\n134737922\\n100030835\\n48606579\\n686153938\\n665196787\\n942111856\\n401420474\\n269390552\\n329857760\\n835061085\\n485804111\\n586690545\\n958320024\\n717092558\\n676665045\\n684194055\\n178052994\\n785523302\\n481967609\\n624237905\\n480466655\\n237496113\\n913390752\\n231011024\\n957079023\\n952516145\\n192569021\\n253245556\\n496921063\\n345594101\\n797264266\\n243507239\\n931375048\\n783189986\\n235709625\\n937267592\\n624462075\\n434805265\\n322881043\\n644354304\\n422973938\\n420659089\\n983197133\\n413348008\\n272544106\\n567490265\\n169009307\\n376534398\\n906521425\\n692113888\\n310117435\\n717934022\\n713335627\\n805203045\\n596520558\\n437673783\\n395160536\\n571445764\\n3472465\\n228896043\\n520047633\\n507538271\\n441258920\\n928526988\\n298177893\\n562103538\\n762116985\\n303985061\\n197616976\\n423568741\\n163256641\\n974957184\\n24072972\\n91945761\\n604141094\\n631648342\\n311472063\\n526597014\\n922946679\\n150555186\\n830514916\\n640566078\\n377354800\\n381829933\\n949409056\\n353577459\\n984142489\\n332441530\\n363952676\\n602985870\\n530420116\\n287721803\\n659640170\\n471419010\\n524297807\\n322143458\\n990727060\\n213559905\\n977644009\\n991592201\\n110576850\\n104083987\\n18287231\\n964041620\\n331310346\\n71342509\\n297720485\\n711767709\\n149966377\\n350614885\\n375701188\\n169040387\\n230294548\\n803656306\\n266726331\\n8271507\\n305993485\\n924509187\\n794397813\\n521631064\\n277414484\\n127430124\\n435477163\\n103817547\\n942999642\\n126092744\\n597748030\\n122245545\\n456035271\\n820044401\\n402022472\\n681014077\\n738854754\\n453140769\\n108503497\\n377884077\\n854762157\\n194618056\\n803416893\\n482462799\\n943380196\\n246810769\\n278145667\\n175878759\\n737840491\\n119354769\\n765963214\\n266209198\\n225125334\\n577158392\\n556229127\\n222218701\\n665378006\\n180166221\\n441336682\\n816911257\\n267751859\\n135820855\\n747238623\\n794612052\\n834927790\\n442412151\\n813691022\\n853525053\\n762595274\\n953569928\\n586783729\\n501097899\\n896717913\\n863619832\\n119678515\\n84606958\\n883429378\\n490099050\\n363461285\\n373681324\\n975909061\\n622371437\\n429861578\\n2783361\\n693403570\\n277394223\\n756550026\\n989289047\\n904388091\\n663060586\\n663860955\\n597557803\\n297572579\\n591950022\\n173358572\\n226712185\\n298730530\\n382841918\\n970280227\\n201360619\\n871106053\\n703953037\\n624712290\\n606262758\\n778354379\\n449272034\\n143193931\\n448754493\\n670946785\\n687514426\\n225078728\\n876155484\\n345835693\\n912948642\\n\", \"5436648\\n169385145\\n602587552\\n283273821\\n855895410\\n831146795\\n914971362\\n726340576\\n647847420\\n392084909\\n776517447\\n557348295\\n252029205\\n765863651\\n932818837\\n443726189\\n963729118\\n30830106\\n119810977\\n422175630\\n808331112\\n463495034\\n745749647\\n71917023\\n434352220\\n364192272\\n801270758\\n536137463\\n531689074\\n485522383\\n836862509\\n227661717\\n251676367\\n109131408\\n159434501\\n822996179\\n623082870\\n274537451\\n951866871\\n403714917\\n727694262\\n613267755\\n354876398\\n326213896\\n481463055\\n898877653\\n877901376\\n809686471\\n75583224\\n39848430\\n374391249\\n381649251\\n54079245\\n417273912\\n674756344\\n189309908\\n764072489\\n795471880\\n309706852\\n236520170\\n559947925\\n568218172\\n124739287\\n514907009\\n\", \"2993228\\n809795531\\n138795848\\n992679626\\n408924227\\n259809685\\n741923302\\n490686873\\n845705515\\n722751993\\n260898398\\n185856052\\n593211132\\n34193239\\n659319353\\n899181032\\n737230380\\n931901686\\n237375447\\n382791055\\n592591773\\n500436597\\n48277402\\n509957784\\n247393370\\n521959860\\n121269490\\n654027384\\n722026613\\n866332786\\n702241116\\n792459931\\n277450749\\n721853597\\n307032619\\n8291241\\n853650792\\n512676635\\n772488380\\n500453615\\n262955209\\n19811711\\n955752258\\n126515413\\n173659784\\n284929986\\n653396110\\n519383907\\n631548639\\n8878358\\n767471925\\n263824406\\n759224147\\n478713136\\n707777318\\n423724024\\n161001703\\n990853798\\n233427599\\n626001508\\n50031512\\n553142980\\n853095225\\n439965068\\n823001380\\n806579349\\n720123790\\n301960052\\n889630179\\n726506186\\n69665681\\n395246849\\n606655558\\n446062371\\n801259699\\n122621894\\n655346361\\n331646342\\n545616006\\n156507173\\n649096740\\n415864322\\n260020543\\n679766747\\n584406634\\n736148888\\n543822334\\n377668422\\n833038775\\n622329002\\n562219449\\n687059526\\n301737825\\n275295686\\n446650486\\n210233310\\n482339302\\n236469160\\n571559638\\n417682195\\n204422139\\n374877861\\n830808735\\n13126408\\n827230081\\n143669360\\n128830797\\n641827841\\n44528212\\n881143238\\n207959315\\n71884612\\n222539089\\n217040282\\n8178167\\n528457479\\n518918875\\n639204519\\n534775863\\n193039415\\n949721384\\n898815315\\n309897739\\n68418626\\n419933763\\n722804113\\n875808886\\n112355226\\n557912942\\n66082987\\n331084733\\n530253309\\n13510185\\n436272922\\n233442415\\n919215454\\n232758147\\n331708195\\n739296806\\n37396207\\n583939454\\n484942513\\n742990437\\n836924889\\n934804400\\n962257669\\n789602047\\n972049579\\n848558925\\n126471243\\n149466733\\n836645450\\n502960661\\n961078874\\n429499424\\n645783941\\n890041144\\n223713910\\n912701931\\n682707793\\n354115209\\n415022625\\n193133586\\n756699369\\n845360386\\n439234468\\n740157188\\n696570954\\n900792192\\n909703271\\n674526654\\n370315932\\n368302174\\n513080861\\n616271003\\n524534905\\n230992013\\n745927623\\n82811551\\n813681057\\n159356025\\n569642259\\n366075870\\n269396307\\n152768500\\n375290165\\n209219049\\n977645326\\n860484224\\n93996798\\n446548954\\n607861997\\n480819292\\n248427907\\n571193372\\n336053481\\n542653903\\n872317208\\n40520925\\n57616304\\n730777980\\n941405462\\n276210984\\n473815921\\n381006105\\n732266583\\n7236303\\n575936835\\n972939243\\n916200137\\n978441101\\n811348543\\n303766355\\n657766045\\n905412876\\n397684145\\n324948955\\n925640795\\n614876405\\n304877102\\n53307131\\n823607761\\n813648466\\n505510942\\n28244557\\n43740082\\n838416885\\n337113503\\n818423313\\n784175404\\n10680485\\n148896695\\n718501036\\n361780051\\n254098193\\n863007770\\n754199433\\n596311948\\n404911249\\n190214252\\n465503919\\n308157896\\n596055899\\n770782962\\n518084124\\n855865563\\n883210721\\n535787649\\n215833290\\n558096920\\n203375267\\n202175256\\n563312981\\n539778520\\n51766957\\n855137338\\n444550403\\n144108277\\n281383754\\n292185611\\n498244174\\n519738169\\n91866098\\n260809054\\n86798803\\n\", \"9660\\n5350190\\n316551909\\n860407167\\n233664937\\n199044299\\n485144834\\n996478955\\n546316765\\n376713288\\n345468874\\n173947115\\n752846245\\n980472804\\n757284242\\n491636306\\n954732039\\n329789346\\n949949336\\n946791468\\n102370663\\n677160560\\n951266200\\n781938883\\n267239912\\n175964428\\n896405903\\n31850957\\n610330203\\n612303221\\n990572899\\n972232201\\n531683001\\n154122460\\n360594288\\n126545781\\n152601507\\n852165489\\n766717643\\n408484645\\n978852775\\n868666753\\n223823292\\n639166914\\n154573595\\n344558086\\n778314826\\n687194851\\n316685687\\n\", \"20670910\\n781846619\\n753280271\\n730353057\\n905889794\\n256347597\\n846840661\\n406459088\\n357744751\\n680592787\\n723343531\\n798130922\\n573710455\\n179700218\\n438604780\\n310493791\\n785176401\\n570323401\\n93187679\\n779823483\\n992740234\\n208930256\\n785452133\\n559521559\\n654096851\\n268752717\\n607044308\\n97218465\\n329390886\\n357899664\\n460909682\\n350070627\\n830868556\\n935191416\\n606749102\\n549575100\\n506333116\\n800576587\\n579800059\\n46789953\\n137305303\\n914927013\\n104705133\\n925701226\\n511998249\\n575456477\\n239997728\\n388351402\\n236702912\\n667391631\\n63734837\\n761070367\\n988161855\\n882814961\\n994822929\\n954537212\\n614963486\\n234780469\\n424308214\\n576608571\\n629883350\\n499086218\\n424576173\\n358705836\\n34897843\\n356053266\\n626939604\\n731815643\\n108051796\\n\", \"7144813\\n122125085\\n532024106\\n730211325\\n656974735\\n456771450\\n553656089\\n5531974\\n668873391\\n236008524\\n534885579\\n781371462\\n894365560\\n97725138\\n704211672\\n327757879\\n792687068\\n871565918\\n206631381\\n700684084\\n33966504\\n610001894\\n985273401\\n938310167\\n704949250\\n370426630\\n203382075\\n570865717\\n448927684\\n855523540\\n841008170\\n716632277\\n730151395\\n883374495\\n865674678\\n575704574\\n754957893\\n571048459\\n92621276\\n257216795\\n440839623\\n573175437\\n751369407\\n327855291\\n671352103\\n170702961\\n552430187\\n420390487\\n960791305\\n852954860\\n346921278\\n180771451\\n974703414\\n477767791\\n723290958\\n963860530\\n434269806\\n709138489\\n490903673\\n898290247\\n245590796\\n854008512\\n587232422\\n637321892\\n685127729\\n519461847\\n324829051\\n642598862\\n746566086\\n52042359\\n718636401\\n469147935\\n281756058\\n189931147\\n12929903\\n41107895\\n7848422\\n131934676\\n688093957\\n192630955\\n760968676\\n967892464\\n\", \"16536922\\n865414555\\n344713759\\n26964068\\n100762795\\n508704521\\n479565020\\n152491970\\n524615703\\n358376253\\n776457042\\n334309989\\n291339792\\n983720113\\n964884150\\n250018067\\n363441288\\n788823740\\n200076475\\n429605926\\n859221842\\n496833468\\n660900762\\n742337993\\n346789980\\n773864462\\n39571594\\n335668756\\n721095179\\n598801831\\n564183059\\n726571960\\n661117844\\n23893871\\n779744071\\n434596691\\n111538534\\n754761532\\n788779764\\n834593346\\n758678000\\n978311531\\n122151845\\n48362861\\n864309542\\n82933420\\n644420328\\n277325447\\n741212574\\n978556489\\n171836598\\n863685495\\n139940319\\n902324308\\n7895649\\n941746041\\n530708902\\n760424961\\n225727648\\n15046352\\n926222652\\n87358105\\n872544356\\n455562514\\n435942371\\n646391361\\n843101889\\n740090788\\n271077320\\n411839514\\n878279493\\n195544832\\n361416976\\n672954528\\n165337354\\n435932009\\n952948336\\n519803187\\n944568016\\n352610415\\n190340870\\n228382481\\n855732693\\n834076915\\n108898497\\n340883640\\n666693267\\n666710894\\n794962938\\n200260387\\n14952790\\n430582453\\n225358772\\n456985841\\n380405914\\n380698074\\n880250802\\n70092681\\n653582414\\n934554164\\n419615253\\n248613709\\n141875521\\n202037122\\n751992868\\n570327285\\n992122899\\n711884863\\n100584849\\n648987355\\n466202536\\n664560559\\n914337981\\n637213922\\n118657292\\n388800744\\n345181210\\n255530996\\n217316730\\n51309797\\n614676066\\n546869544\\n833359234\\n204022207\\n550642244\\n45145571\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01278", "n_tests": 1, "public_tests": "{\"inputs\": [\"5\\n1\\n5\\n42\\n1337\\n1000000000\\n\"], \"outputs\": [\"0\\n3\\n11\\n72\\n63244\\n\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01283", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"abba\\\"\", \"\\\"dog cat cat dog\\\"\"]], \"outputs\": [false], \"testtype\": \"functional\", \"fn_name\": \"wordPattern\", \"starter_code\": \"\\nclass Solution:\\n def wordPattern(self, pattern: str, s: str) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01288", "n_tests": 1, "public_tests": "{\"inputs\": [[[0, 1, 0]]], \"outputs\": [1], \"testtype\": \"functional\", \"fn_name\": \"peakIndexInMountainArray\", \"starter_code\": \"\\nclass Solution:\\n def peakIndexInMountainArray(self, arr: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01293", "n_tests": 1, "public_tests": "{\"inputs\": [[[3, 2, 1]]], \"outputs\": [1], \"testtype\": \"functional\", \"fn_name\": \"thirdMax\", \"starter_code\": \"\\nclass Solution:\\n def thirdMax(self, nums: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01298", "n_tests": 1, "public_tests": "{\"inputs\": [[16]], \"outputs\": [true], \"testtype\": \"functional\", \"fn_name\": \"isPerfectSquare\", \"starter_code\": \"\\nclass Solution:\\n def isPerfectSquare(self, num: int) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01303", "n_tests": 1, "public_tests": "{\"inputs\": [[[-3, 2, -3, 4, 2]]], \"outputs\": [5], \"testtype\": \"functional\", \"fn_name\": \"minStartValue\", \"starter_code\": \"\\nclass Solution:\\n def minStartValue(self, nums: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01308", "n_tests": 1, "public_tests": "{\"inputs\": [[5]], \"outputs\": [true], \"testtype\": \"functional\", \"fn_name\": \"hasAlternatingBits\", \"starter_code\": \"\\nclass Solution:\\n def hasAlternatingBits(self, n: int) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01313", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"A man, a plan, a canal: Panama\\\"\"]], \"outputs\": [true], \"testtype\": \"functional\", \"fn_name\": \"isPalindrome\", \"starter_code\": \"\\nclass Solution:\\n def isPalindrome(self, s: str) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01318", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"leEeetcode\\\"\"]], \"outputs\": [\"\\\"leetcode\\\"\"], \"testtype\": \"functional\", \"fn_name\": \"makeGood\", \"starter_code\": \"\\nclass Solution:\\n def makeGood(self, s: str) -> str:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01323", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 3, 2, 2, 5, 2, 3, 7]]], \"outputs\": [5], \"testtype\": \"functional\", \"fn_name\": \"findLHS\", \"starter_code\": \"\\nclass Solution:\\n def findLHS(self, nums: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01328", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"a\\\"\", \"\\\"b\\\"\"]], \"outputs\": [false], \"testtype\": \"functional\", \"fn_name\": \"canConstruct\", \"starter_code\": \"\\nclass Solution:\\n def canConstruct(self, ransomNote: str, magazine: str) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01333", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"ab#c\\\"\", \"\\\"ad#c\\\"\"]], \"outputs\": [true], \"testtype\": \"functional\", \"fn_name\": \"backspaceCompare\", \"starter_code\": \"\\nclass Solution:\\n def backspaceCompare(self, S: str, T: str) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01338", "n_tests": 1, "public_tests": "{\"inputs\": [[1]], \"outputs\": [true], \"testtype\": \"functional\", \"fn_name\": \"isPowerOfTwo\", \"starter_code\": \"\\nclass Solution:\\n def isPowerOfTwo(self, n: int) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01343", "n_tests": 1, "public_tests": "{\"inputs\": [[[[0, 0], [2, 0], [1, 1], [2, 1], [2, 2], [], []]]], \"outputs\": [\"A\"], \"testtype\": \"functional\", \"fn_name\": \"tictactoe\", \"starter_code\": \"\\nclass Solution:\\n def tictactoe(self, moves: List[List[int]]) -> str:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01348", "n_tests": 1, "public_tests": "{\"inputs\": [[4]], \"outputs\": [2], \"testtype\": \"functional\", \"fn_name\": \"mySqrt\", \"starter_code\": \"\\nclass Solution:\\n def mySqrt(self, x: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01353", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"UD\\\"\"]], \"outputs\": [true], \"testtype\": \"functional\", \"fn_name\": \"judgeCircle\", \"starter_code\": \"\\nclass Solution:\\n def judgeCircle(self, moves: str) -> bool:\\n\", \"time_limit\": 6.0}"} |
| {"id": "apps-01358", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"ABCABC\\\"\", \"\\\"ABC\\\"\"]], \"outputs\": [\"\"], \"testtype\": \"functional\", \"fn_name\": \"gcdOfStrings\", \"starter_code\": \"\\nclass Solution:\\n def gcdOfStrings(self, str1: str, str2: str) -> str:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01363", "n_tests": 1, "public_tests": "{\"inputs\": [[[7, 1, 5, 3, 6, 4]]], \"outputs\": [5], \"testtype\": \"functional\", \"fn_name\": \"maxProfit\", \"starter_code\": \"\\nclass Solution:\\n def maxProfit(self, prices: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01368", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"1.1.1.1\\\"\"]], \"outputs\": [\"\\\"1[.]1[.]1[.]1\\\"\"], \"testtype\": \"functional\", \"fn_name\": \"defangIPaddr\", \"starter_code\": \"\\nclass Solution:\\n def defangIPaddr(self, address: str) -> str:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01373", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 2, 3, 4, 4, 3, 2, 1]]], \"outputs\": [true], \"testtype\": \"functional\", \"fn_name\": \"hasGroupsSizeX\", \"starter_code\": \"\\nclass Solution:\\n def hasGroupsSizeX(self, deck: List[int]) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01378", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 4, 2, 5, 3]]], \"outputs\": [58], \"testtype\": \"functional\", \"fn_name\": \"sumOddLengthSubarrays\", \"starter_code\": \"\\nclass Solution:\\n def sumOddLengthSubarrays(self, arr: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01383", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 2, 3]]], \"outputs\": [3], \"testtype\": \"functional\", \"fn_name\": \"minMoves\", \"starter_code\": \"\\nclass Solution:\\n def minMoves(self, nums: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01388", "n_tests": 1, "public_tests": "{\"inputs\": [[[4, 5, 8], [10, 9, 1, 8], 2]], \"outputs\": [2], \"testtype\": \"functional\", \"fn_name\": \"findTheDistanceValue\", \"starter_code\": \"\\nclass Solution:\\n def findTheDistanceValue(self, arr1: List[int], arr2: List[int], d: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01393", "n_tests": 1, "public_tests": "{\"inputs\": [[\"\\\"i love eating burger\\\"\", \"\\\"burg\\\"\"]], \"outputs\": [-1], \"testtype\": \"functional\", \"fn_name\": \"isPrefixOfWord\", \"starter_code\": \"\\nclass Solution:\\n def isPrefixOfWord(self, sentence: str, searchWord: str) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01398", "n_tests": 1, "public_tests": "{\"inputs\": [[1, 4]], \"outputs\": [2], \"testtype\": \"functional\", \"fn_name\": \"hammingDistance\", \"starter_code\": \"\\nclass Solution:\\n def hammingDistance(self, x: int, y: int) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01403", "n_tests": 1, "public_tests": "{\"inputs\": [[[2, 6, 4, 8, 10, 9, 15]]], \"outputs\": [5], \"testtype\": \"functional\", \"fn_name\": \"findUnsortedSubarray\", \"starter_code\": \"\\nclass Solution:\\n def findUnsortedSubarray(self, nums: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01408", "n_tests": 1, "public_tests": "{\"inputs\": [[[2, 2, 3, 4]]], \"outputs\": [2], \"testtype\": \"functional\", \"fn_name\": \"findLucky\", \"starter_code\": \"\\nclass Solution:\\n def findLucky(self, arr: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01413", "n_tests": 1, "public_tests": "{\"inputs\": [[16]], \"outputs\": [true], \"testtype\": \"functional\", \"fn_name\": \"isPowerOfFour\", \"starter_code\": \"\\nclass Solution:\\n def isPowerOfFour(self, num: int) -> bool:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01418", "n_tests": 1, "public_tests": "{\"inputs\": [[[[4, 3, 2, -1], [3, 2, 1, -1], [1, 1, -1, -2], [-1, -1, -2, -3], [], []]]], \"outputs\": [8], \"testtype\": \"functional\", \"fn_name\": \"countNegatives\", \"starter_code\": \"\\nclass Solution:\\n def countNegatives(self, grid: List[List[int]]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01423", "n_tests": 1, "public_tests": "{\"inputs\": [[[1, 2, 2, 6, 6, 6, 6, 7, 10]]], \"outputs\": [6], \"testtype\": \"functional\", \"fn_name\": \"findSpecialInteger\", \"starter_code\": \"\\nclass Solution:\\n def findSpecialInteger(self, arr: List[int]) -> int:\\n \", \"time_limit\": 6.0}"} |
| {"id": "apps-01428", "n_tests": 1, "public_tests": "{\"inputs\": [\"1 2\\n3 4\"], \"outputs\": [\"(1, 3) (1, 4) (2, 3) (2, 4)\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01433", "n_tests": 1, "public_tests": "{\"inputs\": [\"1222311\"], \"outputs\": [\"(1, 1) (3, 2) (1, 3) (2, 1)\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01438", "n_tests": 1, "public_tests": "{\"inputs\": [\"7\\nUK\\nChina\\nUSA\\nFrance\\nNew Zealand\\nUK\\nFrance\"], \"outputs\": [\"5\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01443", "n_tests": 1, "public_tests": "{\"inputs\": [\"ABCDEFGHIJKLIMNOQRSTUVWXYZ\\n4\"], \"outputs\": [\"ABCD\\nEFGH\\nIJKL\\nIMNO\\nQRST\\nUVWX\\nYZ\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01448", "n_tests": 1, "public_tests": "{\"inputs\": [[1990]], \"outputs\": [false], \"testtype\": \"functional\", \"fn_name\": \"is_leap\", \"starter_code\": \"\\ndef is_leap(year):\\n leap = False\\n \\n # Write your logic here\\n \\n return leap\\n\\nyear = int(input())\\nprint(is_leap(year))\", \"time_limit\": 6.0}"} |
| {"id": "apps-01453", "n_tests": 1, "public_tests": "{\"inputs\": [\"10\\n161 182 161 154 176 170 167 171 170 174\"], \"outputs\": [\"169.375\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01458", "n_tests": 1, "public_tests": "{\"inputs\": [\"HACK 2\"], \"outputs\": [\"AC\\nAH\\nAK\\nCA\\nCH\\nCK\\nHA\\nHC\\nHK\\nKA\\nKC\\nKH\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01463", "n_tests": 1, "public_tests": "{\"inputs\": [\"9\\n1 2 3 4 5 6 7 8 9\\n9\\n10 1 2 3 11 21 55 6 8\"], \"outputs\": [\"5\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01468", "n_tests": 1, "public_tests": "{\"inputs\": [\"12\\ninsert 0 5\\ninsert 1 10\\ninsert 0 6\\nprint\\nremove 6\\nappend 9\\nappend 1\\nsort\\nprint\\npop\\nreverse\\nprint\"], \"outputs\": [\"[6, 5, 10]\\n[1, 5, 9, 10]\\n[9, 5, 1]\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01473", "n_tests": 1, "public_tests": "{\"inputs\": [\"3\\n2\"], \"outputs\": [\"5\\n1\\n6\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01478", "n_tests": 1, "public_tests": "{\"inputs\": [\"2\\n<html><head><title>HTML Parser - I</title></head>\\n<body data-modal-target class='1'><h1>HackerRank</h1><br /></body></html>\"], \"outputs\": [\"Start : html\\nStart : head\\nStart : title\\nEnd : title\\nEnd : head\\nStart : body\\n-> data-modal-target > None\\n-> class > 1\\nStart : h1\\nEnd : h1\\nEmpty : br\\nEnd : body\\nEnd : html\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01483", "n_tests": 1, "public_tests": "{\"inputs\": [\"ABCDCDC\\nCDC\"], \"outputs\": [\"2\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01488", "n_tests": 1, "public_tests": "{\"inputs\": [\"qA2\"], \"outputs\": [\"True\\nTrue\\nTrue\\nTrue\\nTrue\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01493", "n_tests": 1, "public_tests": "{\"inputs\": [\"\"], \"outputs\": [\"Hello, World!\"], \"testtype\": \"stdin\", \"fn_name\": \"\", \"time_limit\": 6.0}"} |
| {"id": "apps-01498", "n_tests": 5, "public_tests": "{\"inputs\": [[4, 0.64, \"|~~2~~~22~2~~22~2~~~~2~~~|\"], [9, 0.22, \"|~~~~~~~2~2~~~|\"], [6, 0.41, \"|~~~~~22~2~~~~~|\"], [8, 0.05, \"|2~~~~|\"], [8, 0.92, \"|~~~~2~2~~~~~22~~2~~~~2~~~2|\"]], \"outputs\": [[\"|~~X~~~X2~2~~22~2~~~~2~~~|\"], [\"|~~~~~~~X~2~~~|\"], [\"|~~~~~XX~2~~~~~|\"], [\"|2~~~~|\"], [\"|~~~~X~X~~~~~XX~~X~~~~X~~~X|\"]], \"testtype\": \"functional\", \"fn_name\": \"duck_shoot\", \"starter_code\": \"\\ndef duck_shoot(ammo, aim, ducks):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01503", "n_tests": 5, "public_tests": "{\"inputs\": [[[[{\"P1\": \"XX\", \"P2\": \"XO\"}, true], [{\"P1\": \"OX\", \"P2\": \"OO\"}, false], [{\"P1\": \"XX\", \"P2\": \"OX\"}, true]]], [[[{\"P1\": \"XX\", \"P2\": \"XO\"}, false], [{\"P1\": \"OX\", \"P2\": \"XX\"}, false], [{\"P1\": \"OO\", \"P2\": \"XX\"}, true]]], [[[{\"P1\": \"OO\", \"P2\": \"XX\"}, false], [{\"P1\": \"OO\", \"P2\": \"XX\"}, false], [{\"P1\": \"XX\", \"P2\": \"OO\"}, true]]], [[[{\"P1\": \"XX\", \"P2\": \"XX\"}, true], [{\"P1\": \"XX\", \"P2\": \"OX\"}, false], [{\"P1\": \"OO\", \"P2\": \"OX\"}, true]]], [[[{\"P1\": \"XX\", \"P2\": \"XX\"}, true], [{\"P1\": \"OO\", \"P2\": \"OO\"}, false], [{\"P1\": \"XX\", \"P2\": \"XX\"}, true]]]], \"outputs\": [[\"Pete Wins!\"], [\"Phil Wins!\"], [\"Draw!\"], [\"Phil Wins!\"], [\"Draw!\"]], \"testtype\": \"functional\", \"fn_name\": \"shoot\", \"starter_code\": \"\\ndef shoot(results):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01508", "n_tests": 4, "public_tests": "{\"inputs\": [[50, 25, 2], [60, 30, 3], [70, 25, 1], [100, 25, 3]], \"outputs\": [[true], [true], [false], [false]], \"testtype\": \"functional\", \"fn_name\": \"zero_fuel\", \"starter_code\": \"\\ndef zero_fuel(distance_to_pump, mpg, fuel_left):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01513", "n_tests": 6, "public_tests": "{\"inputs\": [[432, 3554, 291, 28, 2], [5, 76, 4, 1, 0], [48, 192, 19, 2, 3], [1, 2, 1, 1, 0], [34, 172, 20, 1, 1], [10, 17, 2, 0, 1]], \"outputs\": [[112.2], [158.3], [39.6], [118.8], [69.7], [0.0]], \"testtype\": \"functional\", \"fn_name\": \"passer_rating\", \"starter_code\": \"\\ndef passer_rating(att, yds, comp, td, ints):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01518", "n_tests": 8, "public_tests": "{\"inputs\": [[720, 850, 70], [80, 91, 37], [80, 100, 40], [720, 850, 37], [720, 850, 370], [120, 850, 37], [820, 850, 550], [820, 81, 550]], \"outputs\": [[[0, 32, 18]], [[3, 21, 49]], [[2, 0, 0]], [[0, 17, 4]], [[2, 50, 46]], [[0, 3, 2]], [[18, 20, 0]], [null]], \"testtype\": \"functional\", \"fn_name\": \"race\", \"starter_code\": \"\\ndef race(v1, v2, g):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01523", "n_tests": 6, "public_tests": "{\"inputs\": [[\"Cat30\"], [\"Alice\"], [\"sponge1\"], [\"Hello World\"], [\"dogs\"], [\"z\"]], \"outputs\": [[\"dbU30\"], [\"bmjdf\"], [\"tqpOhf1\"], [\"Ifmmp xpsmE\"], [\"Epht\"], [\"A\"]], \"testtype\": \"functional\", \"fn_name\": \"changer\", \"starter_code\": \"\\ndef changer(string):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01528", "n_tests": 3, "public_tests": "{\"inputs\": [[[]], [[1, 2, 3, 4, 5, 6, 7, 8, 9]], [[1, 3, 3, 7, 4, 2]]], \"outputs\": [[[]], [[]], [[[1, 3, 3, 4, 7, 2], [1, 3, 3, 4, 2, 7], [1, 3, 3, 2, 4, 7], [1, 3, 2, 3, 4, 7], [1, 2, 3, 3, 4, 7]]]], \"testtype\": \"functional\", \"fn_name\": \"bubble\", \"starter_code\": \"\\ndef bubble(l):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01533", "n_tests": 11, "public_tests": "{\"inputs\": [[1], [5], [12], [42], [88], [89], [92], [100], [111], [200], [2017]], \"outputs\": [[\"white\"], [\"black\"], [\"black\"], [\"white\"], [\"white\"], [\"white\"], [\"white\"], [\"black\"], [\"white\"], [\"black\"], [\"white\"]], \"testtype\": \"functional\", \"fn_name\": \"black_or_white_key\", \"starter_code\": \"\\ndef black_or_white_key(key_press_count):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01538", "n_tests": 1, "public_tests": "{\"inputs\": [[2, 5]], \"outputs\": [[[2, 3, 4, 5]]], \"testtype\": \"functional\", \"fn_name\": \"generate_integers\", \"starter_code\": \"\\ndef generate_integers(m, n):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01543", "n_tests": 7, "public_tests": "{\"inputs\": [[34315], [123456], [8854778], [65432165432], [0], [1], [11111]], \"outputs\": [[true], [true], [false], [false], [false], [true], [true]], \"testtype\": \"functional\", \"fn_name\": \"loneliest\", \"starter_code\": \"\\ndef loneliest(number):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01548", "n_tests": 8, "public_tests": "{\"inputs\": [[4, \"The Fox asked the stork, 'How is the soup?'\"], [1, \"...\"], [3, \"This play was good for us.\"], [3, \"Suddenly he stopped, and glanced up at the houses\"], [6, \"Zebras evolved among the Old World horses within the last four million years.\"], [5, \"Although zebra species may have overlapping ranges, they do not interbreed.\"], [1, \"Oh!\"], [5, \"Now and then, however, he is horribly thoughtless, and seems to take a real delight in giving me pain.\"]], \"outputs\": [[7], [0], [3], [5], [11], [6], [0], [14]], \"testtype\": \"functional\", \"fn_name\": \"timed_reading\", \"starter_code\": \"\\ndef timed_reading(max_length, text):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01553", "n_tests": 10, "public_tests": "{\"inputs\": [[\"zero nine five two\"], [\"four six two three\"], [\"one two three four five\"], [\"five four\"], [\"zero zero zero zero zero\"], [\"one one eight one\"], [\"one\"], [\"\"], [\"ten\"], [\"pippi\"]], \"outputs\": [[\"four\"], [\"three\"], [\"three\"], [\"four\"], [\"zero\"], [\"two\"], [\"one\"], [\"n/a\"], [\"n/a\"], [\"n/a\"]], \"testtype\": \"functional\", \"fn_name\": \"average_string\", \"starter_code\": \"\\ndef average_string(s):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01558", "n_tests": 10, "public_tests": "{\"inputs\": [[0], [-3], [45], [759], [1236], [1447], [7832], [18876], [259180], [-349000]], \"outputs\": [[\"Sunday 00:00\"], [\"Saturday 23:57\"], [\"Sunday 00:45\"], [\"Sunday 12:39\"], [\"Sunday 20:36\"], [\"Monday 00:07\"], [\"Friday 10:32\"], [\"Saturday 02:36\"], [\"Thursday 23:40\"], [\"Tuesday 15:20\"]], \"testtype\": \"functional\", \"fn_name\": \"day_and_time\", \"starter_code\": \"\\ndef day_and_time(mins):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01563", "n_tests": 4, "public_tests": "{\"inputs\": [[[[1]]], [[[1, 2, 3], [4, 5, 6]]], [[[1, 2, 3], [[4, 5], [[6], [7, 8]]]]], [[[[1, 2, 3], [9, 10]], [[4, 5], [6, 7, 8]]]]], \"outputs\": [[[[1]]], [[[1, 2, 3], [4, 5, 6]]], [[[1, 2, 3], [4, 5], [6], [7, 8]]], [[[1, 2, 3], [4, 5], [6, 7, 8], [9, 10]]]], \"testtype\": \"functional\", \"fn_name\": \"near_flatten\", \"starter_code\": \"\\ndef near_flatten(nested):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01568", "n_tests": 6, "public_tests": "{\"inputs\": [[[[1, 2, 2, 1], [2, 2, 2, 1]]], [[[52, 64, 84, 21, 54], [44, 87, 46, 90, 43]]], [[[44, 76, 12], [96, 12, 34, 53, 76, 34, 56, 86, 21], [34, 65, 34, 76, 34, 87, 34]]], [[[41, 16, 99, 93, 59, 18, 35, 23, 55, 45, 38, 39, 74, 60, 95, 44, 59, 70, 44, 89, 90, 19, 23, 67, 65, 66, 41, 89, 49, 22, 23, 47, 60, 12, 59, 58, 25, 69, 66, 82, 53, 41, 51, 69, 78, 18, 17, 44, 74, 96, 46, 73, 22, 37, 95, 32, 62, 49, 8, 88, 59, 66, 23, 10, 61, 28, 11, 99, 27, 98, 8, 18, 73, 18, 61, 25, 60, 38, 81, 13, 36, 63, 12, 83, 57, 11, 19, 51, 41, 20, 37, 63, 79, 94, 25, 45, 24, 73, 67, 42]]], [[[3, 4, 1, 3, 5, 1, 4], [21, 54, 33, 21, 76]]], [[[-4, 3, -8, -2], [2, 9, 1, -5], [-7, -2, -6, -4]]]], \"outputs\": [[3], [117], [148], [50], [44], [-6]], \"testtype\": \"functional\", \"fn_name\": \"sum_average\", \"starter_code\": \"\\ndef sum_average(arr):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01573", "n_tests": 5, "public_tests": "{\"inputs\": [[[{\"name\": \"Bart\"}, {\"name\": \"Lisa\"}, {\"name\": \"Maggie\"}, {\"name\": \"Homer\"}, {\"name\": \"Marge\"}]], [[{\"name\": \"Bart\"}, {\"name\": \"Lisa\"}, {\"name\": \"Maggie\"}]], [[{\"name\": \"Bart\"}, {\"name\": \"Lisa\"}]], [[{\"name\": \"Bart\"}]], [[]]], \"outputs\": [[\"Bart, Lisa, Maggie, Homer & Marge\"], [\"Bart, Lisa & Maggie\"], [\"Bart & Lisa\"], [\"Bart\"], [\"\"]], \"testtype\": \"functional\", \"fn_name\": \"namelist\", \"starter_code\": \"\\ndef namelist(names):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01578", "n_tests": 8, "public_tests": "{\"inputs\": [[\"Joe had a bad day\"], [\"Joe had some bad days\"], [\"Joe is having no fun\"], [\"Sometimes joe cries for hours\"], [\"Joe is having lots of fun\"], [\"Joe is working hard a lot\"], [\"Joe listened to the noise and it was an onamonapia\"], [\"Joe listened to the noises and there were some onamonapias\"]], \"outputs\": [[\"Good work Joe!\"], [\"Good work Joe!\"], [\"Keep It Simple Stupid\"], [\"Keep It Simple Stupid\"], [\"Good work Joe!\"], [\"Keep It Simple Stupid\"], [\"Good work Joe!\"], [\"Keep It Simple Stupid\"]], \"testtype\": \"functional\", \"fn_name\": \"is_kiss\", \"starter_code\": \"\\ndef is_kiss(words):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01583", "n_tests": 6, "public_tests": "{\"inputs\": [[[1, 2, 3], [\"c\", \"d\", \"e\"]], [[1, 2, 3], [4, 5]], [[1, 2], [3, 4, 5]], [[null], [null, null], [null, null, null]], [[1, 2, 3], [4, 5, 6], [7, 8, 9]], [[]]], \"outputs\": [[[1, \"c\", 2, \"d\", 3, \"e\"]], [[1, 4, 2, 5, 3, null]], [[1, 3, 2, 4, null, 5]], [[null, null, null, null, null, null, null, null, null]], [[1, 4, 7, 2, 5, 8, 3, 6, 9]], [[]]], \"testtype\": \"functional\", \"fn_name\": \"interleave\", \"starter_code\": \"\\ndef interleave(*args):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01588", "n_tests": 7, "public_tests": "{\"inputs\": [[5, 1], [5, 2], [10, 2], [20, 8], [100, 8], [100, 3], [100, 2]], \"outputs\": [[[2]], [[5]], [[5, 10]], [[]], [[65, 85]], [[25, 100]], [[5, 10, 13, 17, 20, 26, 29, 34, 37, 40, 41, 45, 52, 53, 58, 61, 68, 73, 74, 80, 82, 89, 90, 97]]], \"testtype\": \"functional\", \"fn_name\": \"find_abc_sumsqcube\", \"starter_code\": \"\\ndef find_abc_sumsqcube(c_max, num_sol):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01593", "n_tests": 3, "public_tests": "{\"inputs\": [[\"10197115121\"], [\"98\"], [\"122\"]], \"outputs\": [[\"easy\"], [\"b\"], [\"z\"]], \"testtype\": \"functional\", \"fn_name\": \"decipher\", \"starter_code\": \"\\ndef decipher(cipher):\\n\\t\", \"time_limit\": 6.0}"} |
| {"id": "apps-01598", "n_tests": 10, "public_tests": "{\"inputs\": [[1], [1000], [100.2346], [1000000000.23], [9123.212], [-1], [-1000000.123], [-2000.0], [-999.9999], [-1234567.0001236]], \"outputs\": [[\"1\"], [\"1,000\"], [\"100.235\"], [\"1,000,000,000.23\"], [\"9,123.212\"], [\"-1\"], [\"-1,000,000.123\"], [\"-2,000\"], [\"-1,000\"], [\"-1,234,567\"]], \"testtype\": \"functional\", \"fn_name\": \"commas\", \"starter_code\": \"\\ndef commas(num):\\n\\t\", \"time_limit\": 6.0}"} |
|
|