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": "Mathison recently inherited an ancient papyrus that ... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26\", \"abcdefghijklmopqrstuvwz\", \"1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26\", \"thequickbrownfoxjumpsoverthelazydog\"]], \"outputs\": [[\"63\", \"0\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-17048",
"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": "Tokitsukaze has a sequence $a$ of length $n$. For ea... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3\\n1 2 3\\n3\\n1 2 2\\n3\\n1 2 0\\n\"], \"outputs\": [\"4\\n3\\n2\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-20066",
"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": "After lessons Nastya decided to read a book. The boo... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 4\\n5 9\\n10 12\\n9\\n\", \"1\\n1 7\\n4\\n\", \"3\\n1 3\\n4 7\\n8 11\\n2\\n\", \"1\\n1 5\\n1\\n\", \"19\\n1 1\\n2 2\\n3 3\\n4 4\\n5 5\\n6 6\\n7 7\\n8 8\\n9 9\\n10 10\\n11 11\\n12 12\\n13 13\\n14 14\\n15 15\\n16 16\\n17 17\\n18 18\\n19 19\\n13\\n\", \"3\\n1 3\\n4 7\\n8 11\\n1\\... | rating_<=1200 | {
"id": "1136_A. Nastya Is Reading a Book",
"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": "Your task is simply to count the total number of lowe... | code | {
"ground_truth": "{\"fn_name\": \"lowercase_count\", \"inputs\": [[\"abc\"], [\"abcABC123\"], [\"abcABC123!@#$%^&*()_-+=}{[]|':;?/>.<,~\"], [\"\"], [\"ABC123!@#$%^&*()_-+=}{[]|':;?/>.<,~\"], [\"abcdefghijklmnopqrstuvwxyz\"]], \"outputs\": [[3], [3], [3], [0], [0], [26]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-1590",
"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": "Mad scientist Mike is building a time machine in his... | code | {
"ground_truth": "{\"inputs\": [\"1 1\", \"3 2\", \"199 200\", \"1 1000000000000000000\", \"3 1\", \"21 8\", \"18 55\", \"1 2\", \"2 1\", \"1 3\", \"2 3\", \"1 4\", \"5 2\", \"2 5\", \"4 5\", \"3 5\", \"13 4\", \"21 17\", \"5 8\", \"13 21\", \"74 99\", \"2377 1055\", \"645597 134285\", \"29906716 35911991\", \"30524... | rating_1401-1600 | {
"id": "343A",
"rating": 1600,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
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": "AtCoDeer the deer has N cards with positive integers... | code | {
"ground_truth": "{\"inputs\": [\"5 400\\n3 1 4 1 5\", \"3 6\\n1 4 3\", \"6 20\\n10 4 3 10 25 2\", \"1 400\\n3 1 4 1 5\", \"3 6\\n1 7 3\", \"3 6\\n1 5 2\", \"3 7\\n1 5 0\", \"4 590\\n0 1 1 1 5\", \"5 1135\\n1 1 1 2 5\", \"1 734\\n3 1 4 1 5\", \"3 6\\n1 7 2\", \"1 734\\n3 1 4 0 5\", \"1 1126\\n3 1 4 0 5\", \"3 6\\n1 ... | none | {
"id": "p03780 AtCoder Beginner Contest 056 - No Need",
"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": "The GCD table *G* of size *n*<=×<=*n* for an array o... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2 1 2 3 4 3 2 6 1 1 2 2 1 2 3 2\", \"1\\n42\", \"2\\n1 1 1 1\", \"2\\n54748096 1 641009859 1\", \"3\\n1 7 923264237 374288891 7 524125987 1 1 1\", \"4\\n1 1 1 1 1 702209411 496813081 673102149 1 1 561219907 1 1 1 1 1\", \"5\\n1 1 1 1 1 9 564718673 585325539 1 1 3 1 9 1 1 3653292... | rating_1601-1900 | {
"id": "582A",
"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 a BST and a number X, find Ceil of X.\nNote: Ce... | code | {
"ground_truth": "{\"inputs\": [\"5\\n / \\\\\\n 1 7\\n \\\\\\n 2 \\n \\\\\\n 3\\nX = 3\", \"10\\n / \\\\\\n 5 11\\n / \\\\ \\n 4 7\\n \\\\\\n 8\\nX = 6\"], \"outputs\": [\"3\", \"7\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-8495",
"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": "You are a newly designed and created robot. As a rob... | code | {
"ground_truth": "{\"inputs\": [\"6\\n-1 0\\n0 0\\n1 0\\n-1 1\\n0 2\\n1 1\\n\", \"6\\n1 1\\n3 5\\n0 -1\\n1 0\\n5 0\\n0 0\\n\", \"6\\n1 1\\n3 5\\n0 -1\\n1 0\\n5 0\\n0 1\\n\", \"6\\n6 1\\n3 5\\n0 -1\\n1 0\\n6 0\\n0 0\\n\"], \"outputs\": [\"failure\\n\", \"success\\n\", \"failure\\n\", \"failure\\n\"]}",
"style": "ru... | HARD | {
"id": "taco-train-577",
"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": "Bananistan is a beautiful banana republic. Beautiful... | code | {
"ground_truth": "{\"inputs\": [\"5 4\\n2 7\\n9 16\\n8 10\\n9 17\\n1 6\\n\", \"5 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n\", \"5 5\\n1 5\\n3 7\\n5 9\\n7 11\\n1000000000 1000000000\\n\", \"5 5\\n1 1\\n2 2\\n3 3\\n4 4\\n5 5\\n\", \"5 5\\n1 5\\n3 7\\n5 9\\n7 11\\n1000000000 1000010000\\n\", \"5 4\\n2 7\\n9 16\\n6 10\\n9 17\\... | rating_>1900 | {
"id": "575_F. Bulbo",
"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": "Consider a number X on which K Mag-Inc operations ar... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"100 1\", \"1\", \"4\", \"100 2\", \"1 1\", \"2 3\"]], \"outputs\": [[\"20\", \"50\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-5841",
"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": "On vacations *n* pupils decided to go on excursion a... | code | {
"ground_truth": "{\"inputs\": [\"5 10 1 2 5\", \"3 6 1 2 1\", \"39 252 51 98 26\", \"59 96 75 98 9\", \"87 237 3 21 40\", \"11 81 31 90 1\", \"39 221 55 94 1\", \"59 770 86 94 2\", \"10000 1000000000 1 2 1\", \"10000 1 999999999 1000000000 1\", \"9102 808807765 95894 96529 2021\", \"87 422 7 90 3\", \"15 563 38 51 ... | rating_1601-1900 | {
"id": "700A",
"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": "Ramesses came to university to algorithms practice, ... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n0 1 0\\n0 1 0\\n1 0 0\\n1 0 0\\n1 0 0\\n1 0 0\\n\", \"6 7\\n0 0 1 1 0 0 1\\n0 1 0 0 1 0 1\\n0 0 0 1 0 0 1\\n1 0 1 0 1 0 0\\n0 1 0 0 1 0 1\\n0 1 0 1 0 0 1\\n1 1 0 1 0 1 1\\n0 1 1 0 1 0 0\\n1 1 0 1 0 0 1\\n1 0 1 0 0 1 0\\n0 1 1 0 1 0 0\\n0 1 1 1 1 0 1\\n\", \"3 4\\n0 1 0 1\\n1 0... | MEDIUM | {
"id": "taco-train-20991",
"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": "Read problem statements in [Hindi], [Bengali], [Mand... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3\\n0 0 0\\n4\\n1 0 1 0\\n5\\n1 1 0 1 0\"], \"outputs\": [\"0\\n2\\n3\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-6584",
"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": "Leha is planning his journey from Moscow to Saratov.... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 2\", \"4\\n1 3 3 7\", \"100\\n3 3 3 4 7 8 8 8 9 9 10 12 12 13 14 14 15 15 16 17 17 20 21 21 22 22 23 25 29 31 36 37 37 38 39 40 41 41 41 42 43 44 45 46 46 47 47 49 49 49 51 52 52 53 54 55 59 59 59 60 62 63 63 64 66 69 70 71 71 72 74 76 76 77 77 78 78 79 80 81 81 82 82 84 85 86... | rating_>1900 | {
"id": "1009E",
"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": "We like parsed SQL or PL/SQL blocks...\n\nYou need to... | code | {
"ground_truth": "{\"fn_name\": \"get_textliterals\", \"inputs\": [[\"select 'text' into row from table where a = 'value'\"], [\"if a>'data'and b<'nnn' then c:='test'; end if;\"], [\"select aaa, bbb, ccc, /*'ddd'?*/ into row from table;\"], [\"a:='data''s';\"]], \"outputs\": [[[[7, 13], [44, 51]]], [[[5, 11], [17, 2... | EASY | {
"id": "taco-train-22186",
"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": "<image>\n\nInput\n\nThe input contains a single inte... | code | {
"ground_truth": "{\"inputs\": [\"3\\n\", \"11\\n\", \"9\\n\", \"10\\n\", \"12\\n\", \"15\\n\", \"14\\n\", \"13\\n\", \"4\\n\", \"6\\n\", \"5\\n\", \"7\\n\", \"2\\n\", \"0\\n\", \"1\\n\", \"8\\n\", \"000\\n\"], \"outputs\": [\"13\\n\", \"3\\n\", \"1\\n\", \"2\\n\", \"4\\n\", \"7\\n\", \"6\\n\", \"5\\n\", \"8\\n\", \... | none | {
"id": "1145_C. Mystery Circuit",
"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 a pile, that consists of some number of st... | code | {
"ground_truth": "{\"inputs\": [\"3\\n---\\n\", \"4\\n++++\\n\", \"2\\n-+\\n\", \"5\\n++-++\\n\", \"1\\n+\\n\", \"100\\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\\n\", \"100\\n----------------------------------------------------------------------------------... | EASY | {
"id": "taco-train-214",
"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": "## Task\n\nGenerate a sorted list of all possible IP ... | code | {
"ground_truth": "{\"fn_name\": \"ipsubnet2list\", \"inputs\": [[\"192.168.1.0/31\"], [\"195.20.15.0/28\"], [\"174.0.153.152/29\"], [\"213.192.46.160/28\"], [\"213.256.46.160/28\"]], \"outputs\": [[[\"192.168.1.0\", \"192.168.1.1\"]], [[\"195.20.15.1\", \"195.20.15.2\", \"195.20.15.3\", \"195.20.15.4\", \"195.20.15.... | EASY | {
"id": "taco-train-2017",
"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": "# Task\n Mr.Nam has `n` candies, he wants to put one ... | code | {
"ground_truth": "{\"fn_name\": \"get_candy_position\", \"inputs\": [[6, 2, 2, 3], [6, 2, 2, 5], [6, 2, 2, 7], [8, 4, 2, 3], [15, 3, 3, 1], [15, 3, 3, 5], [15, 3, 3, 7], [15, 3, 3, 14], [15, 3, 3, 18]], \"outputs\": [[[1, 0, 1]], [[2, 1, 1]], [[-1, -1, -1]], [[1, 2, 1]], [[1, 2, 2]], [[1, 1, 1]], [[1, 0, 2]], [[2, 1... | EASY | {
"id": "taco-train-5292",
"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": "Chef talks a lot on his mobile phone. As a result he... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1.00 200 1\\n1 0.50 28\\n1.00 200 2\\n1 0.75 40\\n3 0.60 100\\n1.00 50 2\\n1 0.75 40\\n3 0.60 100\\n1.00 100 2\\n3 0.50 10\\n2 0.10 20\", \"4\\n1.00 200 1\\n1 0.50 28\\n1.00 200 2\\n1 0.75 40\\n3 0.60 100\\n1.00 50 2\\n1 0.75 40\\n3 0.60 100\\n1.00 100 2\\n3 0.50 10\\n2 0.10 18\... | MEDIUM | {
"id": "taco-train-21622",
"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": "A number is called almost prime if it has exactly tw... | code | {
"ground_truth": "{\"inputs\": [\"10\", \"21\", \"1\", \"2\", \"4\", \"3\", \"8\", \"19\", \"40\", \"77\", \"222\", \"987\", \"1000\", \"2000\", \"3000\", \"2999\", \"2998\", \"2997\", \"1429\", \"1673\", \"1500\", \"500\", \"856\"], \"outputs\": [\"2\", \"8\", \"0\", \"0\", \"0\", \"0\", \"1\", \"6\", \"19\", \"41\... | rating_<=1200 | {
"id": "26A",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Geek is very fond of patterns. Once, his teacher gave... | code | {
"ground_truth": "{\"inputs\": [\"5\"], \"outputs\": [\"1 2 3 4 5\\n1 2 3 4\\n1 2 3 \\n1 2 \\n1 \"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-3820",
"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": "Zane the wizard is going to perform a magic show shu... | code | {
"ground_truth": "{\"inputs\": [\"7 3 4\\n3 4 6\\n1 2\\n2 5\\n5 7\\n7 1\\n\", \"5 1 2\\n2\\n1 2\\n2 4\\n\", \"203948 2 14\\n203948 203947\\n39 38\\n4959 3030\\n1 203947\\n2929 9292\\n203944 203948\\n203947 203944\\n203944 203922\\n203922 203948\\n2495 20495\\n29419 5959\\n12949 12\\n49 29292\\n1 94\\n1 203\\n\", \"5... | rating_1201-1400 | {
"id": "796_B. Find The Bone",
"rating": 1300,
"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": "There are N children, numbered 1, 2, \\ldots, N.\n\n... | code | {
"ground_truth": "{\"inputs\": [\"2 0\\n0 0\", \"1 10\\n9\", \"4 100000\\n100000 100000 100000 100000\", \"3 4\\n1 2 3\", \"1 10\\n17\", \"4 100000\\n101000 100000 100000 100000\", \"1 10\\n3\", \"4 101000\\n101000 100000 100100 101000\", \"4 110000\\n101000 100000 100000 100000\", \"4 100100\\n101000 100000 100100 ... | none | {
"id": "p03172 Educational DP Contest - Candies",
"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 two integer arrays where the second array is a ... | code | {
"ground_truth": "{\"fn_name\": \"find_missing\", \"inputs\": [[[1, 2, 3], [1, 3]], [[6, 1, 3, 6, 8, 2], [3, 6, 6, 1, 2]], [[7], []], [[4, 3, 3, 61, 8, 8], [8, 61, 8, 3, 4]], [[0, 0, 0, 0, 0], [0, 0, 0, 0]]], \"outputs\": [[2], [8], [7], [3], [0]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-23875",
"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 many of you know, we have two major calendar syst... | code | {
"ground_truth": "{\"inputs\": [\"4 3\\nmeiji 10 1877\\ntaisho 6 1917\\nshowa 62 1987\\nheisei 22 2010\\n1868\\n1917\\n1988\\n1 1\\nuniversalcentury 123 2168\\n2010\\n0 0\", \"4 3\\nmeiji 10 1877\\ntaisho 6 1917\\nshowa 62 1987\\nheisei 22 2010\\n2046\\n1917\\n1988\\n1 1\\nuniversalcentury 123 2168\\n2010\\n0 0\", \... | none | {
"id": "p01359 Era Name",
"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": "Luigi has an array A of N positive integers. He want... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2\\n11 22\\n5\\n38 38 38 38 38\\n4\\n4 4 16 8\\n4\\n11 13 17 19\\n\", \"4\\n2\\n11 22\\n5\\n38 38 38 38 38\\n4\\n4 4 16 8\\n4\\n11 13 17 19\\n\", \"1\\n3\\n3 5 7\\n\", \"1\\n4\\n8 16 32 64\\n\", \"1\\n6\\n1 1 2 3 5 8\\n\", \"1\\n1\\n999999991\\n\", \"1\\n2\\n100000000 100000000\... | EASY | {
"id": "taco-test-974",
"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": "Read problems statements in mandarin chinese, russia... | code | {
"ground_truth": "{\"inputs\": [\"4\\n3 0\\n1 0 2\\n3 1\\n1 0 2\\n4 3\\n2 5 4 9\\n2 0\\n3 4\"], \"outputs\": [\"3\\n4\\n6\\n0\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-16376",
"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": "Over time, Alexey's mail box got littered with too m... | code | {
"ground_truth": "{\"inputs\": [\"5\\n0 1 0 1 0\", \"5\\n1 1 0 0 1\", \"2\\n0 0\", \"9\\n1 0 1 0 1 0 1 0 1\", \"5\\n1 1 1 1 1\", \"14\\n0 0 1 1 1 0 1 1 1 0 1 1 1 0\", \"23\\n1 1 1 0 1 1 0 1 1 0 1 1 1 0 1 1 0 1 1 0 1 1 1\", \"27\\n0 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 0\", \"10\\n1 0 0 0 0 1 0 0 0 1\", ... | rating_<=1200 | {
"id": "465B",
"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": "A necklace can be described as a string of links ('-... | code | {
"ground_truth": "{\"inputs\": [\"-o-o--\\n\", \"-o---\\n\", \"-o---o-\\n\", \"ooo\\n\", \"---\\n\", \"--o-o-----o----o--oo-o-----ooo-oo---o--\\n\", \"-o--o-oo---o-o-o--o-o----oo------oo-----o----o-o-o--oo-o--o---o--o----------o---o-o-oo---o--o-oo-o--\\n\", \"-ooo--\\n\", \"---o--\\n\", \"oo-ooo\\n\", \"------o-o--o... | EASY | {
"id": "taco-train-527",
"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": "Abhimanyu simply drew two triangles, as shown in the... | code | {
"ground_truth": "{\"inputs\": [\"1\\n1\\n1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2\\n\\nSAMPLE\", \"1\\n1\\n1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 0 1 2 3 1 2\\n\\nSAMPLE\", \"1\\n1\\n1 2 3 1 2 3 1 2 3 1 2 4 2 2 3 1 2 1 0 2 0 1 5 3 1 2\\n\\nELPMAS\", \"1\\n1\\n1 2 3 1 2 3 1 2 3 1 4 4 2 3 3 1 2 1 0 0 -1 1... | none | {
"id": "crazy-painter-4",
"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": "For a string S, let f(S) be the lexicographically sm... | code | {
"ground_truth": "{\"inputs\": [\"2 2 0\", \"1 1 1\", \"2 1 0\", \"1 1 0\", \"0 2 0\", \"1 0 1\", \"2 0 0\", \"1 0 0\", \"2 2 1\", \"2 0 1\", \"3 2 0\", \"3 0 1\", \"3 3 0\", \"3 1 1\", \"6 3 0\", \"2 1 1\", \"6 3 1\", \"4 1 1\", \"6 3 2\", \"4 2 1\", \"6 0 2\", \"5 2 1\", \"6 0 1\", \"7 2 1\", \"7 4 1\", \"7 7 1\",... | none | {
"id": "p03582 CODE FESTIVAL 2017 qual B - Largest Smallest Cyclic Shift",
"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": "The Resistance is trying to take control over all pl... | code | {
"ground_truth": "{\"inputs\": [\"5\\n4 1\\n4 2\\n1 3\\n1 5\", \"4\\n1 2\\n4 3\\n1 4\", \"10\\n4 3\\n2 6\\n10 1\\n5 7\\n5 8\\n10 6\\n5 9\\n9 3\\n2 9\"], \"outputs\": [\"3\", \"2\", \"4\"]}",
"style": "rule"
} | rating_<=1200 | {
"id": "958B1",
"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": "# Task\n\nDetermine the client's membership level bas... | code | {
"ground_truth": "{\"fn_name\": \"membership\", \"inputs\": [[100000, 1000000, 100000, 10000, 1000], [1001, 1000000, 100000, 10000, 1000], [998, 1000000, 100000, 10000, 1000], [0, 1000000, 100000, 10000, 1000]], \"outputs\": [[\"Gold\"], [\"Bronze\"], [\"Not a member\"], [\"Not a member\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-18355",
"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": "The only difference between the easy and hard versio... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3\\n110\\n2\\n00\\n4\\n1010\\n\", \"3\\n3\\n110\\n2\\n00\\n4\\n1011\\n\", \"3\\n3\\n010\\n2\\n00\\n4\\n0011\\n\", \"3\\n3\\n110\\n2\\n00\\n4\\n0110\\n\", \"3\\n3\\n010\\n2\\n00\\n4\\n1001\\n\", \"3\\n3\\n110\\n2\\n00\\n4\\n0011\\n\", \"3\\n3\\n110\\n2\\n00\\n4\\n0010\\n\", \"3\\... | rating_1601-1900 | {
"id": "1527_B2. Palindrome Game (hard version)",
"rating": 1900,
"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": "Coming up with a new problem isn't as easy as many p... | code | {
"ground_truth": "{\"inputs\": [\"4\\naa\\nbdefghijklmn\\nopqrstuvwxyz\\nc\\n\", \"5\\nthreehorses\\ngoodsubstrings\\nsecret\\nprimematrix\\nbeautifulyear\\n\", \"3\\nrjnflsbpxqivrcdjptj\\nvpojopbwbwbswdu\\nrydkiwnugwddcgcrng\\n\", \"1\\nz\\n\", \"30\\nb\\nu\\np\\nn\\nf\\nm\\nt\\ni\\nj\\nk\\np\\nh\\na\\nc\\nw\\nz\\n... | rating_1401-1600 | {
"id": "278_B. New Problem",
"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": "In this kata you will have to change every letter in ... | code | {
"ground_truth": "{\"fn_name\": \"next_letter\", \"inputs\": [[\"Hello\"], [\"What is your name?\"], [\"zOo\"]], \"outputs\": [[\"Ifmmp\"], [\"Xibu jt zpvs obnf?\"], [\"aPp\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-1289",
"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": "problem\n\nOnce upon a time there were settlements a... | code | {
"ground_truth": "{\"inputs\": [\"10\\n9 4\\n4 3\\n1 1\\n4 2\\n2 4\\n5 8\\n4 0\\n5 3\\n0 5\\n5 2\\n10\\n9 4\\n4 3\\n1 1\\n4 2\\n2 4\\n5 8\\n4 0\\n5 3\\n0 5\\n5 2\\n0\", \"10\\n9 4\\n4 3\\n1 1\\n4 2\\n2 4\\n5 8\\n4 0\\n5 3\\n0 5\\n5 2\\n10\\n2 4\\n4 3\\n1 1\\n4 2\\n2 4\\n5 8\\n4 0\\n5 3\\n0 5\\n5 2\\n0\", \"10\\n9 4\... | none | {
"id": "p00441 The Oldest Site",
"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": "Omkar and Akmar are playing a game on a circular boa... | code | {
"ground_truth": "{\"inputs\": [\"69420\\n\", \"42069\\n\", \"2\\n\", \"24\\n\", \"38\\n\", \"999993\\n\", \"31\\n\", \"999989\\n\", \"27\\n\", \"46\\n\", \"999972\\n\", \"5\\n\", \"41\\n\", \"999996\\n\", \"999994\\n\", \"19\\n\", \"999975\\n\", \"35\\n\", \"4\\n\", \"33\\n\", \"23\\n\", \"45\\n\", \"37\\n\", \"18\... | rating_>1900 | {
"id": "1536_F. Omkar and Akmar",
"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 ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Imagine a city with n horizontal streets crossing m ... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n><>\\nv^v\\n\", \"4 6\\n<><>\\nv^v^v^\\n\", \"2 2\\n<>\\nv^\\n\", \"2 2\\n>>\\n^v\\n\", \"3 3\\n>><\\n^^v\\n\", \"3 4\\n>><\\n^v^v\\n\", \"3 8\\n>><\\nv^^^^^^^\\n\", \"7 2\\n<><<<<>\\n^^\\n\", \"4 5\\n><<<\\n^^^^v\\n\", \"2 20\\n><\\n^v^^v^^v^^^v^vv^vv^^\\n\", \"2 20\\n<>\\nv^... | MEDIUM | {
"id": "taco-train-8082",
"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 a singly linked list of size N containing only ... | code | {
"ground_truth": "{\"inputs\": [\"2\\r\\n\\r\\n6\\r\\n\\r\\na e g h i m\\r\\n\\r\\n3\\r\\n\\r\\nq r t\"], \"outputs\": [\"a e i g h m\\r\\n\\r\\nq r t\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-13755",
"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": "PolandBall has such a convex polygon with n veritces... | code | {
"ground_truth": "{\"inputs\": [\"10 3\\n\", \"5 2\\n\", \"5 3\\n\", \"17 5\\n\", \"8 5\\n\", \"7 3\\n\", \"7 2\\n\", \"7 5\\n\", \"10 7\\n\", \"1337 550\\n\", \"7 4\\n\", \"20 11\\n\", \"17 4\\n\", \"13 2\\n\", \"1337 137\\n\", \"24 11\\n\", \"2344 137\\n\", \"2633 550\\n\", \"17 6\\n\", \"36 11\\n\", \"2344 125\\n... | rating_>1900 | {
"id": "755_D. PolandBall and Polygon",
"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": "Zonal Computing Olympiad 2015, 29 Nov 2014\n\nAn int... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"3 5\", \"3 3\"], [\"3\", \"6 9\", \"3 5\", \"4 8\"]], \"outputs\": [[\"1\"], [\"2\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-20194",
"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": "Saket loves to play with strings. One day , while he... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"5\", \"AUXFC\", \"6\", \"XBCDEF\"]], \"outputs\": [[\"Yes\", \"No\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-9513",
"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": "After a long and successful day of preparing food fo... | code | {
"ground_truth": "{\"inputs\": [[\"3\", \"6 3\", \"2 4 1\", \"3 2\", \"3 2\", \"8 2\", \"3 8\"], \"3\\n4 3\\n2 4 1\\n3 2\\n3 2\\n8 2\\n3 8\", \"3\\n4 3\\n2 4 1\\n3 2\\n3 2\\n8 2\\n1 8\", \"3\\n6 3\\n2 4 1\\n3 2\\n3 1\\n8 2\\n3 8\", \"3\\n4 3\\n2 4 1\\n3 2\\n3 2\\n12 2\\n1 8\", \"3\\n6 3\\n2 4 1\\n3 2\\n3 1\\n8 2\\n5... | EASY | {
"id": "taco-train-4190",
"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 grid on XY plane with dimensions r x c, the t... | code | {
"ground_truth": "{\"inputs\": [\"r = 1, c = 2\", \"r = 2, c = 2\"], \"outputs\": [\"JON\", \"ARYA\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-23991",
"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 Om Nom found a thread with *n* beads of diff... | code | {
"ground_truth": "{\"inputs\": [\"7 2\\nbcabcab\", \"21 2\\nababaababaababaababaa\", \"321 2\\nabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaaba... | rating_>1900 | {
"id": "526D",
"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": "Margriet A. is in pizza heaven! She has bought a one... | code | {
"ground_truth": "{\"inputs\": [\"5 5\\n1 4 6 2 100\\n0 1\\n1 2\\n0 3\\n2 4\\n3 4\\n\", \"3 2\\n1 0 1\\n0 1\\n1 2\\n\", \"3 2\\n3 2 1\\n0 1\\n1 2\\n\"], \"outputs\": [\"100\\n\", \"1.5\\n\", \"4.25\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-14751",
"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 a boolean matrix of size RxC where each cell co... | code | {
"ground_truth": "{\"fn_name\": \"booleanMatrix\", \"inputs\": [\"R = 2, C = 2\\nmatrix[][] = {{1, 0},\\n {0, 0}}\", \"R = 4, C = 3\\nmatrix[][] = {{ 1, 0, 0},\\n { 1, 0, 0},\\n { 1, 0, 0},\\n { 0, 0, 0}}\"], \"outputs\": [\"1 1\\n1 0\", \"1 1 1\\n1 1 1\\n1 1 1\\n1... | MEDIUM | {
"id": "taco-train-6669",
"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 process of mammoth's genome decoding in Berland ... | code | {
"ground_truth": "{\"inputs\": [\"4\\nAA??\\n\", \"4\\nAGCT\\n\", \"8\\nAG?C??CT\\n\", \"6\\n????G?\\n\", \"252\\n???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????C???????????????... | rating_<=1200 | {
"id": "747_B. Mammoth's Genome Decoding",
"rating": 900,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
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": "Having unraveled the Berland Dictionary, the scienti... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\nWBW\\nBWB\\nWBW\", \"2 3\\nBBB\\nBWB\", \"9 29\\nBWBBBBBBBBBWBWWBBBWBWBBBWWBWW\\nWBWBBWBBWBWWBWBBBWBWWWBWBBBBB\\nBWBBBBWWBBBWBWBBWWBBWBBBBBBBB\\nBBBWWBBWWBBBWBWBBBWWWWWWBBBBW\\nBBWWWWBBBBBBBBBWBBBBBBBBBBWBW\\nBBBWWBBBBWBBBWWBBBWBBBBWBBWBW\\nBBBBBWBWBBBWWBBWBBBBBBBBBBBBW\\nWWBB... | rating_>1900 | {
"id": "37E",
"rating": 2600,
"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": "Exams are approaching soon and everyone tries to get... | code | {
"ground_truth": "{\"inputs\": [\"1\\n5 3\\n100 50 3000 4000 40\\n\\nSAMPLE\"], \"outputs\": [\"7910\"]}",
"style": "rule"
} | none | {
"id": "avoid-boredom",
"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": "Takahashi is participating in a programming contest ... | code | {
"ground_truth": "{\"inputs\": [\"6\\nAC\\nTLE\\nAC\\nAC\\nWA\\nTLE\", \"10\\nAC\\nAC\\nAC\\nAC\\nAC\\nAC\\nAC\\nAC\\nAC\\nAC\"], \"outputs\": [\"AC x 3\\nWA x 1\\nTLE x 2\\nRE x 0\", \"AC x 10\\nWA x 0\\nTLE x 0\\nRE x 0\"]}",
"style": "rule"
} | none | {
"id": "p02613 AtCoder Beginner Contest 173 - Judge Status Summary",
"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": "Your friend has been out shopping for puppies (what a... | code | {
"ground_truth": "{\"fn_name\": \"how_many_dalmatians\", \"inputs\": [[26], [8], [14], [80], [100], [50], [10], [101]], \"outputs\": [[\"More than a handful!\"], [\"Hardly any\"], [\"More than a handful!\"], [\"Woah that's a lot of dogs!\"], [\"Woah that's a lot of dogs!\"], [\"More than a handful!\"], [\"Hardly any... | EASY | {
"id": "taco-train-20190",
"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": "jfen\n\nThere is a one-person game to play on the H ... | code | {
"ground_truth": "{\"inputs\": [\"b1/1b\\n1 1 1 2\\nb5/bbbbbb\\n2 4 1 4\\nb2b2b/7\\n1 4 2 4\\n#\", \"b1/1b\\n1 1 1 2\\nb5/bbbbbb\\n2 4 1 4\\nb2b2b/7\\n1 4 2 6\\n#\", \"b1/1b\\n1 1 1 2\\nb5/bbbbbb\\n2 4 1 5\\nb2b2b/7\\n1 4 2 4\\n#\", \"b1/1b\\n1 1 1 2\\nb5/bbbbbb\\n2 4 1 4\\nb2b2b/7\\n1 4 1 4\\n#\", \"b1/1b\\n1 1 1 2... | none | {
"id": "p01846 jfen",
"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 two integers `a` and `b`, which can be positive... | code | {
"ground_truth": "{\"fn_name\": \"get_sum\", \"inputs\": [[0, 1], [1, 2], [5, -1], [505, 4], [321, 123], [0, -1], [-50, 0], [-1, -5], [-5, -5], [-505, 4], [-321, 123], [0, 0], [-5, -1], [5, 1], [-17, -17], [17, 17]], \"outputs\": [[1], [3], [14], [127759], [44178], [-1], [-1275], [-15], [-5], [-127755], [-44055], [0... | EASY | {
"id": "taco-train-7414",
"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 Puzzle is a game, problem, or toy that tests a per... | code | {
"ground_truth": "{\"inputs\": [\"4 42\\n3 2 5 7\\n\\nSAMPLE\"], \"outputs\": [\"2\"]}",
"style": "rule"
} | none | {
"id": "troubling-triple",
"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 Republic of Atcoder, there are N prefectures, and... | code | {
"ground_truth": "{\"inputs\": [\"2 3\\n1 32\\n2 63\\n1 12\", \"2 3\\n2 55\\n2 77\\n2 99\", \"2 3\\n1 55\\n2 77\\n2 99\", \"2 3\\n2 32\\n2 63\\n1 12\", \"2 1\\n2 55\\n2 77\\n2 99\", \"2 2\\n2 55\\n2 77\\n2 99\", \"2 3\\n2 55\\n2 77\\n2 195\", \"2 3\\n1 32\\n2 63\\n1 6\", \"2 3\\n2 39\\n2 16\\n1 12\", \"2 2\\n2 55\\n... | none | {
"id": "p03221 AtCoder Beginner Contest 113 - ID",
"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": "Fox Ciel has a robot on a 2D plane. Initially it is ... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\nRU\\n\", \"1 2\\nRU\\n\", \"-1 1000000000\\nLRRLU\\n\", \"0 0\\nD\\n\", \"0 0\\nUURRDL\\n\", \"987654321 987654321\\nUURRDL\\n\", \"4 2\\nUURRDL\\n\", \"4 3\\nUURRDL\\n\", \"4 4\\nUURRDL\\n\", \"4 6\\nUURRDL\\n\", \"4 7\\nUURRDL\\n\", \"1000000000 1000000000\\nUURRDL\\n\", \"-... | MEDIUM_HARD | {
"id": "taco-train-5523",
"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": "Given two numbers L and R(L<R). Count all the prime n... | code | {
"ground_truth": "{\"inputs\": [\"L=1,R=10\", \"L=5,R=10\"], \"outputs\": [\"4\", \"2\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-23984",
"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 a broken clock. You know, that it is s... | code | {
"ground_truth": "{\"inputs\": [\"12\\n17:30\\n\", \"24\\n99:99\\n\", \"24\\n17:30\\n\", \"12\\n90:32\\n\", \"12\\n13:20\\n\", \"24\\n10:10\\n\", \"12\\n21:00\\n\", \"12\\n20:00\\n\", \"24\\n34:00\\n\", \"24\\n08:32\\n\", \"24\\n48:91\\n\", \"12\\n10:33\\n\", \"12\\n02:86\\n\", \"12\\n00:01\\n\", \"12\\n40:11\\n\", ... | rating_1201-1400 | {
"id": "722_A. Broken Clock",
"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 number S in the form of string, the task is t... | code | {
"ground_truth": "{\"inputs\": [\"S = \\\"132\\\"\", \"S = \\\"123\\\"\"], \"outputs\": [\"1\", \"0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-22757",
"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": "Chouti was tired of the tedious homework, so he open... | code | {
"ground_truth": "{\"inputs\": [\"2 3 2\\n2 1\\n1 2 3\\n1 2 2\\n2 2 1\\n\", \"4 5 3\\n1 2 3\\n1 2 5\\n4 2 1\\n2 3 2\\n1 4 4\\n1 3 3\\n\", \"5 7 4\\n1 2 3 4\\n1 2 3\\n5 1 4\\n3 1 1\\n4 2 5\\n2 5 6\\n2 3 3\\n3 4 6\\n\", \"2 1 2\\n1 2\\n1 2 1000000000\\n\", \"3 2 2\\n2 3\\n1 2 2\\n2 3 1\\n\", \"3 2 2\\n2 3\\n1 2 5\\n2 ... | MEDIUM_HARD | {
"id": "taco-train-9312",
"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": "King Mercer is the king of ACM kingdom. There are on... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n1 2 1 2\\n2 3 2 1\\n3 1 3 2\\n5 5\\n1 2 2 2\\n2 3 1 1\\n1 4 1 1\\n4 5 1 1\\n5 3 1 1\\n5 10\\n1 2 32 10\\n1 3 43 43\\n1 4 12 52\\n1 5 84 23\\n2 3 58 42\\n2 4 86 99\\n2 5 57 83\\n3 4 11 32\\n3 5 75 21\\n4 5 23 43\\n5 10\\n1 2 1 53\\n1 3 1 65\\n1 4 1 24\\n1 5 1 76\\n2 3 1 19\\n2 ... | none | {
"id": "p01366 Road Construction",
"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": "In order to prove it's success and gain funding, the ... | code | {
"ground_truth": "{\"fn_name\": \"bears\", \"inputs\": [[7, \"8j8mBliB8gimjB8B8jlB\"], [3, \"88Bifk8hB8BB8BBBB888chl8BhBfd\"], [8, \"8\"], [1, \"j8BmB88B88gkBBlf8hg8888lbe88\"], [0, \"8j888aam\"], [2, \"8B7B8\"], [4, \"B8B8B8B8B8B8B8\"], [5, \"BBBBB88888\"], [3, \"8BB8B8\"], [6, \"B8B8BB88\"], [2, \"B88888B\"], [1, ... | EASY | {
"id": "taco-test-834",
"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": "Polycarp has an array a consisting of n integers.\n\... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1000000 1000000\\n\", \"6\\n5 1 2 4 6 3\\n\", \"5\\n1 5 7 8 2\\n\", \"5\\n1 1 1 1 1\\n\", \"5\\n2 1 1 1 1\\n\", \"5\\n2 1 1 1 2\\n\", \"6\\n5 1 3 4 8 3\\n\", \"5\\n1 5 7 1 2\\n\", \"6\\n5 1 3 4 5 3\\n\", \"2\\n1000010 1001000\\n\", \"2\\n1000110 1001000\\n\", \"2\\n1000110 10000... | rating_<=1200 | {
"id": "1144_B. Parity Alternated Deletions",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given two strings S and W. Find the number of times W... | code | {
"ground_truth": "{\"inputs\": [\"S = \\\"abcdrtbwerrcokokokd\\\" \\r\\n W = \\\"bcd\\\"\", \"S = \\\"ascfret\\\" \\r\\nW = \\\"qwer\\\"\"], \"outputs\": [\"2\", \"0\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-18206",
"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": "You are given an array of integers a of size n. This... | code | {
"ground_truth": "{\"inputs\": [\"3\\n0 1 3\\n\", \"4\\n0 3 6 7\\n\", \"5\\n1 5 9 10 23\\n\", \"10\\n39 62 64 79 81 83 96 109 120 122\\n\"], \"outputs\": [\"\\n2\\n\", \"\\n6\\n\", \"\\n20\\n\", \"\\n678132\\n\"]}",
"style": "rule"
} | rating_>1900 | {
"id": "1431_J. Zero-XOR Array",
"rating": 3400,
"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 arr[] of size N and an integer K. Find... | code | {
"ground_truth": "{\"inputs\": [\"N = 9, K = 3\\r\\narr[] = 1 2 3 1 4 5 2 3 6\", \"N = 10, K = 4\\r\\narr[] = 8 5 10 7 9 4 15 12 90 13\"], \"outputs\": [\"3 3 4 5 5 5 6\", \"10 10 10 15 15 90 90\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-235",
"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": "Dima is a beginner programmer. During his working pr... | code | {
"ground_truth": "{\"inputs\": [\"4 3\\n2\\n3\\n4\\n\", \"13 4\\n10\\n5\\n4\\n8\\n\", \"12 12\\n9\\n11\\n5\\n3\\n7\\n2\\n8\\n6\\n4\\n10\\n12\\n1\\n\", \"3 3\\n3\\n2\\n1\\n\", \"2 2\\n1\\n2\\n\", \"1 1\\n1\\n\", \"12 12\\n9\\n10\\n5\\n3\\n7\\n2\\n8\\n6\\n4\\n10\\n12\\n1\\n\", \"2 2\\n2\\n2\\n\", \"4 3\\n2\\n2\\n4\\n\... | rating_1601-1900 | {
"id": "950_D. A Leapfrog in the Array",
"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": "There is an event in DUCS where boys get a chance to... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"10\", \"john berry berry thomas thomas john john berry thomas john\", \"4\", \"ramesh suresh suresh ramesh\"]], \"outputs\": [[\"john\", \"ramesh\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-14898",
"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": "PCK is playing a game tournament together. In this g... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 0 0 1\\n0 1 0 1\\n1 0 0 0\\n0 1 0 1\", \"5\\n0 1 0 1\\n0 1 0 1\\n1 0 1 0\\n1 0 0 1\", \"6\\n1 0 0 0 1\\n1 0 1 0 1\\n0 1 0 1 0\\n0 0 0 1 0\\n0 1 0 0 1\", \"5\\n0 0 0 1\\n0 1 0 1\\n1 0 0 0\\n0 1 0 1\", \"5\\n0 1 0 1\\n0 1 0 1\\n1 0 1 0\\n1 0 0 2\", \"6\\n1 0 0 0 1\\n1 1 1 0 1\\n... | none | {
"id": "p00329 Amidakuji",
"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": "Example\n\nInput\n\nR?????,2?)\n\n\nOutput\n\n29",
... | code | {
"ground_truth": "{\"inputs\": [\"R?????,2?)\", \")?2,?????R\", \")?2,???@?R\", \"S?????,2?)\", \")?2??,???R\", \")@2,?????R\", \"S???,??2?)\", \")?2??-???R\", \")@3,?????R\", \")?2??,???S\", \")?2??-???Q\", \")@3,???@?R\", \")?2??,??>S\", \")?2??-???P\", \")@3,??@@?R\", \")?2??,?>>S\", \"P???-??2?)\", \"(@3,??@@?R\... | none | {
"id": "p01783 LR",
"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": "Statisticians like to create a lot of statistics. On... | code | {
"ground_truth": "{\"inputs\": [\"4 2\\n1 8\\n6 5\\n2 5\\n2 9\\n7 13\\n\", \"2 3\\n2 4\\n6 1 4\\n2 7 1\\n\"], \"outputs\": [\"5.250000000\\n\", \"3.667000000\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-12557",
"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": "A linear congruential generator produces a series R(... | code | {
"ground_truth": "{\"inputs\": [\"5\\n5 4 3 2 1\\n5\\n7 7 7 7 7\\n10\\n186 8 42 24 154 40 10 56 122 72\\n0\", \"5\\n5 4 3 2 1\\n5\\n7 7 7 7 7\\n10\\n186 8 42 24 154 40 10 56 122 141\\n0\", \"5\\n5 4 3 2 1\\n5\\n7 12 2 0 7\\n10\\n372 8 42 18 154 40 10 56 122 141\\n0\", \"5\\n5 4 3 4 1\\n5\\n7 11 7 7 14\\n0\\n186 8 42... | none | {
"id": "p01283 Strange String Manipulation",
"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": "Recently, Duff has been practicing weight lifting. A... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 1 2 3 3\\n\", \"4\\n0 1 2 3\\n\", \"1\\n120287\\n\", \"2\\n28288 0\\n\", \"2\\n95745 95745\\n\", \"13\\n92 194 580495 0 10855 41704 13 96429 33 213 0 92 140599\\n\", \"13\\n688743 688743 1975 688743 688743 688743 688743 688743 688743 0 0 688743 688743\\n\", \"35\\n0 0 0 0 0 0 ... | MEDIUM | {
"id": "taco-test-320",
"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": "The clique problem is one of the most well-known NP-... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2 3\\n3 1\\n6 1\\n0 2\", \"1\\n42 23\", \"2\\n1 5\\n2 6\", \"2\\n1 5\\n12 6\", \"1\\n0 1\", \"1\\n1000000000 1000000000\", \"2\\n4 4\\n12 5\", \"2\\n4 4\\n12 4\", \"2\\n4 4\\n12 3\", \"3\\n0 1\\n2 1\\n4 1\", \"3\\n0 1\\n2 2\\n4 1\", \"2\\n0 1\\n1000000000 1\", \"2\\n0 1000000000... | rating_1601-1900 | {
"id": "527D",
"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": "All the students in NIT are very lazy. They want to ... | code | {
"ground_truth": "{\"inputs\": [\"1\\n3 60 70 80 90 100 200\\n3 50 70 100 120 150 200\\n3 50 80 90 100 200 220\\n3 80 100 110 115 200 210\\n3 10 20 40 50 60 100\\n3 10 50 60 80 90 100\\n3 50 80 90 100 200 300\\n\\nSAMPLE\", \"1\\n3 60 70 80 90 100 200\\n3 50 70 100 120 150 200\\n3 50 80 90 100 200 279\\n3 80 100 110... | none | {
"id": "lazy-boy-off-to-class-i",
"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": "Caracal is fighting with a monster.\n\nThe health of... | code | {
"ground_truth": "{\"inputs\": [\"4\", \"1000000000000\", \"2\", \"8\", \"1010000000000\", \"3\", \"7\", \"1\", \"18\", \"1110100001000\", \"46\", \"77\", \"140\", \"426\", \"635\", \"1010000001000\", \"5\", \"1011000000000\", \"6\", \"14\", \"1010001000000\", \"12\", \"1010100001000\", \"10\", \"1011000000010\", \"... | none | {
"id": "p02786 AtCoder Beginner Contest 153 - Caracal vs Monster",
"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": "During the hypnosis session, Nicholas suddenly remem... | code | {
"ground_truth": "{\"inputs\": [\"7\\n3\\n237\\n5\\n44444\\n3\\n221\\n2\\n35\\n3\\n773\\n1\\n4\\n30\\n626221626221626221626221626221\\n\", \"1\\n2\\n77\\n\", \"1\\n2\\n77\\n\", \"1\\n2\\n83\\n\", \"1\\n2\\n27\\n\", \"1\\n2\\n31\\n\", \"1\\n2\\n22\\n\", \"1\\n2\\n42\\n\", \"7\\n3\\n237\\n5\\n44444\\n3\\n221\\n2\\n35\... | EASY | {
"id": "taco-train-8887",
"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": "Pikachu had an array with him. He wrote down all the... | code | {
"ground_truth": "{\"inputs\": [\"10 5\\n\", \"4 2\\n\", \"985629174 189232688\\n\", \"21537803 166017060\\n\", \"863230070 895037311\\n\", \"641009859 54748096\\n\", \"248004555 280013594\\n\", \"1048576 1\\n\", \"1 1\\n\", \"702209411 496813081\\n\", \"890 553\\n\", \"1000000000 1\\n\", \"691688417 162011045\\n\",... | rating_1601-1900 | {
"id": "960_C. Subsequence Counting",
"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": "We are given a N*M grid, print the number of rectangl... | code | {
"ground_truth": "{\"inputs\": [\"N = 2, M = 2\", \"N = 5, M = 4\"], \"outputs\": [\"9\", \"150\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-9827",
"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": "Facetook is a well known social network website, and... | code | {
"ground_truth": "{\"inputs\": [\"aba\\n1\\nlikes likes posted's post\\n\", \"ahmed\\n3\\nahmed posted on fatma's wall\\nfatma commented on ahmed's post\\nmona likes ahmed's post\\n\", \"post\\n9\\npost posted on wall's wall\\non commented on post's post\\npost likes likes's post\\ncommented posted on post's wall\\n... | rating_1401-1600 | {
"id": "75_B. Facetook Priority Wall",
"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": "Given a number, the task is to set all odd bits of a ... | code | {
"ground_truth": "{\"inputs\": [\"n = 20\", \"n = 10\"], \"outputs\": [\"21\", \"15\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-2809",
"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": "Petya has equal wooden bars of length *n*. He wants ... | code | {
"ground_truth": "{\"inputs\": [\"8\\n1\\n2\", \"5\\n3\\n4\", \"6\\n4\\n2\", \"20\\n5\\n6\", \"1\\n1\\n1\", \"3\\n1\\n2\", \"3\\n2\\n1\", \"1000\\n1\\n1\", \"1000\\n1000\\n1000\", \"1000\\n1\\n999\", \"1000\\n1\\n498\", \"1000\\n1\\n998\", \"31\\n5\\n6\", \"400\\n100\\n2\", \"399\\n100\\n2\", \"800\\n401\\n400\", \"... | rating_1401-1600 | {
"id": "910B",
"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 ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Dee Siduous is a botanist who specializes in trees. ... | code | {
"ground_truth": "{\"inputs\": [\"6 6\\n.TT...\\nTTTT..\\nTTTTT.\\nTTTTT.\\nTTTTTT\\n..T...\\n\", \"3 4\\nTT..\\nTT..\\n....\\n\"], \"outputs\": [\"...1.1......\\n.1.2.2.1....\\n.1.2.3.2.1..\\n.1.2.3.2.1..\\n.1.1.2.1.1.1\\n.....1......\\n\", \".1.1....\\n.1.1....\\n........\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-207",
"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": "For $n$ dynamic arrays $A_i$ ($i = 0, 1, ..., n-1$),... | code | {
"ground_truth": "{\"inputs\": [\"3 13\\n0 0 1\\n0 0 2\\n0 0 3\\n0 1 -1\\n0 2 4\\n0 2 5\\n1 0\\n1 1\\n1 2\\n2 1\\n1 0\\n1 1\\n1 2\", \"3 13\\n0 0 1\\n0 0 3\\n0 0 3\\n0 1 -1\\n0 2 4\\n0 2 5\\n1 0\\n1 1\\n1 2\\n2 1\\n1 0\\n1 1\\n1 2\", \"3 13\\n0 0 1\\n0 0 2\\n0 0 3\\n0 1 0\\n0 2 4\\n0 2 5\\n1 0\\n1 1\\n1 2\\n2 1\\n1 ... | none | {
"id": "p02434 Vector 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": "The elections to Berland parliament are happening to... | code | {
"ground_truth": "{\"inputs\": [\"3 1 5 4\\n1 2 1 3\\n\", \"3 1 5 3\\n1 3 1\\n\", \"3 2 5 3\\n1 3 1\\n\", \"1 1 1 1\\n1\\n\", \"1 1 1 1\\n1\\n\", \"1 1 2 2\\n1 1\\n\", \"1 1 2 1\\n1\\n\", \"1 1 1 1\\n1\\n\", \"1 1 3 3\\n1 1 1\\n\", \"1 1 1 1\\n1\\n\", \"1 1 3 3\\n1 1 1\\n\", \"1 1 5 4\\n1 1 1 1\\n\", \"1 1 4 2\\n1 1... | HARD | {
"id": "taco-train-14066",
"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 an array A consisting of N integers A_{1},A_{2... | code | {
"ground_truth": "{\"inputs\": [\"4\\n3\\n6 4 2\\n6\\n9 34 4 24 1 6\\n6\\n9 34 24 4 1 6\\n2\\n1 0\"], \"outputs\": [\"Yes\\nYes\\nNo\\nNo\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-12320",
"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": "Sensation, sensation in the two-dimensional kingdom!... | code | {
"ground_truth": "{\"inputs\": [\"3\\nUR\\nUL\\nULDR\", \"2\\nDR\\nDL\", \"4\\nUL\\nUR\\nDR\\nDL\", \"10\\nUL\\nUL\\nUL\\nUL\\nUL\\nUL\\nUL\\nUL\\nUL\\nUL\", \"6\\nUL\\nDL\\nDL\\nUL\\nUL\\nDL\", \"1\\nUL\", \"1\\nUR\", \"1\\nDR\", \"1\\nDL\", \"1\\nULDR\", \"2\\nUL\\nULDR\", \"4\\nULDR\\nUR\\nULDR\\nUR\", \"10\\nUR\... | rating_1601-1900 | {
"id": "183A",
"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 playing a variation of game 2048. Initially ... | code | {
"ground_truth": "{\"inputs\": [\"6\\n4\\n1024 512 64 512\\n1\\n2048\\n3\\n64 512 2\\n2\\n4096 4\\n7\\n2048 2 2048 2048 2048 2048 2048\\n2\\n2048 4096\\n\", \"6\\n4\\n1024 512 64 512\\n1\\n2048\\n3\\n64 512 2\\n2\\n4096 4\\n1\\n2048 2 2048 2048 2048 2048 2048\\n2\\n2048 4096\\n\", \"6\\n4\\n1024 512 64 512\\n1\\n409... | rating_<=1200 | {
"id": "1221_A. 2048 Game",
"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": "Amugae is in a very large round corridor. The corrid... | code | {
"ground_truth": "{\"inputs\": [\"4 6 3\\n1 1 2 3\\n2 6 1 2\\n2 6 2 4\\n\", \"2 3 5\\n2 3 1 2\\n2 3 2 3\\n1 1 1 1\\n1 2 1 2\\n2 1 2 1\\n\", \"1 1 10\\n1 1 1 1\\n1 1 1 1\\n1 1 2 1\\n1 1 1 1\\n2 1 2 1\\n2 1 1 1\\n1 1 2 1\\n1 1 2 1\\n2 1 1 1\\n2 1 1 1\\n\", \"999999937 999999929 1\\n2 501178581 1 294328591\\n\", \"9999... | MEDIUM | {
"id": "taco-train-1640",
"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 median of a list of numbers is essentially its m... | code | {
"ground_truth": "{\"inputs\": [\"7\\n0 1 2 4 6 5 3\\n\", \"5\\n-5 0 5 -10 10\\n\", \"5\\n5 0 -5 -10 10\\n\", \"7\\n0 -1 2 -4 6 -5 3\\n\", \"9\\n-9 8 -7 6 -5 4 -3 2 1\\n\", \"11\\n1 -2 3 -4 5 -6 7 -8 9 -10 11\\n\", \"9\\n1 -2 3 -4 5 -6 7 -8 9\\n\", \"3\\n0 1 2\\n\", \"5\\n-1 0 1 2 3\\n\", \"9\\n0 1 2 3 4 5 6 7 8\\n\... | EASY | {
"id": "taco-test-170",
"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 nums of n elements and q queries . Eac... | code | {
"ground_truth": "{\"inputs\": [\"nums = {1,1,2,1,3}, Queries = {{1,5},\\r\\n{2,4}}, k = 1\", \"nums = {1,2,3,1}, Queries = {{1,4},\\r\\n{2,4},{4,4}, k = 2\"], \"outputs\": [\"{3,2}\", \"{1,0,0}\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-25135",
"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": "You have two integers l and r. Find an integer x whi... | code | {
"ground_truth": "{\"inputs\": [\"98766 100000\\n\", \"121 130\\n\", \"10 10\\n\", \"25139 86116\\n\", \"23452 23456\\n\", \"8563 90197\\n\", \"25610 80988\\n\", \"111 121\\n\", \"999 1002\\n\", \"5 5\\n\", \"76330 80769\\n\", \"112 112\\n\", \"47142 47149\\n\", \"99 101\\n\", \"1 1\\n\", \"9878 9999\\n\", \"22 22\\... | rating_<=1200 | {
"id": "1228_A. Distinct Digits",
"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": "For given two segments s1 and s2, print the distance... | code | {
"ground_truth": "{\"inputs\": [\"3\\n0 0 1 0 0 1 1 1\\n0 0 1 0 2 1 1 2\\n-1 0 1 0 0 1 0 -1\", \"3\\n0 0 1 0 0 1 1 1\\n0 0 1 0 2 1 1 2\\n-1 1 1 0 0 1 0 -1\", \"3\\n0 1 1 0 0 1 1 1\\n-1 0 1 0 2 1 1 2\\n-1 1 0 0 0 1 0 -1\", \"3\\n0 1 1 0 0 1 1 1\\n-1 0 1 1 2 1 1 2\\n-1 1 0 0 0 1 0 -1\", \"3\\n0 1 1 0 0 1 1 1\\n-1 0 1 ... | none | {
"id": "p02296 Distance",
"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 number N, write a program to check whether gi... | code | {
"ground_truth": "{\"inputs\": [\"N = 12\", \"N = 14\"], \"outputs\": [\"YES\", \"NO\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-9707",
"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": "While trading on his favorite exchange trader Willia... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4\\n1 1 1 1\\n4\\n4 3 1 2\\n\", \"2\\n4\\n1 1 1 1\\n4\\n4 3 1 2\\n\", \"2\\n4\\n1 0 1 1\\n4\\n4 3 1 2\\n\", \"2\\n4\\n1 1 1 1\\n4\\n4 3 1 4\\n\", \"2\\n4\\n1 1 1 1\\n4\\n4 5 1 2\\n\", \"2\\n4\\n1 1 0 1\\n4\\n4 3 1 4\\n\", \"2\\n4\\n1 1 1 1\\n4\\n4 5 1 3\\n\", \"2\\n4\\n1 2 1 1\\... | EASY | {
"id": "taco-train-19389",
"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 are integers N and K, and a prime number P. Fi... | code | {
"ground_truth": "{\"inputs\": [\"7 3 998244353\", \"50 37 998244353\", \"4 3 998244353\", \"7 1 998244353\", \"6 3 998244353\", \"5 2 998244353\", \"12 6 998244353\", \"3 2 998244353\", \"7 6 998244353\", \"1 0 998244353\", \"13 6 998244353\", \"3 1 998244353\", \"13 9 998244353\", \"7 4 998244353\", \"50 35 998244... | none | {
"id": "p02638 AtCoder Grand Contest 046 - Forbidden Tournament",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.