data_source stringclasses 3
values | prompt listlengths 2 2 | ability stringclasses 1
value | reward_model dict | sub_source stringclasses 12
values | extra_info dict |
|---|---|---|---|---|---|
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": "Little Chris is participating in a graph cutting con... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n1 2\\n2 3\\n\", \"3 3\\n1 2\\n2 3\\n3 1\\n\", \"8 12\\n1 2\\n2 3\\n3 4\\n4 1\\n1 3\\n2 4\\n3 5\\n3 6\\n5 6\\n6 7\\n6 8\\n7 8\\n\", \"9 12\\n1 2\\n2 3\\n4 5\\n5 6\\n6 7\\n7 8\\n1 4\\n4 7\\n2 5\\n5 8\\n3 6\\n6 9\\n\", \"5 4\\n2 1\\n3 2\\n4 3\\n5 4\\n\", \"4 4\\n1 2\\n2 3\\n3 1\\... | rating_>1900 | {
"id": "405_E. Graph Cutting",
"rating": 2300,
"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 a positive integer N. Calculate the Fibonacci s... | code | {
"ground_truth": "{\"inputs\": [\"N = 1\", \"N = 5\"], \"outputs\": [\"0 1 1\", \"0 1 1 2 3 5\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-10769",
"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": "It seems like the year of 2013 came only yesterday. ... | code | {
"ground_truth": "{\"inputs\": [\"1987\\n\", \"2013\\n\", \"1594\\n\", \"5090\\n\", \"3000\\n\", \"6016\\n\", \"1001\\n\", \"1123\\n\", \"2001\\n\", \"2342\\n\", \"4572\\n\", \"6666\\n\", \"1234\\n\", \"8989\\n\", \"6869\\n\", \"8999\\n\", \"5555\\n\", \"7712\\n\", \"1111\\n\", \"2334\\n\", \"8977\\n\", \"8088\\n\",... | rating_<=1200 | {
"id": "271_A. Beautiful Year",
"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": "Chef has many friends, but his best friend is Hemant... | code | {
"ground_truth": "{\"inputs\": [[\"3\", \"1\", \"3\", \"7\"]], \"outputs\": [[\"B\", \"A\", \"B\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-16135",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
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": "To get money for a new aeonic blaster, ranger Qwerty... | code | {
"ground_truth": "{\"inputs\": [\"3 3 10\\nVenus\\n6 5 3\\n7 6 5\\n8 6 10\\nEarth\\n10 9 0\\n8 6 4\\n10 9 3\\nMars\\n4 3 0\\n8 4 12\\n7 2 5\\n\", \"2 2 1\\nQwe\\n900 800 1\\n5 1 1\\nEwq\\n1000 999 0\\n11 10 0\\n\", \"3 2 11\\nMars\\n15 10 4\\n7 6 3\\nSnickers\\n20 17 2\\n10 8 0\\nBounty\\n21 18 5\\n9 7 3\\n\", \"2 2... | rating_<=1200 | {
"id": "176_A. Trading Business",
"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": "One day Alex was creating a contest about his friend... | code | {
"ground_truth": "{\"inputs\": [\"Alex_and_broken_contest\\n\", \"NikitaAndString\\n\", \"Danil_and_Olya\\n\", \"Slava____and_the_game\\n\", \"Olya_and_energy_drinks\\n\", \"Danil_and_part_time_job\\n\", \"Ann_and_books\\n\", \"Olya\\n\", \"Nikita\\n\", \"Slava\\n\", \"Vanya\\n\", \"I_dont_know_what_to_write_here\\n... | EASY | {
"id": "taco-train-2354",
"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": "E-training\n\nNene is writing a program to look up $... | code | {
"ground_truth": "{\"inputs\": [\"6 3 2 1\", \"6 5 2 1\", \"9 5 2 1\", \"12 5 2 1\", \"0 5 2 1\", \"-1 5 2 1\", \"-1 0 2 0\", \"-1 0 1 0\", \"-2 0 2 0\", \"-2 0 8 0\", \"0 -2 2 -1\", \"0 -2 1 0\", \"2 -1 0 -1\", \"2 -1 -1 0\", \"2 -2 -1 0\", \"2 -2 -2 1\", \"3 -2 -2 1\", \"4 -2 -2 1\", \"8 -1 -2 -1\", \"10 -1 -2 -2\... | none | {
"id": "p02019 Training",
"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": "Ringo Mart, a convenience store, sells apple juice.\... | code | {
"ground_truth": "{\"inputs\": [\"24\\n1 2 3 4\\n1 2 4 3\\n1 3 2 4\\n1 3 4 2\\n1 4 2 3\\n1 4 3 2\\n2 1 3 4\\n2 1 4 3\\n2 3 1 4\\n2 3 4 1\\n2 4 1 3\\n2 4 3 1\\n3 1 2 4\\n3 1 4 2\\n3 2 1 4\\n3 2 4 1\\n3 4 1 2\\n3 4 2 1\\n4 1 2 3\\n4 1 3 2\\n4 2 1 3\\n4 2 3 1\\n4 3 1 2\\n4 3 2 1\", \"14\\n9 7 5 9\\n9 7 6 9\\n14 10 7 12... | none | {
"id": "p03297 AtCoder Grand Contest 026 - rng_10s",
"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": "Consider a system of n water taps all pouring water ... | code | {
"ground_truth": "{\"inputs\": [\"2 100\\n3 10\\n50 150\\n\", \"3 9\\n5 5 30\\n6 6 10\\n\", \"2 12\\n1 3\\n10 15\\n\", \"20 30\\n70 97 14 31 83 22 83 56 19 87 59 7 7 89 24 82 34 40 6 24\\n10 4 47 46 11 18 32 55 16 32 53 37 43 32 41 46 57 14 60 44\\n\", \"1 1\\n1000000\\n1\\n\", \"1 200\\n1000000\\n100\\n\", \"1 1000... | HARD | {
"id": "taco-train-1658",
"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": "Read problems statements in Mandarin Chinese, Russia... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 0\\na\\n2 2\\naba\"], \"outputs\": [\"1\\n5\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-6745",
"rating": null,
"split": "confidence_train",
"sub_source": "VERY_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": "You are given integers N,\\ A and B. Determine if th... | code | {
"ground_truth": "{\"inputs\": [\"3 2 1\", \"2 1 3\", \"2 1 0\", \"2 0 0\", \"1 0 1\", \"2 2 0\", \"1 2 3\", \"1 3 2\", \"2 3 2\", \"2 0 2\", \"2 2 3\", \"2 3 1\", \"2 0 1\", \"1 1 0\", \"1 -2 -1\", \"1 -1 -2\", \"4 0 0\", \"7 0 0\", \"6 2 1\", \"1 0 0\", \"5 0 0\", \"5 2 1\", \"2 2 1\", \"1 1 1\", \"2 2 2\", \"0 1 ... | none | {
"id": "p03097 AtCoder Grand Contest 031 - Differ by 1 Bit",
"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": "Masha has three sticks of length a, b and c centimet... | code | {
"ground_truth": "{\"inputs\": [\"3 4 5\\n\", \"100 10 10\\n\", \"2 5 3\\n\", \"3 1 1\\n\", \"68 1 67\\n\", \"100 100 100\\n\", \"14 21 76\\n\", \"32 99 10\\n\", \"2 10 2\\n\", \"4 2 7\\n\", \"100 1 1\\n\", \"2 5 2\\n\", \"100 1 99\\n\", \"56 42 87\\n\", \"4 5 6\\n\", \"100 100 99\\n\", \"23 56 33\\n\", \"86 43 10\\... | rating_<=1200 | {
"id": "1064_A. Make a triangle!",
"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": "While Omar was studying for Math lectures, he found ... | code | {
"ground_truth": "{\"inputs\": [\"1\\n2 4 6\\n\\nSAMPLE\", \"1\\n2 6 6\\n\\nSAMPLE\", \"1\\n2 8 5\\n\\nDAMPLS\", \"1\\n4 8 8\\n\\nDAMPLS\", \"1\\n6 18 6\\n\\nSLLQBE\", \"1\\n2 10 6\\n\\nSAMPLE\", \"1\\n2 10 6\\n\\nSAMPLD\", \"1\\n2 8 6\\n\\nSAMPLD\", \"1\\n2 8 6\\n\\nDAMPLS\", \"1\\n2 8 10\\n\\nDAMPLS\", \"1\\n2 4 9... | none | {
"id": "lets-count-3",
"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\nYou are in charge of quality control at a... | code | {
"ground_truth": "{\"inputs\": [\"2 2 2\\n4\\n2 4 5 0\\n2 3 6 0\\n1 4 5 0\\n2 3 5 1\\n0 0 0\", \"2 2 2\\n4\\n2 4 5 0\\n2 3 6 0\\n1 4 5 0\\n2 3 2 1\\n0 0 0\", \"2 2 2\\n4\\n2 4 5 0\\n2 3 6 0\\n1 4 5 0\\n2 3 2 0\\n0 0 0\", \"3 2 2\\n4\\n2 4 5 0\\n2 3 6 0\\n1 4 5 0\\n2 3 5 1\\n0 0 0\", \"2 2 2\\n4\\n3 4 5 0\\n2 3 6 0\\... | none | {
"id": "p00437 Quality Checking",
"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": "You and your friends are in New York and are plannin... | code | {
"ground_truth": "{\"inputs\": [\"100 10 2 1\\n\", \"100 10 2 2\\n\", \"10 10 5 1\\n\"], \"outputs\": [\"0.1\\n\", \"0.1909090909\\n\", \"1.0000000000\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-7451",
"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": "There is a very large field, colored white and divid... | code | {
"ground_truth": "{\"inputs\": [\"8\\n0 0\\n1 0\\n1 1\\n0 1\\n3 3\\n-3 -3\\n-1 2\\n0 -3\"], \"outputs\": [\"1\\n1\\n0\\n0\\n1\\n1\\n2\\n2\"]}",
"style": "rule"
} | none | {
"id": "primpatt",
"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 of one's and zero's that represents a ... | code | {
"ground_truth": "{\"fn_name\": \"positive_to_negative\", \"inputs\": [[[0, 0, 0, 0]], [[0, 0, 1, 0]], [[0, 0, 1, 1]], [[0, 1, 0, 0]]], \"outputs\": [[[0, 0, 0, 0]], [[1, 1, 1, 0]], [[1, 1, 0, 1]], [[1, 1, 0, 0]]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-19631",
"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": "You are given a table $a$ of size $2 \\times n$ (i.e... | code | {
"ground_truth": "{\"inputs\": [\"6\\n4\\n1 2 3 4\\n2 3 1 4\\n5\\n5 3 5 1 4\\n1 2 3 2 4\\n3\\n1 2 1\\n3 3 2\\n4\\n1 2 2 1\\n3 4 3 4\\n4\\n4 3 1 4\\n3 2 2 1\\n3\\n1 1 2\\n3 2 2\\n\", \"6\\n4\\n1 2 3 4\\n2 3 1 4\\n5\\n5 3 5 1 4\\n1 2 3 2 4\\n3\\n1 2 1\\n3 3 2\\n4\\n1 2 2 1\\n3 4 3 4\\n4\\n4 3 1 4\\n3 2 2 2\\n3\\n1 1 2... | EASY | {
"id": "taco-train-7206",
"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": "Alas, finding one's true love is not easy. Masha has... | code | {
"ground_truth": "{\"inputs\": [\"09\\n\", \"12345\\n\", \"3\\n\", \"36460576924876475371008334246121610\\n\", \"44444444444444444444444444444444444444444444444444\\n\", \"433488906230138\\n\", \"67676566654565654332111011212211111223433222110012\\n\", \"429622625617508557672595893160462042433748844995\\n\", \"01809... | rating_1601-1900 | {
"id": "44_H. Phone Number",
"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 ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Read problems statements in Mandarin chinese, Russia... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1\\n2\\n3\\n9\"], \"outputs\": [\"1\\n2\\n2\\n5\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-14473",
"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": "Find the number of sequences of length K consisting ... | code | {
"ground_truth": "{\"inputs\": [\"10 3\", \"314159265 35\", \"3 2\", \"10 4\", \"305678790 35\", \"5 2\", \"10 5\", \"306063188 35\", \"5 3\", \"419072353 35\", \"3 3\", \"419072353 10\", \"3 6\", \"419072353 2\", \"614246832 2\", \"651766788 2\", \"314159265 50\", \"305678790 60\", \"5 4\", \"12 5\", \"306063188 45... | none | {
"id": "p02992 AtCoder Beginner Contest 132 - Small Products",
"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 string str of length N. The task is to find the... | code | {
"ground_truth": "{\"inputs\": [\"S = \\\"abc\\\"\", \"S = \\\"aacecaaa\\\"\"], \"outputs\": [\"2\", \"1\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-2721",
"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": "Consider a Deterministic Finite Automaton(DFA) which... | code | {
"ground_truth": "{\"inputs\": [\"5\\n\\nSAMPLE\", \"99\", \"16\", \"5\\n\\nSBMPLE\", \"9\", \"17\", \"7\", \"3\", \"2\", \"6\", \"8\", \"24\", \"10\", \"21\", \"11\", \"5\\n\\nSBMPEL\", \"5\\n\\nLEPMBS\", \"5\", \"5\\n\\nLEPMCS\", \"5\\n\\nSCMPEL\", \"5\\n\\nSCMPEK\", \"5\\n\\nKEPMCS\", \"5\\n\\nTCMPEK\", \"5\\n\\n... | none | {
"id": "finite-automata",
"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": "Professor Braino Mars is one of the top researchers ... | code | {
"ground_truth": "{\"inputs\": [\"2 8 8 8\\n12 4 1 4 5 3 -2\\n10 1 2 1 8 -6 1\\n\", \"2 10 20 30\\n10 1 0 0 2 0 0\\n15 2 0 0 4 0 0\\n\"], \"outputs\": [\"1\\nP0: 22 1 4 2 6 -1 0\\n\", \"2\\nP0: 15 2 0 0 4 0 0\\nP1: 10 1 0 0 2 0 0\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-11961",
"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": "After a hard day Vitaly got very hungry and he wants... | code | {
"ground_truth": "{\"inputs\": [\"3\\naAbB\\n\", \"4\\naBaCaB\\n\", \"5\\nxYyXzZaZ\\n\", \"10\\nhNcMeXsSlHsUwYeMcA\\n\", \"5\\naArRaRaR\\n\", \"26\\nzAyBxCwDvEuFtGsHrIqJpKoLnMmNlOkPjQiRhSgTfUeVdWcXbY\\n\", \"2\\ndE\\n\", \"2\\ndD\\n\", \"2\\ndA\\n\", \"3\\ndDdD\\n\", \"3\\ndEeF\\n\", \"100\\nqDpInBmCrFwXpDbFgOzVvOcE... | rating_<=1200 | {
"id": "525_A. Vitaliy and Pie",
"rating": 1100,
"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": "Allen is hosting a formal dinner party. 2n people co... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 1 2 3 3 2 4 4\\n\", \"3\\n1 1 2 2 3 3\\n\", \"3\\n3 1 2 3 1 2\\n\", \"1\\n1 1\\n\", \"19\\n15 19 18 8 12 2 11 7 5 2 1 1 9 9 3 3 16 6 15 17 13 18 4 14 5 8 10 12 6 11 17 13 14 16 19 7 4 10\\n\", \"81\\n48 22 31 24 73 77 79 75 37 78 43 56 20 33 70 34 6 50 51 21 39 29 20 11 73 53 ... | rating_1201-1400 | {
"id": "995_B. Suit and Tie",
"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": "In a company an emplopyee is paid as under:\nIf his ... | code | {
"ground_truth": "{\"inputs\": [\"3 \\n1203\\n10042\\n1312\", \"3 \\n1203\\n6117\\n1312\", \"3 \\n1203\\n4359\\n1312\", \"3 \\n530\\n4359\\n1312\", \"3 \\n530\\n4670\\n1312\", \"3 \\n530\\n4670\\n1914\", \"3 \\n530\\n729\\n1914\", \"3 \\n37\\n729\\n1914\", \"3 \\n68\\n729\\n1914\", \"3 \\n133\\n729\\n1914\", \"3 \\n... | none | {
"id": "flow011",
"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": "There are N balls placed in a row. AtCoDeer the deer... | code | {
"ground_truth": "{\"inputs\": [\"2 2\", \"1 10\", \"1 2\", \"1 1\", \"1 4\", \"1 8\", \"0 8\", \"0 13\", \"0 7\", \"0 12\", \"1 12\", \"1 3\", \"0 3\", \"0 0\", \"0 -1\", \"1 -1\", \"1 0\", \"-1 -1\", \"-2 -1\", \"-3 -1\", \"-3 0\", \"1 -2\", \"2 3\", \"0 -2\", \"0 4\", \"2 8\", \"0 5\", \"0 9\", \"-1 4\", \"1 15\"... | none | {
"id": "p03963 AtCoder Beginner Contest 046 - Painting Balls with AtCoDeer",
"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": "Suraj, the Chief Prankster is back in action now and... | code | {
"ground_truth": "{\"inputs\": [\"3\\n10\\n2 1 3 8 1\\n0\\n10\\n2 1 3 8 5\\n0\\n10\\n2 2 3 8 5\\n3 1 2 1 4 3 2 9 1 1\", \"3\\n10\\n2 1 3 8 1\\n0\\n10\\n2 1 3 8 5\\n0\\n10\\n2 2 3 8 3\\n3 1 2 1 4 3 2 9 1 1\", \"3\\n10\\n2 1 3 8 1\\n0\\n10\\n2 1 3 8 5\\n0\\n10\\n2 2 1 8 5\\n3 1 2 1 4 3 2 9 1 1\", \"3\\n10\\n2 1 3 8 1\... | none | {
"id": "ashigift",
"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": "Chef Two and Chef Ten are playing a game with a numb... | code | {
"ground_truth": "{\"inputs\": [[\"3\", \"10\", \"25\", \"1\"]], \"outputs\": [[\"0\", \"1\", \"-1\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-8242",
"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": "Ann has recently started commuting by subway. We kno... | code | {
"ground_truth": "{\"inputs\": [\"6 2 1 2\", \"5 2 2 3\", \"10 3 5 1\", \"1000 1 1000 1000\", \"1000 3 1000 1000\", \"1 1 1 1\", \"10 2 1 1\", \"1 1000 1 2\", \"1 1000 3 2\", \"10 3 1 2\", \"995 1 2 1\", \"556 2 16 15\", \"477 2 16 14\", \"101 110 1 100\", \"9 3 3 10\", \"100 8 10 1\", \"6 4 1 3\", \"8 5 2 8\", \"10... | rating_<=1200 | {
"id": "466A",
"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 an array of integers nums, find the maximum len... | code | {
"ground_truth": "{\"fn_name\": \"getMaxLen\", \"inputs\": [[[1, -2, -3, 4]]], \"outputs\": [4]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-4460",
"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 A[ ] of N integers and an integer X. I... | code | {
"ground_truth": "{\"inputs\": [\"N = 4, X = 2\\nA[] = {3, 1, 2, 7}\", \"N = 3, X = 1\\nA[] = {2, 2, 2}\"], \"outputs\": [\"2\", \"0\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-1129",
"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": "The chef is very expert in coding, so to keep his pa... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"12\", \"223\"]], \"outputs\": [[\"YES\", \"NO\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-24238",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
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": "The JOI Railways is the only railway company in the ... | code | {
"ground_truth": "{\"inputs\": [\"10 3 5\\n10 3 5\\n30\\n1\\n6\\n10\", \"10 3 5\\n10 3 3\\n30\\n1\\n6\\n10\", \"10 3 1\\n10 3 3\\n30\\n1\\n6\\n10\", \"10 3 5\\n10 3 3\\n32\\n1\\n6\\n10\", \"10 3 1\\n10 3 3\\n30\\n1\\n8\\n10\", \"10 3 1\\n10 3 0\\n51\\n0\\n6\\n10\", \"10 3 5\\n10 3 6\\n32\\n2\\n6\\n10\", \"10 3 10\\n... | none | {
"id": "p00560 Semiexpress",
"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": "The only difference between easy and hard versions i... | code | {
"ground_truth": "{\"inputs\": [\"3 4\\n4 6\\n10 -2\\n8 -1\\n\", \"5 20\\n45 -6\\n34 -15\\n10 34\\n1 27\\n40 -45\\n\", \"3 2\\n300 -300\\n1 299\\n1 123\\n\", \"20 15000\\n57 -299\\n354 -298\\n156 -298\\n102 -298\\n862 -300\\n134 -300\\n1446 -289\\n23 -298\\n1012 -298\\n901 -300\\n97 -300\\n172 -297\\n108 -265\\n209 ... | HARD | {
"id": "taco-train-22548",
"rating": null,
"split": "confidence_train",
"sub_source": "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": "INTERCAL is the oldest of esoteric programming langu... | code | {
"ground_truth": "{\"inputs\": [\"Hello, World!\", \"N\", \"!{|aPUBKs[k\\\"HE;>O&(Nf}N4,*#g*<3sQXFJ'?Z/H9L[xx Rc5\\\"8~v}84+wv]w[oO0e':MaNy&6*]jRkYomz[o?=13Y?!fzA3eC\\\\\", \"!{|aPUBKs[k\\\"HE;>O&(Nf}N4,*#g*<3sQXFJ'?Z/H9L[xx Rc5\\\"8~v}84+wv]w\", \":J&UY'O]>@Lc\\\"4ow&?8#yq{s=gH%'`3Yd[CP#\", \"Py0L_[Ymh&.\", \"fH9Bh... | rating_1201-1400 | {
"id": "132A",
"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 ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A binary string is a string consisting only of the c... | code | {
"ground_truth": "{\"inputs\": [\"6\\n5\\n11100\\n7\\n1100110\\n6\\n011110\\n7\\n1001010\\n4\\n1000\\n1\\n0\\n\", \"1\\n7\\n0111111\\n\"], \"outputs\": [\"9\\n12\\n16\\n12\\n9\\n1\\n\", \"36\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-24046",
"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": "Numbers k-bonacci (k is integer, k > 1) are a genera... | code | {
"ground_truth": "{\"inputs\": [\"21 5\\n\", \"5 2\\n\", \"87783 3\\n\", \"1000000000 3\\n\", \"1 1000\\n\", \"137 2\\n\", \"780787655 29\\n\", \"1 2\\n\", \"172285923 26\\n\", \"567886500 9\\n\", \"989464701 4\\n\", \"764747 6\\n\", \"900077555 2\\n\", \"980345678 19\\n\", \"980765665 7\\n\", \"1 3\\n\", \"76754 2\... | rating_1401-1600 | {
"id": "225_B. Well-known Numbers",
"rating": 1600,
"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": "There are N bikes and each can cover 100 km when full... | code | {
"ground_truth": "{\"inputs\": [\"N = 2\", \"N = 3\"], \"outputs\": [\"150\", \"183\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-23944",
"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": "We always knew they were coming back.\nSpecies on Ea... | code | {
"ground_truth": "{\"inputs\": [\"1\\n10\\n4.44 -7.32\\n10.78 4.08\\n3.69 -2.35\\n-2.75 0.68\\n-5.14 -0.77\\n4.31 0.77\\n-9.51 -7.57\\n-4.22 8.92\\n8.70 6.99\\n-7.23 9.58\\n\\nSAMPLE\", \"1\\n10\\n4.44 -7.32\\n10.78 4.08\\n3.69 -2.35\\n-2.75 0.68\\n-5.14 -0.77\\n4.31 0.77\\n-9.51 -7.57\\n-4.22 8.92\\n9.2510418590021... | none | {
"id": "independence-day-main-war",
"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": "In Byteland they have a very strange monetary system... | code | {
"ground_truth": "{\"inputs\": [\"12\\n2\", \"12\\n1\", \"12\\n0\", \"12\\n3\", \"12\\n4\", \"12\\n5\", \"12\\n10\", \"12\\n7\", \"12\\n9\", \"12\\n19\", \"12\\n6\", \"12\\n11\", \"12\\n21\", \"12\\n27\", \"12\\n12\", \"12\\n15\", \"12\\n14\", \"12\\n20\", \"12\\n8\", \"12\\n26\", \"12\\n23\", \"12\\n17\", \"12\\n33... | none | {
"id": "coins",
"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": "We will call a non-negative integer increasing if, f... | code | {
"ground_truth": "{\"inputs\": [\"123456789\", \"80\", \"7204647845201772120166980358816078279571541735614841625060678056933503\", \"20170312\", \"150346839\", \"73\", \"3704579452095997258280591217784156184311155893966777597430447796450532\", \"19664274\", \"22\", \"4271374355872521214646189206931447259915557225329... | none | {
"id": "p03789 AtCoder Grand Contest 011 - Increasing Numbers",
"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": "Little boy Valera studies an algorithm of sorting an... | code | {
"ground_truth": "{\"inputs\": [\"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\", \"9\\n\", \"50\\n\", \"22\\n\", \"34\\n\", \"50\\n\", \"12\\n\", \"26\\n\", \"38\\n\", \"4\\n\", \"18\\n\", \"30\\n\", \"46\\n\", \"32\\n\", \"2\\n\", \"4\\n\", \"26\\n\", \"5\\n\", \"7\\n\", \"38\\n\", \"... | EASY | {
"id": "taco-train-2072",
"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": "Let’s take a prime P = 200\\,003. You are given N in... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2019 0 2020 200002\", \"5\\n1 1 2 2 100000\", \"4\\n1234 0 2020 200002\", \"5\\n1 1 2 3 100000\", \"4\\n1234 0 3282 200002\", \"5\\n1 1 2 3 101000\", \"5\\n1 1 2 3 001000\", \"5\\n1 1 1 3 001000\", \"5\\n1 1 0 3 001000\", \"5\\n0 1 0 3 001000\", \"5\\n0 2 0 3 001000\", \"5\\n0 1... | none | {
"id": "p02590 AtCoder Grand Contest 047 - Product Modulo",
"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": "There are N squares arranged in a row. The squares a... | code | {
"ground_truth": "{\"inputs\": [\"3 1\\n1 3 3\", \"8 10\\n2 6 2\\n5 5 1\\n3 5 2\\n4 7 3\\n4 4 1\\n2 3 1\\n7 7 1\\n1 5 2\\n1 7 3\\n3 4 2\", \"1 3\\n1 1 1\\n1 1 2\\n1 1 3\", \"4 2\\n1 3 1\\n2 4 2\", \"3 1\\n0 3 3\", \"8 10\\n3 6 2\\n5 5 1\\n3 5 2\\n4 7 3\\n4 4 1\\n2 3 1\\n7 7 1\\n1 5 2\\n1 7 3\\n3 4 2\", \"1 3\\n0 1 1... | none | {
"id": "p03717 AtCoder Regular Contest 074 - RGB Sequence",
"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": "There is an automatic door at the entrance of a fact... | code | {
"ground_truth": "{\"inputs\": [\"1 1 3 4\\n7\", \"4 3 4 2\\n7 9 11\", \"10 10 51 69\\n154 170 170 183 251 337 412 426 445 452\", \"70 10 26 17\\n361 371 579 585 629 872 944 1017 1048 1541\", \"100 20 49 52\\n224 380 690 1585 1830 1973 2490 2592 3240 3341 3406 3429 3549 3560 3895 3944 4344 4390 4649 4800\", \"100 30... | rating_>1900 | {
"id": "883A",
"rating": 2200,
"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": "Nezzar has $n$ balls, numbered with integers $1, 2, ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n6\\n1 1 1 2 3 4\\n5\\n1 1 2 2 3\\n4\\n2 2 2 2\\n3\\n1 2 3\\n1\\n1\\n\", \"5\\n6\\n1 1 1 2 3 4\\n5\\n1 1 2 2 3\\n4\\n2 2 2 2\\n3\\n2 2 3\\n1\\n1\\n\", \"5\\n6\\n1 1 1 2 3 3\\n5\\n1 1 2 2 3\\n4\\n1 2 2 2\\n3\\n2 2 3\\n1\\n1\\n\", \"5\\n6\\n1 1 2 2 3 3\\n5\\n1 1 2 2 3\\n4\\n1 2 2 2... | EASY | {
"id": "taco-train-18964",
"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": "You are given two strings $s$ and $t$. In a single m... | code | {
"ground_truth": "{\"inputs\": [\"test\\nwest\\n\", \"codeforces\\nyes\\n\", \"test\\nyes\\n\", \"b\\nab\\n\", \"z\\nz\\n\", \"abacabadabacaba\\nabacabadacaba\\n\", \"z\\na\\n\", \"ama\\nsama\\n\", \"aaabc\\nbc\\n\", \"lxuyspmieeuyxluv\\ndfwxqvavzxctblaa\\n\", \"ahmedaly\\naly\\n\", \"aa\\na\\n\", \"aa\\nba\\n\", \"... | EASY | {
"id": "taco-train-4227",
"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": "A Fibonacci series (starting from 1) written in order... | code | {
"ground_truth": "{\"inputs\": [\"n = 3\", \"n = 7\"], \"outputs\": [\"2\", \"1\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-6457",
"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": "Indian National Olympiad in Informatics 2016\n\tBoin... | code | {
"ground_truth": "{\"inputs\": [[\"4 5 10 6 12 2 -1 4 2\"]], \"outputs\": [[\"6\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-7034",
"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": "A little boy Laurenty has been playing his favourite... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 2 3\\n3 2 1\\n3 2 2 3\\n\", \"3\\n1 2\\n3 3\\n2 1 3\\n\", \"2\\n1\\n1\\n1 1\\n\", \"2\\n1\\n1\\n2 1\\n\", \"3\\n1 100\\n1 1\\n100 100 100\\n\", \"4\\n5 6 7\\n8 9 10\\n1 8 8 1\\n\", \"4\\n1 2 3\\n2 2 3\\n2 3 4 3\\n\", \"48\\n1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1... | EASY | {
"id": "taco-train-1820",
"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": "You have a permutation: an array $a = [a_1, a_2, \\l... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3\\n1 2 3\\n5\\n3 4 5 2 1\\n3\\n2 1 3\\n\", \"3\\n3\\n2 1 3\\n5\\n3 4 5 2 1\\n3\\n2 1 3\\n\", \"3\\n3\\n1 2 3\\n5\\n3 5 6 2 1\\n3\\n2 1 3\\n\", \"3\\n3\\n2 1 3\\n5\\n5 5 4 4 1\\n3\\n2 1 3\\n\", \"3\\n3\\n2 3 3\\n5\\n3 4 5 2 1\\n3\\n2 1 3\\n\", \"3\\n3\\n2 3 2\\n5\\n3 4 5 2 1\\n3... | HARD | {
"id": "taco-train-16523",
"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": "Chef Hari has got a new obsession now: he has starte... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"30 50 70 10 40 30\", \"0.25 0.10 0.30 0.05\", \"50 36 80 38 65 32\", \"0.55 0.12 0.33 0.54\"]], \"outputs\": [[\"FIRST\", \"SECOND\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-24148",
"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": "[Image] \n\n\n-----Input-----\n\nThe input contains ... | code | {
"ground_truth": "{\"inputs\": [\"1 1\\n\", \"3 7\\n\", \"13 10\\n\", \"6 12\\n\", \"14 14\\n\", \"19 14\\n\", \"21 18\\n\", \"29 18\\n\", \"0 24\\n\", \"16 24\\n\", \"20 28\\n\", \"23 30\\n\", \"23 7\\n\", \"27 13\\n\", \"0 13\\n\", \"12 14\\n\", \"21 18\\n\", \"25 20\\n\", \"29 24\\n\", \"2 24\\n\", \"14 28\\n\", ... | MEDIUM | {
"id": "taco-train-21581",
"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": "The Smart Beaver from ABBYY was offered a job of a s... | code | {
"ground_truth": "{\"inputs\": [\"2 4 3\\n1 1 1\\n1 2 2\\n2 1 3\\n2 2 7\\n\", \"2 4 7\\n1 1 1\\n1 2 2\\n2 1 3\\n2 2 7\\n\", \"4 16 105\\n2 4 15\\n1 1 16\\n2 2 57\\n3 4 31\\n1 2 47\\n2 3 28\\n1 3 70\\n4 2 50\\n3 1 10\\n4 1 11\\n4 4 27\\n1 4 56\\n3 3 28\\n3 2 28\\n2 1 33\\n4 3 63\\n\", \"5 15 90\\n2 3 71\\n5 1 72\\n3 ... | rating_1601-1900 | {
"id": "177_F1. Script Generation",
"rating": 1800,
"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": "Polycarp found the string $s$ and the permutation $p... | code | {
"ground_truth": "{\"inputs\": [\"3\\n5\\nababa\\n3 4 5 2 1\\n5\\nababa\\n2 1 4 5 3\\n10\\ncodeforces\\n8 6 1 7 5 2 9 3 10 4\\n\", \"1\\n78\\naaabbbcccdddeeefffggghhhiiijjjkkklllmmmnnnooopppqqqrrrssstttuuuvvvwwwxxxyyyzzz\\n2 3 1 5 6 4 8 9 7 11 12 10 14 15 13 17 18 16 20 21 19 23 24 22 26 27 25 29 30 28 32 33 31 35 3... | MEDIUM_HARD | {
"id": "taco-train-12882",
"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": "This is a harder version of the problem. The differe... | code | {
"ground_truth": "{\"inputs\": [\"3\\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\\n3 3\\n9 9 9\\n1 1 1\\n1 1 1\\n\", \"1\\n4 2\\n1 1\\n2 1\\n1 2\\n2 2\\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\\n... | rating_>1900 | {
"id": "1209_E2. Rotate Columns (hard version)",
"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": "As you know Appu created aversion to Maths after tha... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 23\\n\\nSAMPLE\", \"47\\n169884146 730277703 8645016 732791141 331583052 25104065 895622218 478600214 924154067 813310590 389843997 977252329 338578814 512086554 953548504 508435813 602216502 773835133 194230149 661387945 354427757 690709868 320153566 468158534 287696464 21058... | none | {
"id": "appu-and-sugarcane-farm",
"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": "Dima and his friends have been playing hide and seek... | code | {
"ground_truth": "{\"inputs\": [\"1\\n1\", \"1\\n2\", \"2\\n3 5\", \"2\\n3 5\", \"1\\n5\", \"5\\n4 4 3 5 1\", \"6\\n2 3 2 2 1 3\", \"8\\n2 2 5 3 4 3 3 2\", \"7\\n4 1 3 2 2 4 5\", \"3\\n3 5 1\", \"95\\n4 2 3 4 4 5 2 2 4 4 3 5 3 3 3 5 4 2 5 4 2 1 1 3 4 2 1 3 5 4 2 1 1 5 1 1 2 2 4 4 5 4 5 5 2 1 2 2 2 4 5 5 2 4 3 4 4 3 ... | rating_<=1200 | {
"id": "272A",
"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": "Virat Kohli and Rohit Sharma are warming up for the ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4 1 4 2 3\\n5 3 10 1 2\"], \"outputs\": [\"1\\n3\"]}",
"style": "rule"
} | none | {
"id": "amr14i",
"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": "There is a square field of size $n \\times n$ in whi... | code | {
"ground_truth": "{\"inputs\": [\"6\\n4\\n..*.\\n....\\n*...\\n....\\n2\\n*.\\n.*\\n2\\n.*\\n.*\\n3\\n*.*\\n...\\n...\\n5\\n.....\\n..*..\\n.....\\n.*...\\n.....\\n4\\n....\\n....\\n*...\\n*...\\n\", \"6\\n4\\n..*.\\n....\\n*...\\n....\\n2\\n*.\\n.*\\n2\\n*.\\n.*\\n3\\n*.*\\n...\\n...\\n5\\n.....\\n..*..\\n.....\\n.... | EASY | {
"id": "taco-train-24704",
"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 coder cannot sit and code all day. Sometimes it is... | code | {
"ground_truth": "{\"inputs\": [\"2 5\\n1 1 1\\n5 0 1\\n\", \"1 10\\n20 0 10\\n\", \"2 5\\n4 0 3\\n5 3 1\\n\", \"10 6\\n7012 -1721 21\\n-4715 8124 17\\n5511 1732 4\\n-5514 151 49\\n-9286 -1639 37\\n-140 -3453 26\\n7981 6309 12\\n-8737 -984 6\\n-8917 2626 27\\n-7881 -9154 37\\n\", \"2 5\\n-6636 -9320 48\\n-7820 6664 ... | rating_>1900 | {
"id": "420_E. Playing the ball",
"rating": 2600,
"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 n orders, each order consist in pickup and deli... | code | {
"ground_truth": "{\"fn_name\": \"countOrders\", \"inputs\": [[1]], \"outputs\": [1]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-18061",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
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": "Once upon a time in the Kingdom of Far Far Away live... | code | {
"ground_truth": "{\"inputs\": [\"2 4\", \"3 4\", \"4 4\", \"4 3\", \"4 2\", \"1 1\", \"3 5\", \"5 3\", \"506 44\", \"555 349\", \"757 210\", \"419 503\", \"515 19\", \"204 718\", \"862 330\", \"494 982\", \"967 4\", \"449 838\", \"635 458\", \"156 911\", \"409 295\", \"755 458\", \"936 759\", \"771 460\", \"563 802... | rating_1601-1900 | {
"id": "142B",
"rating": 1800,
"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": "Find the number of integers between 1 and N (inclusi... | code | {
"ground_truth": "{\"inputs\": [\"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999\\n3\", \"314159\\n2\", \"25\\n2\", \"100\\n1\", \"314159\\n1\", \"25\\n1\", \"100\\n2\", \"314159\\n3\", \"999999999999999999999999999999999999999999999999999999999999999999999999999... | none | {
"id": "p02781 AtCoder Beginner Contest 154 - Almost Everywhere Zero",
"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": "Vasya has his favourite number $n$. He wants to spli... | code | {
"ground_truth": "{\"inputs\": [\"1\\n\", \"4\\n\", \"27\\n\", \"239\\n\", \"191\\n\", \"94\\n\", \"57\\n\", \"78\\n\", \"224\\n\", \"2\\n\", \"3\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\", \"9\\n\", \"10\\n\", \"11\\n\", \"12\\n\", \"13\\n\", \"14\\n\", \"15\\n\", \"16\\n\", \"17\\n\", \"18\\n\", \"19\\n\", \"121... | EASY | {
"id": "taco-train-20319",
"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": "Li and Lu have $n$ integers, $a_1,a_2,\\ldots,a_n$, ... | code | {
"ground_truth": "{\"inputs\": [\"4 2\\n4 3 1 2\\n\", \"4 1\\n3 3 3 1\\n\"], \"outputs\": [\" 6\\n\", \"2\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-2267",
"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": "Surely you have seen insane videos by South Korean r... | code | {
"ground_truth": "{\"inputs\": [\"3\\n7 7\\n3 8\\n5 6\\n\", \"4\\n1 1\\n2 1\\n1000000000 1\\n1000000000000000000 1\\n\", \"3\\n7 3\\n3 8\\n5 6\\n\", \"3\\n7 3\\n3 6\\n5 6\\n\", \"3\\n7 3\\n3 6\\n5 11\\n\", \"3\\n7 3\\n3 8\\n5 2\\n\", \"4\\n1 1\\n2 1\\n1000000000 2\\n1000000000000000000 1\\n\", \"4\\n1 1\\n2 1\\n1000... | rating_>1900 | {
"id": "986_F. Oppa Funcan Style Remastered",
"rating": 3300,
"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": "Bob has received a binary string of length N transmi... | code | {
"ground_truth": "{\"inputs\": [\"3 \\n5 0 \\n00000 \\n3 1 \\n001 \\n3 3 \\n101\\n\"], \"outputs\": [\"0\\n3\\n6\\n\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-21096",
"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": "problem\n\nAOR Ika is at the $ S $ th bus stop at ti... | code | {
"ground_truth": "{\"inputs\": [\"2 2 1 2\\n1 2 10 100\\n1 2 5 500\", \"2 1 1 2\\n1 2 10 100\\n1 2 5 500\", \"2 2 1 2\\n1 2 10 101\\n1 2 5 500\", \"2 1 1 2\\n1 2 13 011\\n2 2 5 500\", \"2 1 1 2\\n1 2 19 011\\n2 2 5 500\", \"2 2 1 2\\n1 2 10 100\\n1 2 7 893\", \"2 1 1 2\\n1 2 34 011\\n2 2 5 500\", \"2 1 1 2\\n1 2 9 0... | none | {
"id": "p01911 Rainy Bus Stops",
"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": "We had a string s consisting of n lowercase Latin le... | code | {
"ground_truth": "{\"inputs\": [\"5 4\\nabcd\\ndcba\\nacbd\\ndbca\\nzzzz\\n\", \"3 4\\nabac\\ncaab\\nacba\\n\", \"3 4\\nkbbu\\nkbub\\nubkb\\n\", \"3 4\\nkbub\\nkbbu\\nubkb\\n\", \"5 5\\nzbibx\\nzbbix\\nzbibx\\nxbibz\\nxbibz\\n\", \"100 2\\nqz\\nqz\\nqz\\nqz\\nqz\\nqz\\nqz\\nqz\\nqz\\nqz\\nqz\\nqz\\nqz\\nqz\\nqz\\nqz... | rating_>1900 | {
"id": "903_E. Swapping Characters",
"rating": 2200,
"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": "Nephren is playing a game with little leprechauns.\n... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 1\\n1 2\\n1 111111111111\", \"5\\n0 69\\n1 194\\n1 139\\n0 47\\n1 66\", \"10\\n4 1825\\n3 75\\n3 530\\n4 1829\\n4 1651\\n3 187\\n4 584\\n4 255\\n4 774\\n2 474\", \"1\\n0 1\", \"1\\n999 1000000000000000000\", \"10\\n1 8\\n1 8\\n9 5\\n0 1\\n8 1\\n7 3\\n5 2\\n0 9\\n4 6\\n9 4\", \... | rating_1601-1900 | {
"id": "896A",
"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 ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Alex enjoys performing magic tricks. He has a trick ... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n\", \"4 4\\n\", \"1 2\\n\", \"2 1\\n\", \"10 10\\n\", \"1000 1000\\n\", \"1 1\\n\", \"987 123\\n\", \"999 999\\n\", \"1 999\\n\", \"998 1\\n\", \"2 987\\n\", \"555 543\\n\", \"321 123\\n\", \"2 3\\n\", \"461 1000\\n\", \"678 231\\n\", \"1000 1000\\n\", \"998 1\\n\", \"999 999\... | HARD | {
"id": "taco-train-13186",
"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": "Dreamoon likes coloring cells very much.\n\nThere is... | code | {
"ground_truth": "{\"inputs\": [\"5 3\\n3 2 2\\n\", \"10 1\\n1\\n\", \"1 1\\n1\\n\", \"2 2\\n1 2\\n\", \"200 50\\n49 35 42 47 134 118 14 148 58 159 33 33 8 123 99 126 75 94 1 141 61 79 122 31 48 7 66 97 141 43 25 141 7 56 120 55 49 37 154 56 13 59 153 133 18 1 141 24 151 125\\n\", \"3 3\\n3 3 1\\n\", \"100000 1\\n10... | MEDIUM_HARD | {
"id": "taco-train-17755",
"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": "The Smart Beaver from ABBYY came up with another spl... | code | {
"ground_truth": "{\"inputs\": [\"2000\\nJAPAN FEBRUARY MONEY SUPPLY RISES 8.8 PCT\\nTOKYO, March 17 - Japan's broadly defined money supply\\naverage of M-2 plus certificate of deposits (CDs) rose a\\npreliminary 8.8 pct in February from a year earlier, compared\\nwith an 8.6 pct rise in January, the Bank of Japan s... | rating_1601-1900 | {
"id": "207D1",
"rating": 1800,
"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": "JOI is a baby playing with a rope. The rope has leng... | code | {
"ground_truth": "{\"inputs\": [\"5 3\\n1 2 3 3 2\", \"5 3\\n1 2 3 1 2\", \"4 3\\n1 2 3 1 2\", \"5 3\\n1 2 2 3 2\", \"5 3\\n1 2 2 3 3\", \"5 3\\n1 3 2 3 3\", \"4 4\\n1 2 3 4 2\", \"4 2\\n2 2 2 1 4\", \"4 3\\n1 2 3 2 2\", \"4 3\\n1 2 3 2 4\", \"5 3\\n1 2 3 1 1\", \"5 3\\n1 2 3 2 2\", \"4 3\\n1 3 3 2 4\", \"5 3\\n2 2 ... | none | {
"id": "p00563 Rope",
"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": "One department of some software company has $n$ serv... | code | {
"ground_truth": "{\"inputs\": [\"6 8 16\\n3 5 2 9 8 7\", \"4 20 32\\n21 11 11 12\", \"4 11 32\\n5 5 16 16\", \"5 12 20\\n7 8 4 11 9\", \"2 1 1\\n1 1\", \"2 1 1\\n1 1000000\", \"2 1 1\\n1000000000 1000000000\", \"2 1 2\\n1 1\", \"15 250 200\\n71 2 77 69 100 53 54 40 73 32 82 58 24 82 41\", \"4 12 11\\n4 4 6 11\"], \... | rating_1601-1900 | {
"id": "925B",
"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 have a board represented as a grid with 2 × n ce... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 0 1\\n1 0\\n1 1 1\\n0 0\\n3 0 0\\n1 3\\n4 3 1\\n2 2\\n5 4 3\\n3 1\\n\", \"9\\n1 0 1\\n1 0\\n1 0 1\\n1 0\\n1 0 1\\n1 0\\n1 0 1\\n1 0\\n1 0 1\\n1 0\\n1 0 1\\n1 0\\n1 0 1\\n1 0\\n1 0 1\\n1 0\\n1 0 1\\n1 0\\n\", \"9\\n1 1 1\\n1 0\\n1 0 1\\n1 0\\n1 0 1\\n1 0\\n1 0 1\\n1 0\\n1 0 1\\... | rating_<=1200 | {
"id": "1499_A. Domino on Windowsill",
"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": "For a finite set of integers X, let f(X)=\\max X - \... | code | {
"ground_truth": "{\"inputs\": [\"4 2\\n1 1 3 4\\n\", \"6 3\\n10 10 10 -10 -10 -10\\n\", \"3 1\\n1 1 1\\n\", \"10 6\\n1000000000 1000000000 1000000000 1000000000 1000000000 0 0 0 0 0\\n\", \"3 1\\n1 1 2\", \"4 2\\n1 1 2 4\", \"10 5\\n1000000000 1000000000 1000000000 1000000000 1000000000 0 0 0 0 0\", \"6 4\\n10 10 1... | MEDIUM | {
"id": "taco-train-20889",
"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": "Evil hackers are trying to hack the database of Hack... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 2\\n1 1\\n2 1\\n2 3\\n\\nSAMPLE\", \"1000\\n73004 67426\\n91627 69478\\n61297 68278\\n24234 83945\\n47637 96401\\n94242 97144\\n85353 14705\\n99269 44776\\n88928 91446\\n52876 40296\\n37601 12385\\n93013 8451\\n18937 66949\\n7883 75710\\n6581 60221\\n4664 95936\\n43998 12643\\... | none | {
"id": "little-stuart-and-evil-hackers-2",
"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": "Jonas asked Martha to stand at point $(x_{1},y_{1})$... | code | {
"ground_truth": "{\"inputs\": [\"1\\nRLUDRLUD\\n1 2\\n2\\n2 3\\n1 -2\"], \"outputs\": [\"YES 2\\nNO\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-4404",
"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": "DZY loves collecting special strings which only cont... | code | {
"ground_truth": "{\"inputs\": [\"abc\\n3\\n1 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1\", \"mmzhr\\n3\\n443 497 867 471 195 670 453 413 579 466 553 881 847 642 269 996 666 702 487 209 257 741 974 133 519 453\", \"ajeeseerqnpaujubmajpibxrccazaawetywxmifzehojf\\n23\\n359 813 772 413 733 654 33 87 890 433 395 ... | rating_<=1200 | {
"id": "447B",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a string s consisting only of letters 'a' and '... | code | {
"ground_truth": "{\"fn_name\": \"removePalindromeSub\", \"inputs\": [[\"\\\"ababa\\\"\"]], \"outputs\": [1]}",
"style": "rule"
} | EASY | {
"id": "taco-train-9097",
"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 two non-negative decimal integers $a$ and $b$,... | code | {
"ground_truth": "{\"inputs\": [\"8 10\", \"13 10\", \"20 10\", \"20 1\", \"15 1\", \"1 1\", \"2 1\", \"2 0\", \"1 0\", \"-1 1\", \"-1 2\", \"-1 4\", \"-1 3\", \"-1 0\", \"-1 -1\", \"0 0\", \"1 3\", \"2 3\", \"4 0\", \"4 -2\", \"7 -2\", \"0 -2\", \"2 2\", \"5 2\", \"10 2\", \"10 3\", \"10 0\", \"19 0\", \"19 1\", \"... | none | {
"id": "p02424 Bit Operation II",
"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": "There is an infinite sequence consisting of all posi... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4 2\\n1 4\\n\", \"3\\n1 6\\n3 4\\n2 5\\n\", \"1\\n1000000000 1\\n\", \"5\\n2 5\\n6 3\\n4 6\\n5 4\\n2 5\\n\", \"4\\n2 5\\n4 3\\n1 4\\n6 2\\n\", \"3\\n1 3\\n4 6\\n5 2\\n\", \"5\\n1 1000000000\\n2 999999999\\n3 999999998\\n4 999999997\\n5 999999996\\n\", \"30\\n1 200000\\n2 199999\... | HARD | {
"id": "taco-train-13528",
"rating": null,
"split": "confidence_train",
"sub_source": "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": "This problem was deleted from the contest, because i... | code | {
"ground_truth": "{\"inputs\": [\"1 1\\n1 2 100\", \"2 2\\n1 1 100\", \"2 2\\n1 3 100\", \"8 17\\n1 20 1000000000\", \"10 10\\n1 5 10000000\", \"44 50\\n1 1 10000000\", \"77 91\\n1 75 10000000\", \"92 39\\n1 25 10000000\", \"14 68\\n12 16 10000000\", \"561 711\\n1 906 1000000000\", \"100000 100000\\n1 150000 1000000... | rating_>1900 | {
"id": "401E",
"rating": 2500,
"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": "Ford Prefect got a job as a web developer for a smal... | code | {
"ground_truth": "{\"inputs\": [\"9\\npergament\\npermanent\\n\", \"6\\nwookie\\ncookie\\n\", \"4\\npetr\\negor\\n\", \"6\\ndouble\\nbundle\\n\", \"1\\na\\na\\n\", \"1\\na\\nb\\n\", \"2\\naa\\naa\\n\", \"2\\nzz\\nzz\\n\", \"2\\nzx\\nzz\\n\", \"2\\nzz\\nzx\\n\", \"2\\nxy\\nzz\\n\", \"2\\nzz\\nxy\\n\", \"2\\nzx\\nxz\\... | MEDIUM | {
"id": "taco-train-2199",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
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": "Not long ago Billy came across such a problem, where... | code | {
"ground_truth": "{\"inputs\": [\"4\", \"5\", \"6\", \"7\", \"1\", \"8\", \"10\", \"15\", \"16\", \"20\", \"50\", \"100\", \"127\", \"202\", \"333\", \"404\", \"411\", \"571\", \"600\", \"771\", \"10000\", \"20000\", \"30000\", \"50000\", \"99999\", \"200000\", \"400000\", \"600000\", \"800000\", \"1000000\", \"8282... | rating_>1900 | {
"id": "10C",
"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 ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Vasiliy has a car and he wants to get from home to t... | code | {
"ground_truth": "{\"inputs\": [\"5 2 1 4 10\\n\", \"5 2 1 4 5\\n\", \"1 1 1 2 1\\n\", \"1000000000000 1000000 999999 1000000 1000000\\n\", \"997167959139 199252 232602 952690 802746\\n\", \"244641009859 748096 689016 889744 927808\\n\", \"483524125987 264237 209883 668942 244358\\n\", \"726702209411 813081 730750 8... | HARD | {
"id": "taco-test-862",
"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": "Sereja and Dima play the game. The rules are as foll... | code | {
"ground_truth": "{\"inputs\": [\"4\\n5\\n6 10 15 22 28\\n5\\n2 4 8 16 32\\n4\\n2 4 8 16\\n4\\n1 2 3 4\", \"4\\n5\\n6 10 15 22 28\\n5\\n2 4 8 16 32\\n4\\n2 4 8 16\\n4\\n1 2 6 4\", \"4\\n5\\n6 10 15 22 28\\n5\\n2 4 8 16 32\\n4\\n2 3 8 16\\n4\\n1 2 6 4\", \"4\\n5\\n6 10 15 22 28\\n5\\n0 0 8 16 32\\n4\\n2 6 10 11\\n4\\... | none | {
"id": "seagm",
"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": "The country has n cities and n - 1 bidirectional roa... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 1\\n\", \"5\\n1 2 3 4\\n\", \"137\\n1 1 3 3 5 5 7 8 8 10 10 12 12 14 14 16 16 18 18 20 21 21 23 23 25 26 26 28 28 30 30 32 33 33 35 36 36 38 38 40 41 41 43 43 45 46 46 48 49 49 51 51 53 53 55 56 56 58 59 59 61 62 62 64 64 66 67 67 1 1 71 71 73 73 75 76 76 78 78 80 80 82 82 84 ... | rating_>1900 | {
"id": "543_D. Road Improvement",
"rating": 2300,
"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": "We need you to implement a method of receiving comman... | code | {
"ground_truth": "{\"fn_name\": \"communication_module\", \"inputs\": [[\"H1H10F1200120008F4F4\"], [\"D7D70F1200250015G8G8\"], [\"X7X7B7A201400058L0L0\"], [\"Y2Y2B7A210000902N5N5\"], [\"R5R5C3D900120008K4K4\"], [\"S2S2C3D900250005I9I9\"], [\"E4E40F1239128908Z3Z3\"], [\"A6A6C3D911150015M0M0\"], [\"T7T7B7A200258908P2P... | EASY | {
"id": "taco-train-12566",
"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": "*n* fish, numbered from 1 to *n*, live in a lake. Ev... | code | {
"ground_truth": "{\"inputs\": [\"2\\n0 0.5\\n0.5 0\", \"4\\n0 0.5 0.5 0.5\\n0.5 0 0.5 0.5\\n0.5 0.5 0 0.5\\n0.5 0.5 0.5 0\", \"5\\n0 1 1 1 1\\n0 0 0.5 0.5 0.5\\n0 0.5 0 0.5 0.5\\n0 0.5 0.5 0 0.5\\n0 0.5 0.5 0.5 0\", \"1\\n0.000\", \"2\\n0.000 0.551\\n0.449 0.000\", \"3\\n0.000 0.817 0.584\\n0.183 0.000 0.665\\n0.41... | rating_1601-1900 | {
"id": "16E",
"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": "As we all know Barney's job is \"PLEASE\" and he has... | code | {
"ground_truth": "{\"inputs\": [\"1\\n2\\n\", \"3\\n1 1 1\\n\", \"1\\n983155795040951739\\n\", \"2\\n467131402341701583 956277077729692725\\n\", \"10\\n217673221404542171 806579927281665969 500754531396239406 214319484250163112 328494187336342674 427465830578952934 951554014286436941 664022909283791499 6532068147246... | HARD | {
"id": "taco-train-21633",
"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": "Chef has come to a 2 dimensional garden in which the... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"3\", \"1 1\", \"2 1\", \"3 3\", \"4\", \"1 1\", \"2 2\", \"2 1\", \"3 3\"]], \"outputs\": [[\"1.0\", \"2.0\"]]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-10645",
"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": "Polycarp takes part in a math show. He is given *n* ... | code | {
"ground_truth": "{\"inputs\": [\"3 4 11\\n1 2 3 4\", \"5 5 10\\n1 2 4 8 16\", \"1 1 0\\n2\", \"1 1 1\\n1\", \"2 1 0\\n2\", \"2 2 2\\n2 3\", \"4 2 15\\n1 4\", \"24 42 126319796\\n318996 157487 174813 189765 259136 406743 138997 377982 244813 16862 95438 346702 454882 274633 67361 387756 61951 448901 427272 288847 31... | rating_1601-1900 | {
"id": "846B",
"rating": 1800,
"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": "Read problems statements in Mandarin Chinese and Ru... | code | {
"ground_truth": "{\"inputs\": [\"2\\n5 3\\n1 2 4 5 6\\n5 3\\n1 2 4 5 7\", \"2\\n5 3\\n1 2 4 4 6\\n5 3\\n1 2 4 5 7\", \"2\\n1 3\\n0 2 6 4 6\\n5 3\\n1 2 0 1 2\", \"2\\n5 3\\n1 2 5 4 6\\n5 3\\n1 2 4 5 8\", \"2\\n5 3\\n1 2 4 4 6\\n5 3\\n1 2 0 5 7\", \"2\\n5 3\\n1 2 4 4 6\\n5 3\\n0 2 0 5 7\", \"2\\n1 3\\n1 2 4 4 6\\n5 3... | HARD | {
"id": "taco-train-16948",
"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": "Stepan has the newest electronic device with a displ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"9\\n\", \"156\\n\", \"255\\n\", \"8343\\n\", \"156\\n\", \"6\\n\", \"4568\\n\", \"9514\\n\", \"99998\\n\", \"4\\n\", \"85651\\n\", \"5431\\n\", \"85666\\n\", \"100000\\n\", \"9\\n\", \"6782\\n\", \"99995\\n\", \"255\\n\", \"99997\\n\... | EASY | {
"id": "taco-train-22513",
"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": "Kuroni is the coordinator of the next Mathforces rou... | code | {
"ground_truth": "{\"inputs\": [\"4 10\\n\", \"5 3\\n\", \"8 0\\n\", \"5000 0\\n\", \"1 1\\n\", \"5000 1560002\\n\", \"8 11\\n\", \"4400 3971342\\n\", \"4500 3402837\\n\", \"200 1405\\n\", \"300 9685\\n\", \"8 4\\n\", \"4700 1977057\\n\", \"80 1415\\n\", \"8 10\\n\", \"2 1\\n\", \"2 0\\n\", \"1000 249500\\n\", \"8 2... | rating_>1900 | {
"id": "1305_E. Kuroni and the Score Distribution",
"rating": 2200,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.