data_source stringclasses 3
values | prompt listlengths 2 2 | ability stringclasses 1
value | reward_model dict | sub_source stringclasses 12
values | extra_info dict |
|---|---|---|---|---|---|
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Masha has three sticks of length $a$, $b$ and $c$ ce... | code | {
"ground_truth": "{\"inputs\": [\"3 4 5\\n\", \"2 5 3\\n\", \"100 10 10\\n\", \"1 1 1\\n\", \"100 100 100\\n\", \"100 1 1\\n\", \"12 34 56\\n\", \"68 1 67\\n\", \"100 100 1\\n\", \"100 1 99\\n\", \"23 56 33\\n\", \"98 12 23\\n\", \"88 2 6\\n\", \"1 50 87\\n\", \"1 50 100\\n\", \"1 92 13\\n\", \"56 42 87\\n\", \"100 ... | EASY | {
"id": "taco-train-7467",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You all might have heard about hamming distance in I... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4 5\\n127 126\\n\\nSAMPLE\", \"2\\n4 5\\n127 126\\n\\nSANPLE\", \"2\\n4 5\\n74 126\\n\\nRANPLE\", \"2\\n4 5\\n13 126\\n\\nRANPLE\", \"2\\n4 5\\n5 126\\n\\nLEPNAR\", \"2\\n4 3\\n5 126\\n\\nLEPNAR\", \"2\\n4 3\\n10 126\\n\\nLEPNAR\", \"2\\n4 0\\n10 126\\n\\nLEPNAR\", \"2\\n6 5\\n1... | none | {
"id": "hamming-distance-1",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Today's morning was exceptionally snowy. Meshanya de... | code | {
"ground_truth": "{\"inputs\": [\"4 3\\n9 2\\n0 1\\n\", \"4 3\\n1 1\\n1 2\\n\", \"99 20\\n87 7\\n46 20\\n\", \"1 30\\n2 4\\n99 28\\n\", \"30 2\\n88 1\\n2 2\\n\", \"80 90\\n12 74\\n75 4\\n\", \"19 50\\n36 15\\n90 16\\n\", \"71 100\\n56 44\\n12 85\\n\", \"89 61\\n73 38\\n69 18\\n\", \"59 13\\n42 12\\n16 4\\n\", \"1 5\... | rating_<=1200 | {
"id": "1099_A. Snowball",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "# Story\n\nWell, here I am stuck in another traffic j... | code | {
"ground_truth": "{\"fn_name\": \"traffic_jam\", \"inputs\": [[\"abcdeXghi\", [\"\", \"\", \"CCCCC\", \"\", \"EEEEEEEEEE\", \"FFFFFF\", \"\", \"\", \"IIIIII\"]], [\"abcdefX\", []], [\"abcXdef\", []], [\"Xabcdef\", []], [\"abcdefghijklmX\", [\"\", \"\", \"\", \"BBBBBB\", \"\", \"\", \"\", \"\", \"CCCCC\"]], [\"abcdef... | EASY | {
"id": "taco-train-20470",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "On the planet Mars a year lasts exactly n days (ther... | code | {
"ground_truth": "{\"inputs\": [\"2\\n\", \"14\\n\", \"23\\n\", \"234108\\n\", \"9\\n\", \"99983\\n\", \"987\\n\", \"868523\\n\", \"30\\n\", \"11\\n\", \"234115\\n\", \"99\\n\", \"868512\\n\", \"999985\\n\", \"18\\n\", \"234118\\n\", \"999994\\n\", \"868528\\n\", \"868526\\n\", \"3\\n\", \"1000000\\n\", \"12\\n\", \... | rating_<=1200 | {
"id": "670_A. Holidays",
"rating": 900,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "One day Polycarp published a funny picture in a soci... | code | {
"ground_truth": "{\"inputs\": [\"6\\nMike reposted Polycarp\\nMax reposted Polycarp\\nEveryOne reposted Polycarp\\n111 reposted Polycarp\\nVkCup reposted Polycarp\\nCodeforces reposted Polycarp\\n\", \"1\\nSoMeStRaNgEgUe reposted PoLyCaRp\\n\", \"5\\ntourist reposted Polycarp\\nPetr reposted Tourist\\nWJMZBMR repos... | rating_<=1200 | {
"id": "522_A. Reposts",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "SKIT's Language Department are studying an incredibl... | code | {
"ground_truth": "{\"inputs\": [\"22\\n1 1\\t\\n2 10\\n3 2\\n44 7\\n1000000000 26\\n999999999 25\\n23 23\\n40 19\\n39 19\\n1000000000 1\\n757148 26\\n301413357 26\\n659598369 26\\n391749388 26\\n35766291 26\\n473038165 26\\n3615545 26\\n392289611 26\\n170427799 26\\n675016434 26\\n100757147 19\\n401413356 23\", \"22... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-21185",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given two integers A and B.\nPrint a grid wh... | code | {
"ground_truth": "{\"inputs\": [\"2 3\\n\", \"7 8\\n\", \"1 1\\n\", \"3 14\\n\", \"209 499\\n\", \"218 93\\n\", \"276 36\\n\", \"484 451\\n\", \"111 28\\n\", \"1 500\\n\", \"123 456\\n\", \"499 97\\n\", \"135 5\\n\", \"233 233\\n\", \"101 102\\n\", \"60 57\\n\", \"100 2\\n\", \"3 4\\n\", \"8 11\\n\", \"100 8\\n\", \... | HARD | {
"id": "taco-train-23635",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Vasya has become interested in wrestling. In wrestli... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1\\n2\\n-3\\n-4\\n3\\n\", \"3\\n-1\\n-2\\n3\\n\", \"2\\n4\\n-4\\n\", \"4\\n16\\n12\\n19\\n-98\\n\", \"11\\n1\\n-1\\n1\\n-1\\n1\\n-1\\n1\\n-1\\n1\\n-1\\n1\\n\", \"10\\n-1\\n-2\\n-3\\n-4\\n-5\\n5\\n4\\n3\\n2\\n1\\n\", \"5\\n1000000000\\n1000000000\\n1000000000\\n-1000000000\\n-100... | rating_1201-1400 | {
"id": "493_B. Vasya and Wrestling",
"rating": 1400,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The king Copa often has been reported about the Code... | code | {
"ground_truth": "{\"inputs\": [\"01.01.98\\n01.01.80\", \"20.10.20\\n10.02.30\", \"28.02.74\\n28.02.64\", \"05.05.25\\n06.02.71\", \"19.11.54\\n29.11.53\", \"01.06.84\\n24.04.87\", \"30.06.43\\n14.09.27\", \"09.05.55\\n25.09.42\", \"14.05.21\\n02.01.88\", \"27.12.51\\n26.06.22\", \"12.10.81\\n18.11.04\", \"26.04.11... | rating_1601-1900 | {
"id": "30B",
"rating": 1700,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given N real values A_1, A_2, \\ldots, A_N. ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n7.5\\n2.4\\n17.000000001\\n17\\n16.000000000\", \"11\\n0.9\\n1\\n1\\n1.25\\n2.30000\\n5\\n70\\n0.000000001\\n9999.999999999\\n0.999999999\\n1.000000001\", \"5\\n7.5\\n2.4\\n17.000000001\\n17\\n16.487690532545415\", \"5\\n7.950925288494011\\n2.4\\n17.000000001\\n17\\n16.487690532... | none | {
"id": "p02588 AtCoder Grand Contest 047 - Integer Product",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Problem\n\nAizu Magic School is a school where peopl... | code | {
"ground_truth": "{\"inputs\": [\"10 2\\n2 3 1\\n3 5 1\", \"1 0\", \"10 3\\n2 2 1\\n4 2 1\\n8 1 1\", \"10 2\\n2 3 1\\n1 5 1\", \"10 2\\n2 3 1\\n1 5 0\", \"10 0\\n2 3 1\\n1 5 1\", \"18 0\\n2 3 1\\n1 5 1\", \"0 0\\n2 -1 1\\n0 1 1\", \"1 0\\n2 0 2\\n1 2 1\", \"2 1\\n1 0 7\\n4 -1 0\", \"10 3\\n2 0 1\\n4 2 1\\n8 1 1\", \... | none | {
"id": "p01018 Warping Girl",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Bob likes to draw camels: with a single hump, two hu... | code | {
"ground_truth": "{\"inputs\": [\"6 1\\n\", \"4 2\\n\", \"19 10\\n\", \"19 4\\n\", \"20 9\\n\", \"19 7\\n\", \"4 9\\n\", \"19 9\\n\", \"4 1\\n\", \"20 1\\n\", \"19 1\\n\", \"20 10\\n\", \"3 2\\n\", \"5 5\\n\", \"5 10\\n\", \"19 6\\n\", \"6 10\\n\", \"3 3\\n\", \"4 3\\n\", \"5 3\\n\", \"20 4\\n\", \"20 8\\n\", \"19 2... | rating_1601-1900 | {
"id": "14_E. Camels",
"rating": 1900,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Imp is really pleased that you helped him. But it yo... | code | {
"ground_truth": "{\"inputs\": [\"3 3\", \"6 6\", \"8 3\", \"10 10\", \"300000 1000000000\", \"300000 3529833\", \"21 28\", \"299999 3529763\", \"289828 278610\", \"295500 1488939\", \"300000 6\", \"120 468\", \"12 19\", \"10 1\", \"40 112\", \"48 142\", \"60 191\", \"72 244\", \"96 353\", \"300000 1700292\", \"2 1\... | rating_>1900 | {
"id": "922F",
"rating": 2400,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a permutation $p$ of length $n$, an ar... | code | {
"ground_truth": "{\"inputs\": [\"5\\n4 2 2\\n1 2 3 4\\n1 3\\n5 2 4\\n5 4 3 2 1\\n5 2\\n5 3 3\\n3 4 1 5 2\\n3 1 2\\n2 2 1\\n1 2\\n2 1\\n6 2 4\\n1 2 3 4 5 6\\n2 5\\n\"], \"outputs\": [\"1\\n3\\n2\\n0\\n2\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-15334",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Given is a sequence of N digits a_1a_2\\ldots a_N, w... | code | {
"ground_truth": "{\"inputs\": [\"10\\n2311312312\", \"4\\n1231\", \"4\\n2332\", \"4\\n3121\", \"4\\n1311\", \"10\\n1806305381\", \"4\\n2465\", \"10\\n2192114600\", \"4\\n2113\", \"10\\n3104206232\", \"4\\n2121\", \"4\\n2010\", \"10\\n2763272837\", \"10\\n1238013900\", \"10\\n1665759416\", \"10\\n2224468077\", \"4\\... | none | {
"id": "p02736 AtCoder Grand Contest 043 - 123 Triangle",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A typical strategy in the game Starcraft is to mass ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n0 0\\n0 0\\n1.\\n..\\n0\\n\", \"2\\n0 0\\n0 0\\n1.\\n.2\\n100\\n\"], \"outputs\": [\"1.\\n..\\n\", \"..\\n..\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-23049",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Little girl Susie went shopping with her mom and she... | code | {
"ground_truth": "{\"inputs\": [\"5\\n15 2 1 5 3\\n\", \"15\\n1 1 1 1 1 1 1 1 1 1 1 1 1 1 1\\n\", \"10\\n13 2 5 55 21 34 1 8 1 3\\n\", \"10\\n8 256 16 1 2 1 64 4 128 32\\n\", \"10\\n10000 40000 10000 50000 20000 100000 10000 100 30000 500\\n\", \"1\\n1000000000\\n\", \"15\\n9 11 45 86 52 65 35 3 93 7 21 45 15 11 39\... | EASY | {
"id": "taco-train-17934",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "N programmers are going to participate in the prelim... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 1\\n0 8\\n7 1\", \"2\\n2 2\\n9 1\", \"3\\n1 0\\n0 8\\n7 1\", \"3\\n1 0\\n0 8\\n7 2\", \"3\\n1 0\\n0 10\\n7 2\", \"3\\n1 0\\n0 17\\n7 2\", \"3\\n1 1\\n0 17\\n7 2\", \"3\\n1 1\\n0 4\\n7 2\", \"3\\n1 0\\n0 4\\n7 2\", \"3\\n1 0\\n0 4\\n7 1\", \"3\\n1 0\\n0 3\\n7 1\", \"3\\n1 1\\n0... | none | {
"id": "p02856 DISCO Presents Discovery Channel Code Contest 2020 Qual - Digit Sum Replace",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A binary matrix is called good if every even length ... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n101\\n001\\n110\\n\", \"7 15\\n000100001010010\\n100111010110001\\n101101111100100\\n010000111111010\\n111010010100001\\n000011001111101\\n111111011010011\\n\", \"2 58\\n1100001110010010100001000000000110110001101001100010101110\\n1110110010101111001110010001100010001010100011... | rating_>1900 | {
"id": "1391_D. 505",
"rating": 2000,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "### Lyrics...\n\nPyramids are amazing! Both in archit... | code | {
"ground_truth": "{\"fn_name\": \"longest_slide_down\", \"inputs\": [[[[3], [7, 4], [2, 4, 6], [8, 5, 9, 3]]], [[[75], [95, 64], [17, 47, 82], [18, 35, 87, 10], [20, 4, 82, 47, 65], [19, 1, 23, 75, 3, 34], [88, 2, 77, 73, 7, 63, 67], [99, 65, 4, 28, 6, 16, 70, 92], [41, 41, 26, 56, 83, 40, 80, 70, 33], [41, 48, 72, ... | MEDIUM_HARD | {
"id": "taco-train-24597",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A new pack of *n* t-shirts came to a shop. Each of t... | code | {
"ground_truth": "{\"inputs\": [\"5\\n300 200 400 500 911\\n1 2 1 2 3\\n2 1 3 2 1\\n6\\n2 3 1 2 1 1\", \"2\\n1000000000 1\\n1 1\\n1 2\\n2\\n2 1\", \"10\\n251034796 163562337 995167403 531046374 341924810 828969071 971837553 183763940 857690534 687685084\\n3 2 1 3 2 3 1 3 2 1\\n2 3 3 1 2 3 2 3 3 2\\n10\\n1 3 2 3 2 3 ... | rating_1201-1400 | {
"id": "799B",
"rating": 1400,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Statement: Security is the major factor, which is pr... | code | {
"ground_truth": "{\"inputs\": [\"1\\n23695632789\\n\\nSAMPLE\", \"20\\n80875509139150\\n95430550654418\\n25016833771952\\n78883205819874\\n46384481177665\\n19217827310786\\n93809788767248\\n90739163663237\\n30416526249610\\n13620356144384\\n76880501210689\\n48034190642647\\n58702957094647\\n11850427393802\\n7121082... | none | {
"id": "security-breach-1",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are playing the game \"Arranging The Sheep\". Th... | code | {
"ground_truth": "{\"inputs\": [\"5\\n6\\n**.*..\\n5\\n*****\\n3\\n.*.\\n3\\n...\\n10\\n*.*...*.**\\n\", \"2\\n6\\n**..**\\n4\\n**..\\n\", \"2\\n10\\n*.*...*.**\\n3\\n...\\n\", \"2\\n10\\n**.*...*.*\\n3\\n...\\n\", \"2\\n10\\n*..*..**.*\\n3\\n...\\n\", \"2\\n6\\n**..**\\n4\\n..**\\n\", \"2\\n6\\n**.**.\\n4\\n..**\\n... | rating_1201-1400 | {
"id": "1520_E. Arranging The Sheep",
"rating": 1400,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Your boss decided to save money by purchasing some cu... | code | {
"ground_truth": "{\"fn_name\": \"string_clean\", \"inputs\": [[\"\"], [\"! !\"], [\"123456789\"], [\"(E3at m2e2!!)\"], [\"Dsa32 cdsc34232 csa!!! 1I 4Am cool!\"], [\"A1 A1! AAA 3J4K5L@!!!\"], [\"Adgre2321 A1sad! A2A3A4 fv3fdv3J544K5L@\"], [\"Ad2dsad3ds21 A 1$$s122ad! A2A3Ae24 f44K5L@222222 \"], [\"33333Ad2dsad3ds... | EASY | {
"id": "taco-train-22736",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Ancient Egyptians are known to have understood diffi... | code | {
"ground_truth": "{\"inputs\": [\"((1?(5?7))?((6?2)?7))\\n3 2\\n\", \"(1?1)\\n1 0\\n\", \"((1?(5?7))?((6?2)?7))\\n2 3\\n\", \"(2?(1?2))\\n1 1\\n\", \"(((6?((2?(9?(3?(2?((3?((1?(1?(6?(9?(((6?((3?(((((6?(1?(1?((((2?(1?(1?((6?(6?(4?(8?((9?(((7?((5?(9?(3?((((7?((9?(4?(8?(((((9?(1?(((8?(6?(6?((5?(((5?(7?((((1?((1?(4?((7?... | rating_>1900 | {
"id": "935_E. Fafa and Ancient Mathematics",
"rating": 2300,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The Berland capital is shaken with three bold crimes... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n.*\\n..\\n**\", \"2 5\\n*....\\n*...*\", \"7 2\\n..\\n**\\n..\\n..\\n..\\n..\\n.*\", \"7 2\\n*.\\n..\\n..\\n..\\n..\\n..\\n**\", \"2 10\\n*......*..\\n.......*..\", \"10 3\\n*..\\n...\\n...\\n...\\n...\\n...\\n...\\n...\\n...\\n**.\", \"100 2\\n*.\\n..\\n..\\n..\\n..\\n..\\n..... | rating_<=1200 | {
"id": "181A",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You've gotten an n × m sheet of squared paper. Some ... | code | {
"ground_truth": "{\"inputs\": [\"5 4\\n####\\n#..#\\n#..#\\n#..#\\n####\\n\", \"5 5\\n#####\\n#...#\\n#####\\n#...#\\n#####\\n\", \"10 10\\n..........\\n.#####....\\n.#........\\n.#.###....\\n.#.###....\\n.#.###....\\n.#..##....\\n.#####....\\n..........\\n..........\\n\", \"5 3\\n###\\n###\\n.#.\\n###\\n###\\n\", ... | rating_1601-1900 | {
"id": "193_A. Cutting Figure",
"rating": 1700,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Aoki is in search of Takahashi, who is missing in a ... | code | {
"ground_truth": "{\"inputs\": [\"6\\n40\", \"101\\n80\", \"3\\n100\", \"6\\n36\", \"101\\n141\", \"3\\n101\", \"6\\n38\", \"101\\n233\", \"3\\n111\", \"6\\n59\", \"101\\n416\", \"3\\n001\", \"6\\n106\", \"101\\n221\", \"3\\n011\", \"6\\n174\", \"101\\n27\", \"3\\n010\", \"6\\n95\", \"101\\n37\", \"3\\n110\", \"6\\n... | none | {
"id": "p03901 CODE FESTIVAL 2016 Elimination Tournament Round 2 (Parallel) - Takahashi is Missing!",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Bear Limak likes watching sports on TV. He is going ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n7 20 88\\n\", \"9\\n16 20 30 40 50 60 70 80 90\\n\", \"9\\n15 20 30 40 50 60 70 80 90\\n\", \"30\\n6 11 12 15 22 24 30 31 32 33 34 35 40 42 44 45 47 50 53 54 57 58 63 67 75 77 79 81 83 88\\n\", \"60\\n1 2 4 5 6 7 11 14 16 18 20 21 22 23 24 25 26 33 34 35 36 37 38 39 41 42 43 44 ... | EASY | {
"id": "taco-train-16227",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an array A[] of N integers. The task is to part... | code | {
"ground_truth": "{\"inputs\": [\"N = 5\\r\\nA[] = [4,2,2,5,1]\", \"N = 4\\r\\nA[] = {4,4,4,4}\"], \"outputs\": [\"4\", \"0\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-19188",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "In this problem you will be doing some funny operati... | code | {
"ground_truth": "{\"inputs\": [\"10\\n16\\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16\\n16\\n15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0\\n16\\n7 19 25 12 18 1 20 28 8 6 4 9 14 24 21 2\\n16\\n3 21 6 20 25 22 29 28 13 15 19 11 24 8 12 1\\n16\\n21 28 5 3 13 27 6 23 20 9 25 1 8 29 10 15\\n16\\n0 27 18 26 22 15 13 24 17 25 2 6 2... | EASY | {
"id": "taco-train-17772",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Our smart travel agent, Mr. X's current assignment i... | code | {
"ground_truth": "{\"inputs\": [\"7 10\\n1 2 30\\n1 3 15\\n1 4 10\\n2 4 25\\n2 5 60\\n3 4 40\\n3 6 20\\n4 7 35\\n5 7 20\\n6 7 30\\n1 7 99\\n\\nSAMPLE\", \"7 10\\n1 2 30\\n1 3 15\\n1 4 10\\n2 4 25\\n2 5 60\\n2 4 40\\n3 6 20\\n4 7 35\\n5 7 20\\n6 7 30\\n1 7 99\\n\\nSAMPLE\", \"7 10\\n1 2 30\\n1 3 15\\n1 4 10\\n2 4 25\... | none | {
"id": "smart-travel-agent",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Given a lowercase English letter c, determine whethe... | code | {
"ground_truth": "{\"inputs\": [\"a\\n\", \"z\\n\", \"s\\n\", \"t\", \"o\", \"y\", \"`\", \"r\", \"x\", \"b\", \"q\", \"w\", \"_\", \"p\", \"{\", \"^\", \"|\", \"]\", \"n\", \"}\", \"\\\\\", \"m\", \"~\", \"[\", \"l\", \"\\u007f\", \"Z\", \"k\", \"\\u0080\", \"Y\", \"j\", \"\\u0081\", \"X\", \"i\", \"\\u0082\", \"W\... | EASY | {
"id": "taco-train-17281",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "One day three best friends Petya, Vasya and Tonya de... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 1 0\\n1 1 1\\n1 0 0\", \"2\\n1 0 0\\n0 1 1\", \"1\\n1 0 0\", \"2\\n1 0 0\\n1 1 1\", \"5\\n1 0 0\\n0 1 0\\n1 1 1\\n0 0 1\\n0 0 0\", \"10\\n0 1 0\\n0 1 0\\n1 1 0\\n1 0 0\\n0 0 1\\n0 1 1\\n1 1 1\\n1 1 0\\n0 0 0\\n0 0 0\", \"15\\n0 1 0\\n1 0 0\\n1 1 0\\n1 1 1\\n0 1 0\\n0 0 1\\n1 0... | rating_<=1200 | {
"id": "231A",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Colossal! — exclaimed Hawk-nose. — A programmer! Tha... | code | {
"ground_truth": "{\"inputs\": [\"3\\n0\\n2\\n1073741823\\n\", \"9\\n2\\n2\\n8\\n228\\n1\\n4\\n8\\n8\\n1488\\n\", \"9\\n2\\n2\\n8\\n228\\n1\\n4\\n8\\n8\\n1488\\n\", \"9\\n3\\n2\\n8\\n228\\n1\\n4\\n8\\n8\\n1488\\n\", \"3\\n0\\n2\\n507180918\\n\", \"9\\n3\\n2\\n8\\n228\\n1\\n6\\n8\\n8\\n1488\\n\", \"3\\n1\\n2\\n507180... | EASY | {
"id": "taco-train-412",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Russian version of the problem can be read here.\n\n... | code | {
"ground_truth": "{\"inputs\": [\"5\\n2 3 4 1 1\\n\\nSAMPLE\", \"1000\\n3 6 10 2 7 0 12 2 10 10 3 6 7 8 9 6 8 12 11 4 8 6 12 5 10 7 9 1 2 1 10 4 12 12 11 13 12 12 10 0 13 12 4 10 3 0 13 1 11 3 0 9 7 8 12 5 7 7 0 3 12 4 5 11 7 6 3 13 5 8 12 5 8 12 3 4 5 5 1 13 2 9 11 2 2 0 13 0 2 6 12 10 0 9 2 1 6 12 9 4 10 4 5 12 7 ... | none | {
"id": "doghouses",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Vasiliy lives at point (a, b) of the coordinate plan... | code | {
"ground_truth": "{\"inputs\": [\"1 3\\n3\\n3 3 2\\n-2 3 6\\n-2 7 10\\n\", \"0 0\\n2\\n2 0 1\\n0 2 2\\n\", \"66 -82\\n43\\n27 -21 70\\n-64 46 58\\n-7 -20 41\\n-42 60 57\\n-93 -7 95\\n26 -61 26\\n-10 -72 25\\n-78 -18 55\\n-62 -64 69\\n-33 95 50\\n24 59 45\\n4 72 37\\n66 57 61\\n16 -60 5\\n17 -78 36\\n-75 56 59\\n-60 ... | rating_<=1200 | {
"id": "706_A. Beru-taxi",
"rating": 900,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "*\"We’ve already come too far to end this now\".*\n\... | code | {
"ground_truth": "{\"inputs\": [\"3 \\n5 \\n1 2 3 4 5 \\n6 \\n3 6 1 0 0 0 \\n10 \\n0 0 0 0 0 0 0 0 0 0\"], \"outputs\": [\"0 \\n3 \\n1334961\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-15558",
"rating": null,
"split": "confidence_train",
"sub_source": "VERY_HARD"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Consider some square matrix *A* with side *n* consis... | code | {
"ground_truth": "{\"inputs\": [\"4\", \"9\", \"10\", \"12\", \"1\", \"19\", \"3\", \"2\", \"5\", \"6\", \"7\", \"8\", \"11\", \"13\", \"14\", \"15\", \"16\", \"17\", \"18\", \"20\", \"21\", \"22\", \"23\", \"24\", \"25\", \"26\", \"27\", \"28\", \"29\", \"30\", \"31\", \"32\", \"33\", \"34\", \"35\", \"36\", \"37\"... | rating_1601-1900 | {
"id": "201A",
"rating": 1700,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an array A of N length. We need to calculate th... | code | {
"ground_truth": "{\"fn_name\": \"greaterElement\", \"inputs\": [\"arr[] = {13, 6, 7, 12}\", \"arr[] = {6, 3, 9, 8, 10, 2, 1, 15, 7}\"], \"outputs\": [\"_ 7 12 13\", \"7 6 10 9 15 3 2 _ 8\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-23148",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "You are given three piles of casino chips: white, gre... | code | {
"ground_truth": "{\"fn_name\": \"solve\", \"inputs\": [[[1, 1, 1]], [[1, 2, 1]], [[4, 1, 1]], [[8, 2, 8]], [[8, 1, 4]], [[7, 4, 10]], [[12, 12, 12]], [[1, 23, 2]]], \"outputs\": [[1], [2], [2], [9], [5], [10], [18], [3]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-8988",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A maze is represented by a tree (an undirected graph... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 2\\n1 3\\n1 0\\n0 2\\n0 3\\n\", \"7\\n1 2\\n1 3\\n2 4\\n2 5\\n3 6\\n3 7\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n\", \"2\\n1 2\\n0 1\\n1 0\\n\", \"21\\n7 14\\n15 3\\n14 16\\n13 16\\n20 8\\n9 15\\n18 21\\n2 8\\n19 15\\n1 5\\n21 11\\n13 1\\n16 19\\n17 21\\n13 11\\n12 3\\n4 11... | rating_>1900 | {
"id": "123_E. Maze",
"rating": 2500,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Anton likes permutations, especially he likes to per... | code | {
"ground_truth": "{\"inputs\": [\"5 4\\n4 5\\n2 4\\n2 5\\n2 2\", \"2 1\\n2 1\", \"6 7\\n1 4\\n3 5\\n2 3\\n3 3\\n3 6\\n2 1\\n5 1\", \"42 42\\n23 7\\n9 6\\n17 22\\n19 23\\n15 42\\n14 10\\n17 12\\n2 25\\n8 39\\n13 9\\n29 26\\n17 2\\n11 14\\n33 20\\n29 1\\n4 28\\n25 4\\n37 32\\n6 37\\n30 42\\n39 1\\n12 29\\n39 3\\n6 41\... | rating_>1900 | {
"id": "785E",
"rating": 2200,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A permutation of length n is an integer sequence suc... | code | {
"ground_truth": "{\"inputs\": [\"5\\n0 1 3 4 2\\n\", \"1\\n0\\n\", \"3\\n2 1 0\\n\", \"7\\n0 1 2 4 3 6 5\\n\", \"3\\n1 2 0\\n\", \"5\\n0 1 2 3 4\\n\", \"4\\n0 1 2 3\\n\", \"100\\n99 5 40 32 4 31 38 57 94 47 26 16 89 72 9 80 55 86 78 90 42 41 46 74 56 97 21 48 66 27 93 85 88 59 64 95 10 45 12 22 84 60 8 98 62 51 14 ... | rating_<=1200 | {
"id": "347_B. Fixed Points",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The country of Byteland contains N cities and N - 1 ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n3\\n0 1\\n1 2\\n5\\n0 1\\n1 2\\n2 3\\n2 4\\n\"], \"outputs\": [\"2\\n4\\n\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-11960",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "This kata is part of the collection [Mary's Puzzle Bo... | code | {
"ground_truth": "{\"fn_name\": \"spot_diff\", \"inputs\": [[\"abcdefg\", \"abcqetg\"], [\"Hello World!\", \"hello world.\"], [\"FixedGrey\", \"FixedGrey\"], [\"HACKER\", \"H4CK3R\"], [\"This is a really long sentence.\", \"That is a_really long sentence,\"], [\"\", \"\"], [\"abcdefghijklmnopqrstuvwxyz\", \"zyxwvuts... | EASY | {
"id": "taco-train-5279",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given names of two days of the week.\n\nPlea... | code | {
"ground_truth": "{\"inputs\": [\"monday\\ntuesday\", \"sunday\\nsunday\", \"saturday\\ntuesday\", \"tuesday\\nthursday\", \"friday\\nwednesday\", \"sunday\\nsaturday\", \"monday\\nmonday\", \"monday\\nwednesday\", \"monday\\nthursday\", \"monday\\nfriday\", \"monday\\nsaturday\", \"monday\\nsunday\", \"tuesday\\nmo... | rating_<=1200 | {
"id": "724A",
"rating": 1000,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Sherlock found a piece of encrypted data which he th... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 1e\\n1 f\\n\", \"2\\n1 abc\\nd0e fe23\\n\", \"1\\n1014 1014\\n\", \"7\\n1bbc 220c\\n25a5 25d0\\n1d11 1d4a\\n15e2 17c8\\n1b0b 23c4\\n179b 2120\\n1686 1c55\\n\", \"4\\n58 5c\\n2b 62\\n4b 5b\\n38 5c\\n\", \"7\\nb3 3df\\n114 25a\\nfd 307\\n182 3b0\\n17a 324\\n3ba 3c4\\n3ad 3af\\n\... | rating_>1900 | {
"id": "776_G. Sherlock and the Encrypted Data",
"rating": 2900,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "ZS the Coder loves to read the dictionary. He thinks... | code | {
"ground_truth": "{\"inputs\": [\"ABC??FGHIJK???OPQR?TUVWXY?\", \"WELCOMETOCODEFORCESROUNDTHREEHUNDREDANDSEVENTYTWO\", \"??????????????????????????\", \"AABCDEFGHIJKLMNOPQRSTUVW??M\", \"QWERTYUIOPASDFGHJKL???????\", \"ABABABBAB????????????ABABABABA???????????ABABABABA?????????KLCSJB?????????Z\", \"Q?E?T?U?O?A?D?G?J?... | rating_1201-1400 | {
"id": "716B",
"rating": 1300,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a Binary Tree, write a function to populate nex... | code | {
"ground_truth": "{\"inputs\": [\"10\\r\\n / \\\\\\r\\n 8 12\\r\\n /\\r\\n 3\", \"1\\r\\n / \\\\\\r\\n 2 3\"], \"outputs\": [\"3->8 8->10 10->12 12->-1\", \"2->1 1->3 3->-1\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-16024",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an array arr[] containing N integers. In one st... | code | {
"ground_truth": "{\"inputs\": [\"N = 3\\narr[] = {-2, 4, 0}\", \"N = 3\\narr[] = {-1, 1, -1}\"], \"outputs\": [\"5\", \"0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-13243",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The main street of Berland is a straight line with *... | code | {
"ground_truth": "{\"inputs\": [\"4 2\", \"8 5\", \"2 1\", \"2 2\", \"10 1\", \"10 10\", \"100000 100000\", \"100000 2\", \"100000 3\", \"100000 99999\", \"100 100\", \"3000 34\", \"2000 1\", \"100000 1\", \"24842 1038\", \"1628 274\", \"16186 337\", \"24562 2009\", \"9456 3443\", \"5610 332\", \"1764 1288\", \"2858... | rating_<=1200 | {
"id": "638A",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a permutation of integers from 1 to n.... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 3 1\\n\", \"1\\n1\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"3\\n1 2 3\\n\", \"3\\n2 1 3\\n\", \"3\\n3 1 2\\n\", \"3\\n1 3 2\\n\", \"3\\n3 2 1\\n\", \"4\\n1 4 2 3\\n\", \"4\\n4 2 3 1\\n\", \"10\\n1 2 3 4 5 6 7 8 9 10\\n\", \"10\\n10 1 9 2 8 3 7 4 6 5\\n\", \"10\\n1 6 2 7 3 8 4 9 ... | VERY_HARD | {
"id": "taco-train-20723",
"rating": null,
"split": "confidence_train",
"sub_source": "VERY_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given an array A of N integers A_{1}, A_{2},... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3\\n1 1 2\\n4\\n19 39 19 84\\n6\\n1 2 3 1 2 3\"], \"outputs\": [\"NO\\nYES\\n19 19 39 84 \\n39 84 19 19 \\nYES\\n1 1 2 2 3 3 \\n2 3 3 1 1 2 \"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-15",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Given are a sequence A= {a_1,a_2,......a_N} of N pos... | code | {
"ground_truth": "{\"inputs\": [\"2 50\\n6 10\\n\", \"3 100\\n14 22 40\\n\", \"5 1000000000\\n6 6 2 6 2\\n\", \"3 000\\n14 22 40\", \"2 46\\n6 10\", \"2 46\\n10 10\", \"2 12\\n10 10\", \"2 85\\n6 10\", \"3 101\\n14 2 2\", \"3 000\\n14 16 40\", \"3 010\\n14 16 40\", \"3 010\\n14 16 4\", \"3 110\\n14 16 4\", \"3 110\\... | MEDIUM | {
"id": "taco-train-21346",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Vasya should paint a fence in front of his own cotta... | code | {
"ground_truth": "{\"inputs\": [\"4\\n5 7\\n3 3 4 1\\n\", \"3\\n2 3\\n1 3 1\\n\", \"3\\n3 3\\n2 2 2\\n\", \"6\\n12 3\\n1 4 1 4 1 4\\n\", \"5\\n10 7\\n1 2 3 1 3\\n\", \"5\\n4 8\\n1 1 1 2 2\\n\", \"6\\n10 11\\n1 1 12 1 1 1\\n\", \"9\\n5 24\\n1 6 1 6 1 6 1 6 1\\n\", \"10\\n10 13\\n2 3 4 4 2 3 1 4 4 2\\n\", \"20\\n13 10... | MEDIUM_HARD | {
"id": "taco-train-13778",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You have a card deck of $n$ cards, numbered from top... | code | {
"ground_truth": "{\"inputs\": [\"7 5\\n2 1 1 4 3 3 1\\n3 2 1 1 4\\n\", \"5 1\\n1 2 3 4 5\\n1\\n\", \"5 2\\n6 4 3 2 1\\n1 6\\n\", \"5 15\\n1 2 3 4 5\\n5 5 5 5 5 5 5 5 5 5 5 5 5 5 5\\n\", \"7 5\\n20 10 10 40 30 30 10\\n30 20 10 10 40\\n\", \"5 4\\n3 15 50 50 3\\n50 15 3 50\\n\", \"5 2\\n6 4 3 2 1\\n1 6\\n\", \"5 1\\n... | EASY | {
"id": "taco-train-10385",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Tzuyu gave Nayeon a strip of $N$ cells (numbered $1$... | code | {
"ground_truth": "{\"inputs\": [[\"4\", \"7\", \"1 1 0 0 0 1 1\", \"8\", \"1 0 1 1 1 0 0 1\", \"4\", \"1 1 0 1\", \"4\", \"1 1 1 1\"]], \"outputs\": [[\"Yes\", \"No\", \"Yes\", \"No\"]]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-1746",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "The problem is to find the shortest distances between... | code | {
"ground_truth": "{\"inputs\": [\"matrix = {{0,25},{-1,0}}\", \"matrix = {{0,1,43},{1,0,6},{-1,-1,0}}\"], \"outputs\": [\"{{0,25},{-1,0}}\", \"{{0,1,7},{1,0,6},{-1,-1,0}}\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-15814",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Vasya likes everything infinite. Now he is studying ... | code | {
"ground_truth": "{\"inputs\": [\"1 -4 5\\n\", \"1 7 3\\n\", \"0 60 50\\n\", \"10 10 0\\n\", \"1 6 1\\n\", \"-2 -2 0\\n\", \"0 -2 -2\\n\", \"0 -1 -1\\n\", \"-2 0 1\\n\", \"1 -2 0\\n\", \"0 2 -2\\n\", \"3 2 1\\n\", \"0 2 -1\\n\", \"1000000000 0 -1000000000\\n\", \"0 -5 -3\\n\", \"-1 -1 -2\\n\", \"10 9 -1\\n\", \"2 -1... | rating_<=1200 | {
"id": "675_A. Infinite Sequence",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an array Arr of N positive integers. Find the n... | code | {
"ground_truth": "{\"inputs\": [\"N = 5\\nArr[] = {1, 5, 3, 4, 2}\\nK = 3\", \"N = 6\\nArr[] = {8, 12, 16, 4, 0, 20}\\nK = 4\"], \"outputs\": [\"2\", \"5\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-9206",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given integers N,K and M and operation F. Op... | code | {
"ground_truth": "{\"inputs\": [\"2\\n42 3 2\\n6 7 1\", \"2\\n42 3 2\\n6 7 2\", \"2\\n10 3 4\\n6 8 2\", \"2\\n10 3 4\\n0 8 2\", \"2\\n17 3 4\\n0 6 4\", \"2\\n12 3 4\\n0 12 4\", \"2\\n12 3 4\\n1 12 4\", \"2\\n1 3 4\\n1 12 4\", \"2\\n1 1 20\\n0 17 0\", \"2\\n51 3 2\\n6 7 1\", \"2\\n42 3 2\\n6 7 3\", \"2\\n42 3 4\\n10 ... | none | {
"id": "muldiv",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a positive integer n. Find whether a number is ... | code | {
"ground_truth": "{\"inputs\": [\"N=35\", \"8\"], \"outputs\": [\"1\", \"0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-5709",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Fox Ciel is playing a mobile puzzle game called \"Tw... | code | {
"ground_truth": "{\"inputs\": [\"3 4\\nAAAA\\nABCA\\nAAAA\", \"3 4\\nAAAA\\nABCA\\nAADA\", \"4 4\\nYYYR\\nBYBY\\nBBBY\\nBBBY\", \"7 6\\nAAAAAB\\nABBBAB\\nABAAAB\\nABABBB\\nABAAAB\\nABBBAB\\nAAAAAB\", \"2 13\\nABCDEFGHIJKLM\\nNOPQRSTUVWXYZ\", \"2 2\\nAA\\nAA\", \"2 2\\nAA\\nAB\", \"3 3\\nAAA\\nABA\\nAAA\", \"3 3\\nA... | rating_1401-1600 | {
"id": "510B",
"rating": 1500,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "A `Nice array` is defined to be an array where for ev... | code | {
"ground_truth": "{\"fn_name\": \"is_nice\", \"inputs\": [[[2, 10, 9, 3]], [[3, 4, 5, 7]], [[0, 2, 19, 4, 4]], [[3, 2, 1, 0]], [[3, 2, 10, 4, 1, 6]], [[1, 1, 8, 3, 1, 1]], [[0, 1, 2, 3]], [[1, 2, 3, 4]], [[0, -1, 1]], [[0, 2, 3]], [[0]], [[]], [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]], [[0, 1, 3, -2, 5, 4]], [[0, -1, -2, -3,... | EASY | {
"id": "taco-train-7366",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "For \"x\", determine how many positive integers less ... | code | {
"ground_truth": "{\"fn_name\": \"odd_not_prime\", \"inputs\": [[5], [10], [99]], \"outputs\": [[1], [2], [26]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-5926",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Little Petya is learning to play chess. He has alrea... | code | {
"ground_truth": "{\"inputs\": [\"4 3 1 6\\n\", \"5 5 5 6\\n\", \"1 1 8 8\\n\", \"1 1 8 1\\n\", \"1 1 1 8\\n\", \"8 1 1 1\\n\", \"8 1 1 8\\n\", \"7 7 6 6\\n\", \"8 1 8 8\\n\", \"1 8 1 1\\n\", \"1 8 8 1\\n\", \"1 8 8 8\\n\", \"8 8 1 1\\n\", \"8 8 1 8\\n\", \"8 8 8 1\\n\", \"1 3 1 6\\n\", \"1 3 1 4\\n\", \"1 3 1 5\\n\... | EASY | {
"id": "taco-test-300",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "In this problem we consider a very simplified model ... | code | {
"ground_truth": "{\"inputs\": [\"3 1 -9\\n0 3 3 -1\\n\", \"1 1 -3\\n0 3 3 0\\n\", \"10 4 8\\n2 8 -10 9\\n\", \"3 0 -324925900\\n-97093162 612988987 134443035 599513203\\n\", \"0 2 -866705865\\n394485460 465723932 89788653 -50040527\\n\", \"3 0 407398974\\n-665920261 551867422 -837723488 503663817\\n\", \"664808710 ... | rating_1601-1900 | {
"id": "1078_A. Barcelonian Distance",
"rating": 1900,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Chef bought car insurance. The policy of the insuran... | code | {
"ground_truth": "{\"inputs\": [\"4\\n5 3\\n5 8\\n4 4\\n15 12\\n\"], \"outputs\": [\"3\\n5\\n4\\n12\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-312",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Daniel is organizing a football tournament. He has c... | code | {
"ground_truth": "{\"inputs\": [\"3\\n\", \"25\\n\", \"2\\n\", \"1\\n\", \"15\\n\", \"314\\n\", \"524800\\n\", \"5149487579894806\\n\", \"249999998807430810\\n\", \"1000000000000000000\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\", \"9\\n\", \"10\\n\", \"11\\n\", \"12\\n\", \"13\\n\", \"14\\n\", \"21\\n\", ... | MEDIUM_HARD | {
"id": "taco-train-22856",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Mr. Chanek gives you a sequence a indexed from 1 to ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n4 2 3 1\\n\", \"7\\n2 1 4 2 5 3 7\\n\", \"1\\n1\\n\", \"1\\n200000\\n\", \"1\\n2\\n\", \"1\\n001\\n\", \"1\\n69861\\n\", \"1\\n70524\\n\", \"1\\n46702\\n\", \"1\\n7068\\n\", \"1\\n10491\\n\", \"1\\n8373\\n\", \"1\\n15424\\n\", \"1\\n2597\\n\", \"1\\n2781\\n\", \"1\\n1895\\n\", \... | rating_>1900 | {
"id": "1575_L. Longest Array Deconstruction",
"rating": 2100,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "An encoder encodes the first $16$ lowercase English ... | code | {
"ground_truth": "{\"inputs\": [[\"3\", \"4\", \"0000\", \"8\", \"00001111\", \"4\", \"1001\"]], \"outputs\": [[\"a\", \"ap\", \"j\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-7892",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Stepan has the newest electronic device with a displ... | code | {
"ground_truth": "{\"inputs\": [\"2\", \"3\", \"4\", \"5\", \"6\", \"85651\", \"85666\", \"99999\", \"100000\", \"99998\", \"9\", \"99997\", \"99996\", \"99995\", \"156\", \"255\", \"4568\", \"5431\", \"6782\", \"8343\", \"9514\"], \"outputs\": [\"1\", \"7\", \"11\", \"71\", \"111\", \"711111111111111111111111111111... | rating_<=1200 | {
"id": "774C",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "There is enough money available on ATM in nominal val... | code | {
"ground_truth": "{\"fn_name\": \"solve\", \"inputs\": [[770], [550], [10], [1250], [125], [666], [42]], \"outputs\": [[4], [2], [1], [4], [-1], [-1], [-1]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-14456",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "New Year is coming in Line World! In this world, the... | code | {
"ground_truth": "{\"inputs\": [\"8 4\\n1 2 1 2 1 2 1\\n\", \"8 5\\n1 2 1 2 1 1 1\\n\", \"4 4\\n1 1 1\\n\", \"8 8\\n1 1 1 1 1 1 1\\n\", \"120 104\\n41 15 95 85 34 11 25 42 65 39 77 80 74 17 66 73 21 14 36 63 63 79 45 24 65 7 63 80 51 21 2 19 78 28 71 2 15 23 17 68 62 18 54 39 43 70 3 46 34 23 41 65 32 10 13 18 10 3 ... | rating_<=1200 | {
"id": "500_A. New Year Transportation",
"rating": 1000,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Ivan wants to write a letter to his friend. The lett... | code | {
"ground_truth": "{\"inputs\": [\"aaaaaaaaaa\\n\", \"abcab\\n\", \"cczabababab\\n\", \"kbyjorwqjk\\n\", \"baaabbbaba\\n\", \"aaaaaaaaaa\\n\", \"cbbbcccbbc\\n\", \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\n\", \"hltcdvuobkormkxkbmpfjniilublkrckmvvxemcyietgx... | VERY_HARD | {
"id": "taco-test-390",
"rating": null,
"split": "confidence_train",
"sub_source": "VERY_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "See Russian Translation\n\nFred is the captain of a ... | code | {
"ground_truth": "{\"inputs\": [\"12 92\\n7 7 9\\n1 9 9\\n8 9 3\\n11 12 3\\n6 7 9\\n9 7 9\\n7 9 9\\n6 12 0\\n6 3 9\\n6 11 9\\n2 6 9\\n6 4 9\\n3 4 9\\n5 9 9\\n4 4 9\\n9 6 9\\n5 6 5\\n3 5 9\\n10 2 9\\n4 10 9\\n4 8 9\\n3 11 9\\n10 2 10\\n12 5 9\\n7 2 10\\n12 10 9\\n4 9 9\\n8 4 9\\n1 11 9\\n5 5 5\\n2 12 7\\n5 10 9\\n1 3... | HARD | {
"id": "taco-train-17137",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Lee tried so hard to make a good div.2 D problem to ... | code | {
"ground_truth": "{\"inputs\": [\"7\\n1\\n2\\n3\\n4\\n5\\n100\\n2000000\\n\", \"3\\n1234567\\n1268501\\n1268499\\n\", \"3\\n1234567\\n1268501\\n1268499\\n\", \"3\\n60615\\n1268501\\n1268499\\n\", \"7\\n1\\n2\\n3\\n4\\n5\\n110\\n2000000\\n\", \"3\\n89610\\n1268501\\n1268499\\n\", \"7\\n2\\n2\\n5\\n4\\n5\\n110\\n20000... | HARD | {
"id": "taco-train-5917",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an integer K and a queue of integers, we need t... | code | {
"ground_truth": "{\"fn_name\": \"modifyQueue\", \"inputs\": [\"5 3\\r\\n1 2 3 4 5\", \"4 4\\r\\n4 3 2 1\"], \"outputs\": [\"3 2 1 4 5\", \"1 2 3 4\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-12546",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Mysterious Chefland… Recently, Chef realised that Di... | code | {
"ground_truth": "{\"inputs\": [[\"5\", \"2 2 1 2\", \"11 10 5 9\", \"11 11 5 9\", \"12 11 5 9\", \"1 2 1 100\"]], \"outputs\": [[\"Chefirnemo\", \"Chefirnemo\", \"Pofik\", \"Chefirnemo\", \"Pofik\"]]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-5395",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Knight is at (start_x,start_y) in Geekland which is r... | code | {
"ground_truth": "{\"inputs\": [\"n = 9\\r\\nm = 10\\r\\nstart_x = 4, start_y = 5\\r\\narr =\\r\\n0 0 0 2 0 2 0 2 0 0\\r\\n0 0 2 0 2 0 2 0 2 0\\r\\n0 2 0 0 1 2 0 0 0 2\\r\\n0 0 2 0 2 0 2 0 2 0\\r\\n0 2 0 2 0 0 0 2 0 2\\r\\n0 0 2 0 2 0 2 0 2 0\\r\\n0 2 0 0 0 2 0 0 0 2\\r\\n0 0 2 0 2 0 2 0 2 0\\r\\n0 0 0 2 0 2 0 2 0 0... | MEDIUM | {
"id": "taco-train-4013",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "A number is simply made up of digits. \nThe number 1... | code | {
"ground_truth": "{\"fn_name\": \"permutation_average\", \"inputs\": [[2], [25], [737]], \"outputs\": [[2], [38], [629]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-12767",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "As an English learner, sometimes you cannot remember... | code | {
"ground_truth": "{\"inputs\": [\"7 4\\nconnected\\ndisconnected\\ngraph\\ndirected\\ndiameter\\ndistance\\nminor\\nc ed\\ndi ed\\ndis ed\\ndis e\", \"6 7\\nappreciate\\nappropriate\\nacceptance\\nace\\nacm\\nacetylene\\nappr iate\\na e\\na a\\nac ce\\nace e\\nacceptance acceptance\\nno match\", \"5 5\\nd\\ndd\\nddd... | none | {
"id": "p02007 Prefix Suffix Search",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Today on a math lesson the teacher told Vovochka tha... | code | {
"ground_truth": "{\"inputs\": [\"10\\n1 2 3 4 5 6 7 8 9 10\\n7\\n1 1\\n3 8\\n5 6\\n4 8\\n8 10\\n7 9\\n7 10\", \"7\\n24 63 13 52 6 10 1\\n6\\n3 5\\n4 7\\n1 7\\n2 4\\n3 6\\n2 6\", \"5\\n2 3 4 5 6\\n5\\n2 5\\n2 2\\n1 5\\n2 3\\n2 4\", \"1\\n560149\\n1\\n1 1\", \"10\\n570570 570570 930930 870870 570570 903210 746130 930... | rating_>1900 | {
"id": "594D",
"rating": 2500,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "DZY owns 2m islands near his home, numbered from 1 t... | code | {
"ground_truth": "{\"inputs\": [\"2 1 4\\n1 1 1 2\\n\", \"3 5 6\\n389094 705719 547193 653800 947499 17024\\n\", \"20 285682452833524258 1\\n33338\\n\", \"3 159792384791265 7\\n366310 201358 978173 900642 949624 50986 197378\\n\", \"1 1 2\\n468879 777745\\n\", \"20 325906599894074452 1\\n33338\\n\", \"3 159792384791... | rating_>1900 | {
"id": "446_E. DZY Loves Bridges",
"rating": 3100,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an array of size n. The task is to find the lon... | code | {
"ground_truth": "{\"inputs\": [\"Arr[] = {10, 9, 4, 5, 4, 8, 6}\", \"Arr[] = {1, 2, 3, 2, 3, 7, 2, 1}\"], \"outputs\": [\"3\", \"7\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-6365",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a sorted integer array. We need to make array e... | code | {
"ground_truth": "{\"fn_name\": \"minSum\", \"inputs\": [\"arr[ ] = {2, 2, 3, 5, 6}\", \"arr[ ] = {20, 20}\"], \"outputs\": [\"20\", \"41\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-23112",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The First Universal Bank of Denview has just been ro... | code | {
"ground_truth": "{\"inputs\": [\"5 5 1\\naaaaa\\na...a\\na.B.a\\na...a\\naaaaa\\n1\\n\", \"2 2 1\\naB\\naa\\n1\\n\", \"4 3 3\\n.abc\\nabBc\\n.abc\\n1 7 5\\n\"], \"outputs\": [\"12\\n\", \"-1\\n\", \"22\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-23438",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Luckily, Serval got onto the right bus, and he came ... | code | {
"ground_truth": "{\"inputs\": [\"4 5 5\\n3 5 2 0 4\\n4 2 5 4\\n0 0 0 0 1\\n1 0 1 0 0\\n0 1 0 0 0\\n1 1 1 0 0\\n\", \"3 7 3\\n2 3 0 0 2 0 1\\n2 1 3\\n1 0 0 0 1 0 0\\n0 0 0 0 0 0 1\\n1 1 0 0 0 0 0\\n\", \"2 58 77\\n0 0 0 0 6 0 0 0 40 0 0 0 0 22 0 0 41 74 0 0 0 0 0 0 0 15 0 0 60 5 69 0 0 30 0 0 23 60 0 35 0 0 0 0 0 0 ... | rating_<=1200 | {
"id": "1153_B. Serval and Toy Bricks",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a set of n non-negative integers, and a value m... | code | {
"ground_truth": "{\"inputs\": [\"n = 4 m = 6 \\nnums[] = {3 1 7 5}\", \"n = 3, m = 5\\nnums[] = {1 2 6}\"], \"outputs\": [\"1\", \"0\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-881",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Problem\n\nGiven a string S of even length.\nYou can... | code | {
"ground_truth": "{\"inputs\": [\"acca\", \"acpcacpc\", \"aizu\", \"acccacpp\", \"bizu\", \"acpcaccp\", \"ffxx\", \"acppaccc\", \"xffx\", \"xdxd\", \"bjzu\", \"acocaccp\", \"ajzu\", \"akzu\", \"akyu\", \"bkyu\", \"auyk\", \"uayk\", \"yauk\", \"kuay\", \"kuby\", \"ktby\", \"ybtk\", \"kbty\", \"yctk\", \"ycsk\", \"ycs... | none | {
"id": "p01081 Char Swap",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an array nums of n integers and an integer targ... | code | {
"ground_truth": "{\"fn_name\": \"threeSumClosest\", \"inputs\": [[[-4, -1, 1, 2], 1]], \"outputs\": [2]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-23947",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Two people are playing Nimble! The rules of the game... | code | {
"ground_truth": "{\"inputs\": [\"2\\n5\\n0 2 3 0 6\\n4\\n0 0 0 0\\n\"], \"outputs\": [\"First\\nSecond\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-1371",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Everybody is worried about Rakesh as the boy does no... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"20 20\", \"4 5\", \"13\", \"LLUUUUURRRRRR\", \"10 10\", \"3 4\", \"7\", \"UDUDDRR\"]], \"outputs\": [[\"Case 1: REACHED\", \"Case 2: DANGER\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-15032",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "While Grisha was celebrating New Year with Ded Moroz... | code | {
"ground_truth": "{\"inputs\": [\"3 3 2 3\", \"12 17 9 40\", \"1 1 1 1\", \"10 10 5 100\", \"7 1 1 4\", \"1000 1000 59 100000\", \"100000 100000 1000 100000\", \"100000 100000 100000 100000\", \"3 100000 2 88700\", \"200 100000 55 100000\", \"74 2 1 36\", \"2 59 1 112\", \"96 33 24 928\", \"20 78 8 997\", \"44 22 13... | rating_>1900 | {
"id": "912D",
"rating": 2100,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "While walking in grand malls little Elsa likes to pl... | code | {
"ground_truth": "{\"inputs\": [\"2 3\\n4 4\\nWWWW\\nWSBB\\nWWWW\\nWBWG\\n\", \"1 1\\n1 2\\nGS\\n\"], \"outputs\": [\"GO FOR IT\\n\", \"SUCCESS\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-24714",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Kolya loves putting gnomes at the circle table and g... | code | {
"ground_truth": "{\"inputs\": [\"2\\n\", \"1\\n\", \"68841\\n\", \"5984\\n\", \"10\\n\", \"74\\n\", \"15\\n\", \"22\\n\", \"10868\\n\", \"2091\\n\", \"58000\\n\", \"9877\\n\", \"9\\n\", \"4\\n\", \"6\\n\", \"10000\\n\", \"866\\n\", \"8\\n\", \"14\\n\", \"4343\\n\", \"20\\n\", \"3\\n\", \"18569\\n\", \"2441\\n\", \"... | rating_1401-1600 | {
"id": "584_B. Kolya and Tanya ",
"rating": 1500,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "An electronics shop sells red and blue lamps. A red ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2 2 5 1\\n4 1 3 1\\n3 0 4 7\\n5 2 3 4\\n\"], \"outputs\": [\"10\\n6\\n12\\n15\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-16385",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a set of elements (integers or string character... | code | {
"ground_truth": "{\"fn_name\": \"est_subsets\", \"inputs\": [[[1, 2, 3, 4]], [[\"a\", \"b\", \"c\", \"d\", \"d\"]]], \"outputs\": [[15], [15]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-9804",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.