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": "Given a string s. Can you make it a palindrome by de... | code | {
"ground_truth": "{\"inputs\": [[\"4\", \"aaa\", \"abc\", \"abdbca\", \"abba\"], [\"4\", \"aaa\", \"abc\", \"abdbca\", \"abba\"], [\"5\", \"palindrome\", \"deed\", \"racecar\", \"hello\", \"python\"], [\"3\", \"madam\", \"programmer\", \"nurses\"], [\"6\", \"canoe\", \"technology\", \"recant\", \"repaper\", \"gadget... | MEDIUM_HARD | {
"id": "taco-test-413",
"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": "A digit string is good if the digits (0-indexed) at e... | code | {
"ground_truth": "{\"inputs\": [\"N = 1\", \"N = 3\"], \"outputs\": [\"5\", \"100\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-9674",
"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": "Once upon a time, there was a king who loved beautif... | code | {
"ground_truth": "{\"inputs\": [\"10000 01000 00100 11000 01100 11111 01110 11100 10110 11110\\n10101 01000 00000 11001 01100 11101 01110 11100 10110 11010\\nEND\", \"10000 01000 00100 11000 01100 11111 01110 11100 10110 11110\\n10101 01000 00000 11001 01100 11001 01110 11100 10110 11010\\nEND\", \"10000 01000 00100... | none | {
"id": "p00781 Lattice Practices",
"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 foggy Stockholm morning, Karlsson decided to sna... | code | {
"ground_truth": "{\"inputs\": [\"5\\n0 1\\n1 0\\n0 1\\n1 1\\n0 1\", \"2\\n0 0\\n0 0\", \"3\\n0 1\\n1 1\\n1 1\", \"8\\n0 1\\n1 0\\n0 1\\n1 1\\n0 1\\n1 0\\n0 1\\n1 0\", \"8\\n1 0\\n1 0\\n1 0\\n0 1\\n0 1\\n1 1\\n1 1\\n0 1\", \"15\\n0 0\\n0 0\\n0 0\\n0 0\\n0 0\\n0 0\\n0 0\\n0 0\\n0 0\\n0 0\\n0 0\\n0 0\\n0 0\\n0 0\\n0 0... | rating_<=1200 | {
"id": "248A",
"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": "Read problem statements in [Hindi], [Bengali], [Mand... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3\\n2 2 3\\n2\\n1 2\\n3\\n1 2 2\"], \"outputs\": [\"0 6 1\\n2 1\\n3 4 0\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-21102",
"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": "Find the smallest possible sum of the digits in the ... | code | {
"ground_truth": "{\"inputs\": [\"41\", \"6\", \"79992\", \"40\", \"37450\", \"70620\", \"9\", \"14\", \"11849\", \"48730\", \"198\", \"478\", \"10989\", \"10\", \"78\", \"8\", \"155\", \"45794\", \"100\", \"101\", \"25\", \"31\", \"47\", \"20\", \"17\", \"21\", \"4\", \"24\", \"15\", \"65\", \"34375\", \"72\", \"3\... | none | {
"id": "p03558 AtCoder Beginner Contest 077 - Small Multiple",
"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": "Valera had two bags of potatoes, the first of these ... | code | {
"ground_truth": "{\"inputs\": [\"10 6 40\\n\", \"10 1 10\\n\", \"78 7 15\\n\", \"10 4 9174\\n\", \"1 999999999 1000000000\\n\", \"17 28 532\\n\", \"1 100000007 1000000000\\n\", \"30351 86 424\\n\", \"100000000 1000000000 1000000000\\n\", \"1000000000 1 1\\n\", \"15946 76 360\\n\", \"46592 52 232\\n\", \"48 6 50\\n\... | rating_<=1200 | {
"id": "239_A. Two Bags of Potatoes",
"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": "In a far away land, there are two cities near a rive... | code | {
"ground_truth": "{\"inputs\": [\"3 1\\n1 1\\n\", \"12 2\\n4 1\\n8 1\\n\", \"1 1\\n1 2\\n\", \"4 0\\n\", \"100 44\\n41 1\\n13 1\\n52 1\\n83 1\\n64 2\\n86 2\\n12 1\\n77 1\\n100 2\\n97 2\\n58 1\\n33 2\\n8 1\\n72 2\\n2 1\\n88 1\\n50 2\\n4 1\\n18 1\\n36 2\\n46 2\\n57 1\\n29 2\\n22 1\\n75 2\\n44 2\\n80 2\\n84 1\\n62 1\\n... | HARD | {
"id": "taco-test-732",
"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": "For some reason in many American cartoons anvils fal... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4 2\\n1 2\", \"90\\n1 1\\n2 1\\n3 1\\n4 1\\n5 1\\n6 1\\n7 1\\n8 1\\n9 1\\n1 2\\n2 2\\n3 2\\n4 2\\n5 2\\n6 2\\n7 2\\n8 2\\n9 2\\n1 3\\n2 3\\n3 3\\n4 3\\n5 3\\n6 3\\n7 3\\n8 3\\n9 3\\n1 4\\n2 4\\n3 4\\n4 4\\n5 4\\n6 4\\n7 4\\n8 4\\n9 4\\n1 5\\n2 5\\n3 5\\n4 5\\n5 5\\n6 5\\n7 5\\n8... | rating_1601-1900 | {
"id": "77B",
"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": "New Year is coming, and Jaehyun decided to read many... | code | {
"ground_truth": "{\"inputs\": [\"3 5\\n1 2 3\\n1 3 2 3 1\\n\", \"50 50\\n75 71 23 37 28 23 69 75 5 62 3 11 96 100 13 50 57 51 8 90 4 6 84 27 11 89 95 81 10 62 48 52 69 87 97 95 30 74 21 42 36 64 31 80 81 50 56 53 33 99\\n26 30 5 33 35 29 6 15 36 17 32 16 14 1 29 34 22 40 12 42 38 48 39 50 13 47 18 43 10 8 49 45 11 ... | rating_1401-1600 | {
"id": "500_C. New Year Book Reading",
"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": "There was an epidemic in Monstropolis and all monste... | code | {
"ground_truth": "{\"inputs\": [\"6\\n1 2 2 2 1 2\\n2\\n5 5\\n\", \"5\\n1 2 3 4 5\\n1\\n15\\n\", \"5\\n1 1 1 3 3\\n3\\n2 1 6\\n\", \"5\\n1 1 1 1 2\\n3\\n1 1 4\\n\", \"5\\n1 1 1 1 1\\n4\\n1 1 2 1\\n\", \"6\\n2 1 2 2 1 2\\n2\\n5 5\\n\", \"8\\n2 5 3 1 4 2 3 4\\n3\\n10 6 8\\n\", \"1\\n959139\\n1\\n470888\\n\", \"3\\n2 2... | MEDIUM_HARD | {
"id": "taco-train-152",
"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 night wasn't easy on Vasya. His favorite team l... | code | {
"ground_truth": "{\"inputs\": [\"2028\\n\", \"97\\n\", \"10\\n\", \"868572419889505545\\n\", \"999999\\n\", \"74774\\n\", \"900008\\n\", \"101010101\\n\", \"234906817379759421\\n\", \"890009800\\n\", \"1\\n\", \"1000000\\n\", \"999999999\\n\", \"987654321\\n\", \"462534182594129378\\n\", \"4\\n\", \"987654321123456... | rating_1601-1900 | {
"id": "991_E. Bus Number",
"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": "You are given an HTML code snippet of $N$ lines.\n Y... | code | {
"ground_truth": "{\"inputs\": [\"9\\n<head>\\n<title>HTML</title>\\n</head>\\n<object type=\\\"application/x-flash\\\" \\n data=\\\"your-file.swf\\\" \\n width=\\\"0\\\" height=\\\"0\\\">\\n <!-- <param name=\\\"movie\\\" value=\\\"your-file.swf\\\" /> -->\\n <param name=\\\"quality\\\" value=\\\"high\\\"/>\\n<... | EASY | {
"id": "taco-train-17728",
"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": "To test a new cloud computing service, you decide to... | code | {
"ground_truth": "{\"inputs\": [\"20\\n5 2\\n3 3\\n5 4\\n2 2\\n4 1\\n5 5\\n2 1\\n4 4\\n3 1\\n3 0\\n1 1\\n2 0\\n3 2\\n5 3\\n4 2\\n4 0\\n5 1\\n4 3\\n1 0\\n5 0\", \"20\\n5 2\\n3 3\\n5 4\\n2 2\\n4 1\\n5 5\\n2 1\\n4 4\\n3 1\\n3 0\\n1 1\\n2 0\\n3 2\\n5 3\\n3 2\\n4 0\\n5 1\\n4 3\\n1 0\\n5 0\", \"20\\n5 2\\n3 3\\n5 4\\n2 2\... | none | {
"id": "ncraas",
"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": "Opposite to Grisha's nice behavior, Oleg, though he ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 3 5\\n7\", \"5\\n3 7 11 13 31\\n17\", \"2\\n41 61\\n66\", \"1\\n2\\n55\", \"7\\n2 3 5 7 11 13 17\\n2666471\", \"16\\n2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53\\n755104793\", \"8\\n3 7 13 17 19 29 31 37\\n68830\", \"8\\n3 7 11 17 19 23 37 43\\n528714\", \"8\\n3 7 13 17 29 41 ... | rating_>1900 | {
"id": "912E",
"rating": 2400,
"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": "You are given n integers a1, a2, ..., an. Find the n... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 1 1\\n\", \"4\\n7 3 2 1\\n\", \"2\\n1 1\\n\", \"10\\n2827343 1373647 96204862 723505 796619138 71550121 799843967 5561265 402690754 446173607\\n\", \"1\\n2\\n\", \"10\\n6 6 7 3 9 14 15 7 2 2\\n\", \"100\\n3 6 12 1 16 4 9 5 4 4 5 8 12 4 6 14 5 1 2 2 2 1 7 1 9 10 6 13 7 8 3 11 8... | rating_1401-1600 | {
"id": "702_B. Powers of Two",
"rating": 1500,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Polycarp was gifted an array $a$ of length $n$. Poly... | code | {
"ground_truth": "{\"inputs\": [\"3\\n6\\n1 3 2 1 4 2\\n4\\n100 100 4 100\\n8\\n1 2 3 3 3 2 6 6\\n\", \"1\\n36\\n1 2 2 3 3 11 11 4 4 5 5 5 6 6 6 6 7 7 7 7 8 8 8 8 9 9 9 9 10 10 10 10 12 12 12 12\\n\", \"1\\n36\\n1 2 2 3 3 11 11 4 4 5 5 5 6 6 6 6 7 7 7 7 8 8 8 8 9 9 9 9 10 10 10 10 12 12 12 12\\n\", \"1\\n36\\n1 2 2 ... | MEDIUM | {
"id": "taco-train-22829",
"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": "Little time is left before Berland annual football c... | code | {
"ground_truth": "{\"inputs\": [\"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"13\", \"15\", \"16\", \"18\", \"20\", \"100\", \"110\", \"120\", \"140\", \"157\", \"171\", \"199\", \"200\", \"213\", \"231\", \"240\", \"250\", \"253\", \"260\", \"270\", \"271\", \"277\", \"280\", \"290\", \"... | rating_1401-1600 | {
"id": "234G",
"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": "Once upon a time, a CodeWarrior, after reading a [dis... | code | {
"ground_truth": "{\"fn_name\": \"sursurungal\", \"inputs\": [[\"1 tomato\"], [\"0 tomato\"], [\"1 ananas\"], [\"2 bananas\"], [\"3 bananas\"], [\"10 bananas\"], [\"111 bananas\"], [\"6 birds with 2 wings each = 12 legs\"], [\"\\n3 pigs\\nmet 1 wolf\\n2 days ago\"]], \"outputs\": [[\"1 tomato\"], [\"0 tomato\"], [\"... | EASY | {
"id": "taco-train-24267",
"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": "Flash has invited his nemesis The Turtle (He actually... | code | {
"ground_truth": "{\"fn_name\": \"snap\", \"inputs\": [[[\"3\", \"K\", \"5\", \"A\", \"5\", \"6\", \"7\", \"J\", \"7\", \"9\", \"10\", \"Q\", \"Q\", \"6\", \"8\", \"7\", \"4\", \"J\", \"8\", \"9\", \"K\", \"J\", \"10\", \"4\", \"K\", \"4\"], [\"2\", \"8\", \"9\", \"Q\", \"A\", \"K\", \"6\", \"3\", \"J\", \"2\", \"4\... | EASY | {
"id": "taco-train-12338",
"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": "Consider a sequence $A$ of integers, containing $N$ ... | code | {
"ground_truth": "{\"inputs\": [\"5 4\\n1 2 3 4 5\\n\", \"6 3\\n1 2 4 5 6 3\\n\", \"7 4\\n5 7 2 4 3 1 6\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"4\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-2191",
"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": "Limak is an old brown bear. He often plays poker wit... | code | {
"ground_truth": "{\"inputs\": [\"4\\n75 150 75 50\\n\", \"3\\n100 150 250\\n\", \"7\\n34 34 68 34 34 68 34\\n\", \"10\\n72 96 12 18 81 20 6 2 54 1\\n\", \"20\\n958692492 954966768 77387000 724664764 101294996 614007760 202904092 555293973 707655552 108023967 73123445 612562357 552908390 914853758 915004122 46612920... | EASY | {
"id": "taco-test-167",
"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 and Ru... | code | {
"ground_truth": "{\"inputs\": [\"1\\n3 4\\n1 2 3\", \"1\\n3 4\\n0 2 3\", \"1\\n0 4\\n0 2 2\", \"1\\n0 8\\n0 2 0\", \"1\\n0 13\\n0 2 0\", \"1\\n0 13\\n0 4 -2\", \"1\\n3 1\\n1 2 3\", \"1\\n0 4\\n0 0 0\", \"1\\n0 8\\n0 3 0\", \"1\\n0 14\\n0 3 0\", \"1\\n0 2\\n0 2 -2\", \"1\\n0 5\\n1 4 -2\", \"1\\n0 26\\n0 7 -2\", \"1\... | MEDIUM_HARD | {
"id": "taco-train-9672",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The Physical education teacher at SESC is a sort of ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n-3 -4 -2 -3 3\\n\", \"5\\n2 -3 -1 -4 3\\n\", \"6\\n94 65 -33 -43 60 -24\\n\", \"3\\n-10000 10000 -10000\\n\", \"2\\n0 0\\n\", \"7\\n-1 -2 -4 -10 6 6 5\\n\", \"10\\n-10 3 -16 -15 14 -16 13 -6 -8 18\\n\", \"50\\n-67 -84 -89 80 40 42 -38 30 74 -12 -66 27 1 11 -45 -44 2 -70 -59 -70 ... | MEDIUM | {
"id": "taco-train-20649",
"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": "A Pythagorean triple consists of three positive inte... | code | {
"ground_truth": "{\"inputs\": [\"5\\n\", \"5\\n\", \"7\\n\", \"9\\n\", \"11\\n\", \"13\\n\", \"15\\n\", \"17\\n\", \"19\\n\", \"21\\n\", \"23\\n\", \"25\\n\", \"27\\n\", \"29\\n\", \"31\\n\", \"33\\n\", \"35\\n\", \"37\\n\", \"39\\n\", \"41\\n\", \"43\\n\", \"10001\\n\", \"20000003\\n\", \"77777777\\n\", \"513213\\... | EASY | {
"id": "taco-test-510",
"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 arr of size n and an integer X. Find i... | code | {
"ground_truth": "{\"inputs\": [\"n = 6, X = 13\\narr[] = [1 4 45 6 10 8]\", \"n = 5, X = 10\\narr[] = [1 2 4 3 6]\"], \"outputs\": [\"1\", \"1\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-6976",
"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": "Regional College is having N branches, where each br... | code | {
"ground_truth": "{\"inputs\": [\"6\\n5 4 4 2 2 8\", \"876\\n950 729 701 310 293 870 956 471 997 515 533 462 456 51 874 117 775 872 732 971 499 94 554 126 741 940 454 857 261 409 148 41 748 757 464 226 270 170 908 934 826 56 438 500 233 262 541 951 204 117 985 235 780 170 631 616 964 188 60 214 928 663 956 503 596 1... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-10479",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You play a strategic video game (yeah, we ran out of... | code | {
"ground_truth": "{\"inputs\": [\"4 3 7\\n7 4 17\\n3 0 8\\n11 2 0\\n13 3 5\\n3 1\\n2 1\\n4 3\\n\", \"4 3 7\\n7 4 17\\n3 0 8\\n11 2 0\\n13 3 5\\n3 1\\n2 1\\n4 1\\n\", \"4 3 7\\n7 4 17\\n3 0 8\\n11 2 0\\n14 3 5\\n3 1\\n2 1\\n4 3\\n\", \"10 10 2\\n2 1 1615\\n2 1 1326\\n0 0 3880\\n2 0 1596\\n1 2 4118\\n0 0 4795\\n0 1 81... | HARD | {
"id": "taco-train-18686",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a Binary Search Tree. Find sum of all elements ... | code | {
"ground_truth": "{\"inputs\": [\"20\\r\\n / \\\\\\r\\n 8 22\\r\\n / \\\\\\r\\n 4 12\\r\\n / \\\\\\r\\n 10 14 , K=3\", \"10\\r\\n / \\\\\\r\\n 5 11\\r\\n / \\\\ \\r\\n 4 7\\r\\n \\\\\\r\\n 8 , K=2\"], \"outputs\": [\"22\", \"9\"]}",
"s... | EASY | {
"id": "taco-train-19693",
"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": "Let's define the permutation of length *n* as an arr... | code | {
"ground_truth": "{\"inputs\": [\"4 3\", \"10 1\", \"1 1\", \"50 1\", \"10 57\", \"50 20365011074\", \"20 9999\", \"49 12586269025\", \"49 1\", \"10 89\", \"10 1\", \"5 8\", \"5 1\", \"25 121393\", \"25 1\", \"1 1\", \"2 2\", \"3 3\", \"4 2\", \"5 8\", \"6 10\", \"7 20\", \"8 24\", \"9 1\", \"10 24\", \"11 77\", \"1... | rating_1601-1900 | {
"id": "553B",
"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": "You are given a set of n points on the plane. A line... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 2\\n2 1\\n3 3\\n\", \"2\\n4 3\\n1 2\\n\", \"6\\n0 4\\n1 5\\n2 1\\n3 2\\n4 3\\n5 0\\n\", \"1\\n5 2\\n\", \"4\\n2 4\\n1 2\\n0 0\\n-2 -4\\n\", \"10\\n0 5\\n1 0\\n2 3\\n3 2\\n4 6\\n5 9\\n6 1\\n7 8\\n8 4\\n9 7\\n\", \"9\\n-1000000 -500000\\n-750000 250000\\n-500000 1000000\\n-25000... | MEDIUM | {
"id": "taco-train-7546",
"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 given an array $a$ consisting of $n$ positiv... | code | {
"ground_truth": "{\"inputs\": [\"5\\n5\\n1 2 3 4 5\\n3\\n10 5 15\\n3\\n100 10 200\\n10\\n9 8 2 6 6 2 8 6 5 4\\n2\\n1 3\\n\", \"1\\n5\\n6 5 12 5 16\\n\", \"1\\n5\\n3 5 6 11 2\\n\", \"1\\n5\\n6 5 12 5 16\\n\", \"1\\n5\\n3 5 6 11 2\\n\", \"1\\n5\\n11 5 12 5 16\\n\", \"5\\n5\\n1 2 3 4 5\\n3\\n10 5 15\\n3\\n100 10 23\\n... | EASY | {
"id": "taco-train-21974",
"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": "Kiyora has $n$ whiteboards numbered from $1$ to $n$.... | code | {
"ground_truth": "{\"inputs\": [\"4\\n3 2\\n1 2 3\\n4 5\\n2 3\\n1 2\\n3 4 5\\n1 1\\n100\\n1\\n5 3\\n1 1 1 1 1\\n1000000000 1000000000 1000000000\\n\"], \"outputs\": [\"12\\n9\\n1\\n3000000002\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-12568",
"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 a person who is always fond of eating candie... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 1\\n3 2\\n0 3\\n\"], \"outputs\": [\"3\\n-1\\n0\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-21074",
"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": "A dragon symbolizes wisdom, power and wealth. On Lun... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 2 1 2\\n\", \"10\\n1 1 2 2 2 1 1 2 2 1\\n\", \"200\\n2 1 1 2 1 2 2 2 2 2 1 2 2 1 1 2 2 1 1 1 2 1 1 2 2 2 2 2 1 1 2 1 2 1 1 2 1 1 1 1 2 1 2 2 1 2 1 1 1 2 1 1 1 2 2 2 1 1 1 1 2 2 2 1 2 2 2 1 2 2 2 1 2 1 2 1 2 1 1 1 1 2 2 2 1 1 2 1 2 1 2 1 2 2 1 1 1 2 2 2 2 1 2 2 2 1 1 1 1 2 1 1 ... | MEDIUM_HARD | {
"id": "taco-train-22613",
"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": "For Programming Excellence\n\nA countless number of ... | code | {
"ground_truth": "{\"inputs\": [\"3 10\\n5 4 3\\n1 2 3\\n1 2\\n5 2\\n5 40\\n10 10 10 10 8\\n1 2 3 4 5\\n1 1 2 3\\n10 10 10 10\\n5 10\\n2 2 2 5 2\\n2 2 2 5 2\\n1 1 2 2\\n2 1 2 1\\n0 0\", \"3 10\\n5 4 3\\n1 2 3\\n1 2\\n5 2\\n5 40\\n10 10 10 10 8\\n1 2 3 4 5\\n1 1 2 3\\n10 10 10 10\\n5 10\\n2 2 2 5 2\\n2 2 2 5 2\\n1 1 ... | none | {
"id": "p01116 For Programming Excellence",
"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": "Little Elephant from the Zoo of Lviv hates exams. Si... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2\\n50 1 2\\n50 2 1\\n3\\n100 1 3\\n47 2 1\\n74 3 2\", \"2\\n2\\n54 1 2\\n50 2 1\\n3\\n100 1 3\\n47 2 1\\n74 3 2\", \"2\\n2\\n54 1 2\\n50 2 1\\n3\\n100 1 3\\n47 2 1\\n5 3 2\", \"2\\n2\\n54 1 2\\n50 2 1\\n3\\n100 1 3\\n47 2 0\\n5 4 2\", \"2\\n2\\n54 1 2\\n52 2 1\\n3\\n100 1 3\\n4... | none | {
"id": "leexams",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Today at the lesson of mathematics, Petya learns abo... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 5\\n5 2\\n3 1\\n\", \"1\\n123421 1\\n\", \"1\\n123421 2\\n\", \"3\\n1 5\\n5 2\\n5 1\\n\", \"1\\n170261 2\\n\", \"3\\n1 1\\n5 2\\n5 1\\n\", \"1\\n11400 2\\n\", \"3\\n1 2\\n5 2\\n5 1\\n\", \"1\\n796 2\\n\", \"3\\n1 2\\n5 1\\n5 1\\n\", \"1\\n461 2\\n\", \"3\\n1 4\\n5 1\\n5 1\\n\"... | rating_<=1200 | {
"id": "1107_B. Digital root",
"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 set of integers, find all distinct sums that ... | code | {
"ground_truth": "{\"inputs\": [\"nums = {1,2}\", \"nums = {1,2,3}\"], \"outputs\": [\"{0,1,2,3}\", \"{0,1,2,3,4,5,6}\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-251",
"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 S of N strings numbered from ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n3 7\\na\\nb\\nc\\n0\\n1\\n2\\n3\\n4\\n5\\n6\\n2 6\\nty\\nqwe\\n0\\n2\\n3\\n4\\n6\\n1\\n\\nSAMPLE\", \"2\\n3 7\\na\\nb\\nc\\n0\\n1\\n2\\n3\\n4\\n5\\n6\\n2 6\\nty\\nqwe\\n0\\n2\\n3\\n4\\n0\\n1\\n\\nSAMPLE\", \"2\\n3 7\\na\\nb\\nc\\n0\\n1\\n2\\n3\\n4\\n5\\n6\\n2 6\\nty\\nqwe\\n0\\n... | none | {
"id": "aabbaac",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given an array A1,A2...AN. You have to tell ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n3\\n1 2 3\\n4\\n1 2 3 4\\n\\nSAMPLE\", \"2\\n3\\n1 2 3\\n4\\n1 2 3 2\\n\\nSAMPLE\", \"2\\n3\\n1 2 -2\\n4\\n2 2 3 2\\n\\nASMPLE\", \"2\\n3\\n0 2 2\\n4\\n1 4 3 4\\n\\nSAMPLE\", \"2\\n3\\n0 2 2\\n4\\n2 4 3 4\\n\\nSAMPLE\", \"2\\n3\\n1 2 -2\\n4\\n2 2 2 2\\n\\nASMPLE\", \"2\\n3\\n0 0... | none | {
"id": "sherlock-and-xor",
"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": "Ninja Atsushi guards the town from the roof of the N... | code | {
"ground_truth": "{\"inputs\": [\"8\\n0 0 0 2 2 2 0 0\\n1 1 1 1 0 0 0 0\\n4\\n1 1 2 2\\n0 0 2 2\\n0\", \"8\\n0 0 0 2 2 2 0 0\\n1 1 1 1 1 0 0 0\\n4\\n1 1 2 2\\n0 0 2 2\\n0\", \"8\\n0 0 0 2 2 2 0 0\\n1 1 1 1 1 0 0 0\\n2\\n1 1 2 2\\n0 0 2 2\\n0\", \"8\\n0 0 0 2 2 2 0 0\\n0 1 1 1 1 0 0 0\\n2\\n1 1 2 2\\n0 0 2 2\\n0\", \... | none | {
"id": "p00230 Ninja Climbing",
"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": "You might know some pretty large perfect squares. Bu... | code | {
"ground_truth": "{\"fn_name\": \"find_next_square\", \"inputs\": [[121], [625], [319225], [15241383936], [155], [342786627]], \"outputs\": [[144], [676], [320356], [15241630849], [-1], [-1]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-9542",
"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": "There is a group that paints an emblem on the ground... | code | {
"ground_truth": "{\"inputs\": [\"1\\n2\\n3\\n4\\n5\\n6\\n0\", \"1\\n2\\n3\\n4\\n4\\n6\\n0\", \"1\\n2\\n3\\n4\\n2\\n6\\n0\", \"1\\n2\\n3\\n4\\n4\\n5\\n0\", \"1\\n2\\n3\\n4\\n1\\n5\\n0\", \"1\\n4\\n3\\n4\\n1\\n5\\n0\", \"1\\n4\\n3\\n4\\n1\\n8\\n0\", \"1\\n4\\n3\\n4\\n0\\n8\\n0\", \"1\\n6\\n3\\n4\\n0\\n8\\n0\", \"1\\n... | none | {
"id": "p01220 Triangles",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You have a root tree containing n vertexes. Let's nu... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2 2 1\\n1 2 3 4 5\\n5\\nP 3 4\\nP 4 5\\nV 2 3\\nP 5 2\\nP 1 4\\n\", \"25\\n1 2 3 4 1 2 4 1 6 1 8 3 4 1 15 13 1 10 3 16 8 15 20 10\\n260522 914575 436426 979445 648772 690081 933447 190629 703497 47202 407775 894325 963982 804784 968417 302156 631932 735902 895728 78537 723857 ... | rating_>1900 | {
"id": "482_E. ELCA",
"rating": 3200,
"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": "The programming competition season has already start... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 0 1\\n\", \"4\\n1 2 1 2\\n\", \"100\\n37 92 14 95 3 37 0 0 0 84 27 33 0 0 0 74 74 0 35 72 46 29 8 92 1 76 47 0 38 82 0 81 54 7 61 46 91 0 86 0 80 0 0 98 88 0 4 0 0 52 0 0 82 0 33 35 0 36 58 52 1 50 29 0 0 24 0 69 97 65 13 0 30 0 14 66 47 94 22 24 8 92 67 0 34 0 0 0 84 85 50 33... | rating_<=1200 | {
"id": "731_B. Coupons and Discounts",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given the number n, return a string which shows the m... | code | {
"ground_truth": "{\"fn_name\": \"hanoiArray\", \"inputs\": [[2], [3]], \"outputs\": [[\"[[2, 1], [], []]\\n[[2], [1], []]\\n[[], [1], [2]]\\n[[], [], [2, 1]]\"], [\"[[3, 2, 1], [], []]\\n[[3, 2], [], [1]]\\n[[3], [2], [1]]\\n[[3], [2, 1], []]\\n[[], [2, 1], [3]]\\n[[1], [2], [3]]\\n[[1], [], [3, 2]]\\n[[], [], [3, ... | EASY | {
"id": "taco-train-23698",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The positive odd numbers are sorted in ascending ord... | code | {
"ground_truth": "{\"inputs\": [\"3\\n\"], \"outputs\": [\"27\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-20481",
"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": "Alice and Bob created $N$ and $M$ recipes, respectiv... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"4\", \"aba\", \"abc\", \"bab\", \"aac\", \"3\", \"aba\", \"baab\", \"abc\"]], \"outputs\": [[\"1.1250000\", \"0.0277778\"]]}",
"style": "rule"
} | HARD | {
"id": "taco-train-17764",
"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": "\"The zombies are lurking outside. Waiting. Moaning.... | code | {
"ground_truth": "{\"inputs\": [\"3 7\\n.......\\n.......\\n.BB.B..\", \"4 5\\n..B..\\n..B..\\nB.B.B\\nBBB.B\", \"4 6\\n..B...\\nB.B.BB\\nBBB.BB\\nBBBBBB\", \"1 1\\nB\", \"10 7\\n.......\\n.......\\n.......\\n.......\\n.......\\n.......\\n.......\\n.......\\n...B...\\nB.BB.B.\", \"8 8\\n........\\n........\\n.......... | rating_<=1200 | {
"id": "690D1",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are running for a governor in a small city in Ru... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 2\\n1 2\\n2 1\\n0 0\\n\", \"5\\n1 2\\n1 2\\n1 2\\n2 1\\n0 0\\n\", \"1\\n100000 0\\n\", \"10\\n2 6696\\n2 933\\n1 9336\\n1 1690\\n3 3928\\n1 3507\\n0 0\\n2 9195\\n2 983\\n1 3503\\n\", \"10\\n3 8664\\n1 783\\n1 3007\\n2 2929\\n2 4685\\n3 9787\\n2 4078\\n0 0\\n2 5104\\n2 6635\\n\... | rating_>1900 | {
"id": "457_C. Elections",
"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": "Chef loves triangles. But the chef is poor at maths.... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"3 4 5\", \"1 3 4\"]], \"outputs\": [[\"YES\", \"NO\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-5262",
"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": "Magnus is the youngest chess grandmaster ever. He lo... | code | {
"ground_truth": "{\"inputs\": [\"1 2\\n\", \"2 2\\n\", \"3 2\\n\"], \"outputs\": [\"4\\n\", \"16\\n\", \"36\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-17782",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "You're a statistics professor and the deadline for su... | code | {
"ground_truth": "{\"fn_name\": \"calculate_grade\", \"inputs\": [[[92, 94, 99]], [[50, 60, 70, 80, 90]], [[50, 55]]], \"outputs\": [[\"A\"], [\"C\"], [\"F\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-53",
"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": "Julius Cipher is a type of cipher which relates all ... | code | {
"ground_truth": "{\"inputs\": [\"2\\nzazaz\\ngoodarjit\\n\\nSAMPLE\", \"60\\nvlmezxuyim\\nusholhjomc\\nfcrnbpodhf\\ndltrthaaic\\ncosnljmjtk\\nzbowagxejo\\nrjfguazsry\\nbjzquzutvj\\norhzmghfol\\nbwvktwfepv\\ncoamsgojyl\\naqihirbyor\\nxbetzvxvsr\\nyffovdqcem\\njuvvyioxzr\\njchybdlgrw\\nnxuspkypqf\\nwovtphcriy\\nogxpf... | none | {
"id": "palindromic-ciphers",
"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 the number pledged for a year, current value an... | code | {
"ground_truth": "{\"fn_name\": \"check_challenge\", \"inputs\": [[12, 5, \"January\"], [12, 1, \"February\"], [12, 1, \"March\"], [12, 12, \"September\"], [12, 5, \"March\"], [100, 5, \"March\"], [100, 52, \"July\"], [100, 51, \"July\"], [100, 53, \"July\"]], \"outputs\": [[\"You are on track.\"], [\"You are on tra... | EASY | {
"id": "taco-train-24539",
"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": "Given positive integers N, K and M, solve the follow... | code | {
"ground_truth": "{\"inputs\": [\"3 1 998244353\\n\", \"1 2 1000000007\\n\", \"10 8 861271909\\n\", \"2 1 905589253\\n\", \"14 19 964292983\\n\", \"24 26 804695321\\n\", \"39 36 991399517\\n\", \"46 46 961455263\\n\", \"60 55 931711961\\n\", \"64 64 879068783\\n\", \"75 77 988580261\\n\", \"89 89 942910693\\n\", \"9... | VERY_HARD | {
"id": "taco-train-451",
"rating": null,
"split": "confidence_train",
"sub_source": "VERY_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a string containing a list of integers separate... | code | {
"ground_truth": "{\"fn_name\": \"string_to_int_list\", \"inputs\": [[\"1,2,3,4,5\"], [\"21,12,23,34,45\"], [\"-1,-2,3,-4,-5\"], [\"1,2,3,,,4,,5,,,\"], [\",,,,,1,2,3,,,4,,5,,,\"], [\"\"], [\",,,,,,,,\"]], \"outputs\": [[[1, 2, 3, 4, 5]], [[21, 12, 23, 34, 45]], [[-1, -2, 3, -4, -5]], [[1, 2, 3, 4, 5]], [[1, 2, 3, 4,... | EASY | {
"id": "taco-train-15700",
"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 tree with N vertices 1,2,\\ldots,N, ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2\\n1 3\\n1 4\\n1 5\\n3141 59 26 53 59\", \"5\\n1 2\\n2 3\\n3 4\\n4 5\\n1 2 3 4 5\", \"5\\n1 2\\n2 3\\n3 4\\n4 5\\n2 2 3 4 5\", \"5\\n1 2\\n2 3\\n3 4\\n4 5\\n1 2 3 3 5\", \"5\\n1 2\\n2 3\\n3 4\\n4 5\\n2 2 2 4 5\", \"5\\n1 2\\n2 3\\n3 4\\n4 5\\n1 2 1 3 5\", \"5\\n1 2\\n2 3\\n3 ... | none | {
"id": "p03026 M-SOLUTIONS Programming Contest - Maximum Sum of Minimum",
"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 sheets of square paper of the same size.... | code | {
"ground_truth": "{\"inputs\": [\"5\\n5\\n0\", \"5\\n8\\n0\", \"5\\n6\\n0\", \"5\\n7\\n0\", \"5\\n4\\n0\", \"5\\n3\\n0\", \"5\\n0\\n0\", \"5\\n9\\n0\", \"5\\n14\\n0\", \"5\\n1\\n0\", \"5\\n2\\n0\", \"5\\n12\\n0\", \"5\\n13\\n0\", \"5\\n10\\n0\", \"5\\n11\\n0\", \"5\\n26\\n0\", \"5\\n16\\n0\", \"5\\n24\\n0\", \"5\\n2... | none | {
"id": "p00430 Square",
"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": "Find the length between 2 co-ordinates. The co-ordin... | code | {
"ground_truth": "{\"fn_name\": \"length_of_line\", \"inputs\": [[[[0, 0], [1, 1]]], [[[0, 0], [-5, -6]]], [[[0, 0], [10, 15]]], [[[0, 0], [5, 1]]], [[[0, 0], [5, 4]]], [[[0, 0], [-7, 4]]], [[[0, 0], [0, 0]]], [[[-3, 4], [10, 5]]]], \"outputs\": [[\"1.41\"], [\"7.81\"], [\"18.03\"], [\"5.10\"], [\"6.40\"], [\"8.06\"... | EASY | {
"id": "taco-train-4842",
"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 have a string s consisting of n characters. Each... | code | {
"ground_truth": "{\"inputs\": [\"5\\n6\\n111010\\n1\\n0\\n1\\n1\\n2\\n11\\n6\\n101010\\n\", \"5\\n6\\n111010\\n1\\n1\\n1\\n1\\n2\\n11\\n6\\n101010\\n\", \"5\\n6\\n111000\\n1\\n1\\n1\\n1\\n2\\n11\\n6\\n101010\\n\", \"5\\n6\\n011011\\n1\\n0\\n1\\n1\\n2\\n11\\n6\\n111000\\n\", \"5\\n6\\n111111\\n1\\n0\\n1\\n1\\n2\\n11... | rating_1601-1900 | {
"id": "1430_D. String Deletion",
"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": "On the eve of New Year in Dholakpur, Chota Bheem and... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 2\\n1 3\\n2 0\\n\\nSAMPLE\", \"36\\n27 13\\n53 35\\n96 96\\n57 0\\n25 88\\n28 26\\n77 80\\n83 69\\n63 0\\n46 5\\n34 87\\n97 74\\n42 46\\n64 84\\n18 38\\n73 53\\n62 85\\n96 81\\n87 45\\n21 0\\n89 31\\n40 0\\n6 0\\n83 67\\n8 72\\n80 17\\n92 55\\n96 2\\n54 82\\n68 23\\n69 88\\n49... | none | {
"id": "grab-the-laddu",
"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 Squareland national forest is divided into equal... | code | {
"ground_truth": "{\"inputs\": [\"0 0\\n1 1\\n2 2\\n\", \"0 0\\n2 0\\n1 1\\n\", \"0 1\\n1 1\\n1 0\\n\", \"0 1\\n1 2\\n2 1\\n\", \"2 2\\n0 0\\n1 1\\n\", \"358 161\\n868 457\\n606 776\\n\", \"0 2\\n1 1\\n2 0\\n\", \"482 954\\n158 954\\n998 498\\n\", \"865 651\\n504 482\\n865 450\\n\", \"1 2\\n0 1\\n2 0\\n\", \"670 672... | rating_1401-1600 | {
"id": "1085_C. Connect Three",
"rating": 1600,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
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": "In one well-known algorithm of finding the *k*-th or... | code | {
"ground_truth": "{\"inputs\": [\"6\\nadd 4\\nadd 5\\nadd 1\\nadd 2\\nadd 3\\nsum\", \"14\\nadd 1\\nadd 7\\nadd 2\\nadd 5\\nsum\\nadd 6\\nadd 8\\nadd 9\\nadd 3\\nadd 4\\nadd 10\\nsum\\ndel 1\\nsum\", \"11\\nadd 1\\nsum\\nadd 2\\nsum\\nadd 3\\nsum\\nadd 4\\nsum\\nadd 5\\nsum\\nadd 6\", \"28\\nadd 5\\nsum\\nsum\\nadd ... | rating_>1900 | {
"id": "85D",
"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 ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given an array $a$ consisting of $n$ integer... | code | {
"ground_truth": "{\"inputs\": [\"4\\n8\\n1 7 3 4 7 6 2 9\\n5\\n1 2 1 2 1\\n10\\n7 8 4 5 7 6 8 9 7 3\\n4\\n3 1 2 1\\n\", \"3\\n5\\n17 6 4 4 4\\n7\\n19 5 13 11 12 13 5\\n1\\n213567876\\n\", \"3\\n5\\n17 6 4 4 4\\n7\\n19 5 13 11 12 13 5\\n1\\n213567876\\n\", \"4\\n8\\n1 7 3 4 8 6 2 9\\n5\\n1 2 1 2 1\\n10\\n7 8 4 5 7 6... | MEDIUM_HARD | {
"id": "taco-train-923",
"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 5 integers K, L, R, X, Y. Find whether there ex... | code | {
"ground_truth": "{\"inputs\": [\"K = 1, L = 1, R = 10\\r\\n X = 1, Y = 10\", \"K = 1, L = 1, R = 5\\r\\n X = 6, Y = 10\"], \"outputs\": [\"1\", \"0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-1073",
"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 the string s of length n and the numbe... | code | {
"ground_truth": "{\"inputs\": [\"5 2 3\\nHello\\n\", \"10 9 5\\nCodeforces\\n\", \"6 4 5\\nPrivet\\n\", \"8 1 1\\nabacabac\\n\", \"1 1 1\\n1\\n\", \"10 8 1\\nuTl9w4lcdo\\n\", \"20 6 4\\nfmFRpk2NrzSvnQC9gB61\\n\", \"30 23 6\\nWXDjl9kitaDTY673R5xyTlbL9gqeQ6\\n\", \"40 14 3\\nSOHBIkWEv7ScrkHgMtFFxP9G7JQLYXFoH1sJDAde\\... | EASY | {
"id": "taco-train-19046",
"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\nIf you collect L pieces, Dragoso will app... | code | {
"ground_truth": "{\"inputs\": [\"9 14 5 10\\n1 2 1\\n1 4 5\\n2 4 4\\n2 3 3\\n2 6 2\\n3 6 3\\n3 7 2\\n4 6 5\\n4 5 6\\n5 8 8\\n6 7 3\\n7 8 1\\n7 9 9\\n8 9 2\\n1 9\\n1\\n2\\n5\\n7\\n9\\n4 5 1 3\\n1 2 1\\n1 3 2\\n2 3 2\\n2 4 9\\n3 4 1\\n1 4\\n2\\n4 5 1 10\\n1 2 1\\n1 3 2\\n2 3 2\\n2 4 9\\n3 4 1\\n1 4\\n2\\n4 3 1 1\\n1 ... | none | {
"id": "p01003 Doragoso Ball",
"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": "Suppose you are given a string $s$ of length $n$ con... | code | {
"ground_truth": "{\"inputs\": [\"3 3 1\\naba\\n\", \"4 1 1\\nabcd\\n\", \"4 10 1\\naaaa\\n\", \"30 4114 2743\\neeaeaebdacdbabccbddcaddcddceea\\n\", \"56 5 67\\nbhcdbeededbhcdbaededchgdfeecedfaegbccbedggcdfgdddeahcdee\\n\", \"10 7 56\\nabaabaaaba\\n\", \"10 1474 2527\\nbbbabbbaaa\\n\", \"7 3040 61\\naacaaca\\n\", \"... | HARD | {
"id": "taco-train-7376",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a non null integer matrix Grid of dimensions Nx... | code | {
"ground_truth": "{\"inputs\": [\"N=2,M=3\\r\\nGrid=\\r\\n[[1,0,1],\\r\\n[-8,9,-2]]\", \"N=3,M=5\\r\\nGrid=\\r\\n[[1,0,1,0,1],\\r\\n[0,1,0,1,0],\\r\\n[-1,-1,-1,-1,-1]]\"], \"outputs\": [\"1\", \"0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-6385",
"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 Smart Beaver from ABBYY began to develop a new e... | code | {
"ground_truth": "{\"inputs\": [\"8\\n1 2 3 4 5 6 7 8\\n\", \"4\\n1 0 1 2\\n\", \"80\\n72 66 82 46 44 22 63 92 71 65 5 30 45 84 29 73 9 90 25 19 26 15 12 29 33 19 85 92 91 66 83 39 100 53 20 99 11 81 26 41 36 51 21 72 28 100 34 3 24 58 11 85 73 18 4 45 90 99 42 85 26 71 58 49 76 32 88 13 40 98 57 95 20 36 70 66 75 1... | rating_<=1200 | {
"id": "178_A1. Educational 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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a string S, remove all the characters other tha... | code | {
"ground_truth": "{\"inputs\": [\"S = \\\"$Gee*k;s..fo, r'Ge^eks?\\\"\", \"S = \\\"{{{}}> *& ^%*)\\\"\"], \"outputs\": [\"GeeksforGeeks\", \"-1\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-11555",
"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": "Alice and Bob are playing a game using a string S of... | code | {
"ground_truth": "{\"inputs\": [\"3\\n4\\nabab\\n6\\nabccda\\n4\\naaaa\\n\"], \"outputs\": [\"1\\n2\\n2\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-2531",
"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": "She was worried. The grades are not good. Although s... | code | {
"ground_truth": "{\"inputs\": [\"(B&B&f)|(~d&~i&i)|(~v&i&~V)|(~g&~e&o)|(~f&d&~v)|(d&~i&o)|(g&i&~B)|(~i&f&d)|(e&~i&~V)|(~v&f&~d)\\n(S&X&~X)\\n#\", \"(B&B&f)|(~d&~i&i)|(~v&i&~V)|(~g&~e&o)|(~f&d&~v)|(d&~i&o)|(g&i&~B)|(~i&f&d)|(e&~i&~V)|(~v&f&~d)\\n(S&X&~X)\", \"(B&B&f)|(~d&~i&i)|(~v&i&~V)|(&g&~e&o)|(~f&d&~v)|(d&~i&o)|... | none | {
"id": "p00663 SAT-EN-3",
"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 singly linked list of size N, and an integer ... | code | {
"ground_truth": "{\"inputs\": [\"N = 4, K = 1\\r\\nvalue[] = {1,2,3,4}\", \"N = 5, K = 7\\r\\nvalue[] = {1,2,3,4,5}\"], \"outputs\": [\"1\", \"1\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-2115",
"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": "One industrial factory is reforming working plan. Th... | code | {
"ground_truth": "{\"inputs\": [\"1 5\", \"3 6\", \"1 8\", \"2 3\", \"3 24\", \"1 1\", \"100000 100000\", \"1 99989\", \"512 2\", \"100 24\", \"1 100000\", \"100000 1\", \"3 99929\", \"99961 99971\", \"1 65536\", \"4 65536\", \"3 65536\", \"32768 65536\", \"65535 65536\", \"1 65535\", \"98812 100000\", \"10 5\", \"6... | rating_1201-1400 | {
"id": "485A",
"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 20XX AD, a school competition was held. The tourn... | code | {
"ground_truth": "{\"inputs\": [\"5 5\\n-38 -71 -293 75 1\\n-158 -38 -405 66 1\\n-236 -303 157 266 1\\n316 26 411 190 1\\n207 -312 -27 196 1\\n-50 292 -375 -401 389 -389\\n460 278 409 -329 -303 411\\n215 -220 -200 309 -474 300\\n261 -494 -87 -300 123 -463\\n386 378 486 -443 -64 299\", \"5 1\\n0 10 0 5 2\\n0 20 0 5 1... | none | {
"id": "p01753 Magic Bullet",
"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": "Write a function that merges two sorted arrays into a... | code | {
"ground_truth": "{\"fn_name\": \"merge_arrays\", \"inputs\": [[[1, 3, 5], [2, 4, 6]], [[2, 4, 8], [2, 4, 6]], [[1, 2, 3], []], [[], []]], \"outputs\": [[[1, 2, 3, 4, 5, 6]], [[2, 4, 6, 8]], [[1, 2, 3]], [[]]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-14757",
"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": "Lucy had recently learned the game, called Natural N... | code | {
"ground_truth": "{\"inputs\": [\"2\\n5\\nKouta 1\\nYuka 1\\nMayu 3\\nLucy 2\\nNana 5\\n2\\nLucy 2\\nNana 2\", \"2\\n5\\nKouta 1\\nYuka 1\\nMayu 3\\nyucL 2\\nNana 5\\n2\\nLucy 2\\nNana 2\", \"2\\n5\\nKouta 1\\nYuka 0\\nMayu 3\\nyucL 2\\nNana 5\\n2\\nLucy 2\\nNana 2\", \"2\\n5\\nKouta 2\\nakuY 0\\nMayu 3\\nyucL 2\\nN... | none | {
"id": "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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given two integers A and B. Find the smallest number ... | code | {
"ground_truth": "{\"inputs\": [\"A = 5\\nB = 3\", \"A = 25\\nB = 13\"], \"outputs\": [\"6\", \"26\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-13187",
"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": "Nastya received one more array on her birthday, this... | code | {
"ground_truth": "{\"inputs\": [\"4 2\\n6 3 8 1\\n\", \"1 1\\n1\\n\", \"90 45\\n15 1 1 1 1 3 1 1 5 3 5 1 1 15 15 3 1 15 1 1 1 15 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 15 1 1 1 1 1 1 1 1 1 15 1 1 1 1 5 1 1 1 1 15 1 1 1 15 1 1 1 1 1 1 1 1 3 1 1 15 3 1 1 1 15 15 1 1 1 1 15\\n\", \"9 209\\n2 7 31 673 853 1669 5821 762... | rating_>1900 | {
"id": "992_D. Nastya and a Game",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "In a country popular for train travel, you have plann... | code | {
"ground_truth": "{\"fn_name\": \"mincostTickets\", \"inputs\": [[[1, 4, 6, 7, 8, 20], [2, 7, 15]]], \"outputs\": [11]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-23288",
"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": "How many multiples of d are there among the integers... | code | {
"ground_truth": "{\"inputs\": [\"1 100 1\", \"6 20 7\", \"5 10 2\", \"1 100 2\", \"9 20 7\", \"5 10 1\", \"9 20 3\", \"5 4 1\", \"9 31 3\", \"2 4 1\", \"9 21 3\", \"2 3 1\", \"2 10 1\", \"2 110 2\", \"2 8 1\", \"0 100 1\", \"2 24 1\", \"0 110 1\", \"1 32 3\", \"2 110 1\", \"2 12 1\", \"1 110 1\", \"1 58 4\", \"1 67... | none | {
"id": "p02606 AIsing Programming Contest 2020 - Number of Multiples",
"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": "As you know, Hogwarts has four houses: Gryffindor, H... | code | {
"ground_truth": "{\"inputs\": [\"2\\nH?\\n\", \"11\\nG????SS???H\\n\", \"108\\n??RS?HGH?S?GS?HRGHRHRR?G?GSGSSHGS?HRSHRSR?HGHGRH??????????????RS?HGH?S?GS?HRGHRHRR?G?GSGSSHGS?HRSHRSR?HGHGRH\\n\", \"10\\n??HS??HSGR\\n\", \"7\\n???????\\n\", \"5\\nH?S?G\\n\", \"1\\nG\\n\", \"100\\n??RH?S?HH?RGHR?HS?RHH?GRGRRGSSRSG??S??... | rating_>1900 | {
"id": "65_D. Harry Potter and the Sorting Hat",
"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": "Shubham has an array $a$ of size $n$, and wants to s... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 1\\n999\\n1 1\\n1000\\n2 1\\n51 50\\n2 2\\n51 50\\n3 3\\n101 102 103\\n\", \"4\\n3 1\\n16 11 12\\n10 3\\n13 12 9 1 9 8 4 19 16 19\\n3 2\\n3 2 6\\n9 7\\n11 14 1 6 3 12 3 20 16\\n\", \"1\\n4 3\\n1 3 5 7\\n\", \"4\\n3 1\\n16 11 12\\n10 3\\n13 12 9 1 9 8 4 19 16 19\\n3 2\\n3 2 6\\... | EASY | {
"id": "taco-train-21003",
"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 have two strings A = A_1 A_2 ... A_n and B = B_1... | code | {
"ground_truth": "{\"inputs\": [\"01001\\n01001\", \"101010\\n010101\", \"1101011011110\\n0111101011101\", \"1010\\n1100\", \"01001\\n01101\", \"101010\\n010100\", \"1101011011110\\n0111101011001\", \"1010\\n1000\", \"101010\\n110100\", \"1101011011110\\n0111101001001\", \"101010\\n111100\", \"1101011011110\\n001110... | none | {
"id": "p03621 AtCoder Grand Contest 019 - Shuffle and Swap",
"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 day Vasya went out for a walk in the yard but th... | code | {
"ground_truth": "{\"inputs\": [\"4 5\\n1 1\\n3\\n1 1\\n1 1\\n0 -2\", \"10 10\\n1 2\\n1\\n-1 0\", \"10 20\\n10 3\\n10\\n-2 -6\\n-1 0\\n-8 0\\n0 5\\n-1 3\\n16 -16\\n-1 9\\n0 -18\\n9 -1\\n-9 5\", \"20 10\\n14 4\\n10\\n6 0\\n-7 -7\\n12 -2\\n-4 9\\n20 3\\n-1 -16\\n0 2\\n-1 1\\n20 0\\n-1 1\", \"1000 2000\\n226 566\\n20\\... | rating_1201-1400 | {
"id": "152B",
"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": "Now a days it is possible to access particular websi... | code | {
"ground_truth": "{\"inputs\": [\"2\\nwww.google.com\\nwww.yahoo.com\", \"2\\nwww.moogle.cog\\nwww.yahoo.com\", \"2\\nwww.google.com\\nwww.yaioo.com\", \"2\\nwww.gnogle.com\\nwww.yaioo.com\", \"2\\nwww.gnogle.com\\ncww.y`ioo.wom\", \"2\\ngoc.elwoow.mgx\\nmoc.onhay.www\", \"2\\nxgm.woowcf.log\\nmoc.onhay.www\", \"2\\... | none | {
"id": "csixievr",
"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": "We partition a row of numbers A into at most K adjace... | code | {
"ground_truth": "{\"fn_name\": \"largestSumOfAverages\", \"inputs\": [[[9, 1, 2, 3, 9], 3]], \"outputs\": [20.0]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-1830",
"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": "Let a and b be binary numbers of length n (MSB to th... | code | {
"ground_truth": "{\"inputs\": [\"5 5\\n00000\\n11111\\nset_a 0 1\\nget_c 5\\nget_c 1\\nset_b 2 0\\nget_c 5\\n\"], \"outputs\": [\"100\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-6265",
"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": "An angel lives in the clouds above the city where Na... | code | {
"ground_truth": "{\"inputs\": [\"4\\n6 4\\nC E D# F G A\\nC E F G\\n6 4\\nC E D# F G A\\nC D# F G\\n3 6\\nC D D\\nD# B D B D# C#\\n8 8\\nC B B B B B F F\\nC B B B B B B B\", \"4\\n6 4\\nC E D# E G A\\nC E F G\\n6 4\\nC E D# F G A\\nC D# F G\\n3 6\\nC D D\\nD# B D B D# C#\\n8 8\\nC B B B B B F F\\nC B B B B B B B\",... | none | {
"id": "p01308 Angel Stairs",
"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": "Convert integers to binary as simple as that. You wou... | code | {
"ground_truth": "{\"fn_name\": \"to_binary\", \"inputs\": [[2], [3], [4], [5], [7], [10], [-3], [0], [1000], [-15], [-1000], [-999999], [999999]], \"outputs\": [[\"10\"], [\"11\"], [\"100\"], [\"101\"], [\"111\"], [\"1010\"], [\"11111111111111111111111111111101\"], [\"0\"], [\"1111101000\"], [\"11111111111111111111... | EASY | {
"id": "taco-train-7625",
"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": "Your friend has n cards.\n\nYou know that each card ... | code | {
"ground_truth": "{\"inputs\": [\"ee\\n\", \"z\\n\", \"0ay1\\n\", \"w\\n\", \"13579\\n\", \"kaq7jyialrfp4ilkni90eq8v3amcbygon7py0hb8z26fbl8ss1\\n\", \"1357\\n\", \"l3rw91a4m25l8iytxyeuixsegzcbm4h41ornf3pixkrmwznrzc\\n\", \"0\\n\", \"0a0a9e9e2i2i9o9o6u6u9z9z4x4x9b9b\\n\", \"gabieurat\\n\", \"0abcdefghijklmnopqrstuvwx... | rating_<=1200 | {
"id": "908_A. New Year and Counting Cards",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given an array containing 2 \\times n elemen... | code | {
"ground_truth": "{\"inputs\": [\"1\\n3\\n5 6 2 3 9 8\\n\\nSAMPLE\", \"1\\n3\\n0 6 2 3 9 8\\n\\nSAMPLE\", \"1\\n3\\n0 6 1 3 9 8\\n\\nSAMPLE\", \"1\\n3\\n0 6 1 3 9 11\\n\\nSAMPLE\", \"1\\n3\\n5 6 2 4 9 8\\n\\nSAMPLE\", \"1\\n3\\n5 6 2 4 9 16\\n\\nSAMPLE\", \"1\\n3\\n5 6 2 4 16 16\\n\\nSAMPLE\", \"1\\n3\\n5 6 2 4 19 1... | none | {
"id": "minimise-maximum-sum",
"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": "During the last Sereja's Codesecrof round the server... | code | {
"ground_truth": "{\"inputs\": [\"5 0\\n5 3 4 1 2\\n\", \"10 -10\\n5 5 1 7 5 1 2 4 9 2\\n\", \"5 0\\n5 5 4 1 2\\n\", \"10 -10\\n5 5 1 7 4 1 2 4 9 2\\n\", \"10 0\\n5 5 1 7 4 1 2 4 9 2\\n\", \"10 -10\\n5 5 1 0 5 1 2 4 9 2\\n\", \"5 0\\n5 5 4 0 2\\n\", \"10 -10\\n5 5 1 7 4 1 0 4 9 2\\n\", \"10 -12\\n5 5 1 0 5 1 2 4 9 2... | rating_1401-1600 | {
"id": "315_C. Sereja and Contest",
"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": "For a given array $a_1, a_2, a_3, ... , a_N$ of $N$ ... | code | {
"ground_truth": "{\"inputs\": [\"6 5\\n1 2 3 4 5 6\\n6 9 12 21 15\", \"6 5\\n1 2 3 4 7 6\\n6 9 12 21 15\", \"6 5\\n1 2 3 2 7 6\\n6 9 12 21 15\", \"6 5\\n1 2 3 2 7 6\\n6 12 12 21 15\", \"6 5\\n1 2 3 2 7 6\\n0 12 12 21 15\", \"6 5\\n1 2 3 5 5 6\\n6 9 12 21 15\", \"6 5\\n1 2 3 4 7 6\\n6 9 12 21 21\", \"6 5\\n1 2 3 2 7... | none | {
"id": "p02356 The Number of Windows",
"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": "Read problems statements in Mandarin Chinese, Russia... | code | {
"ground_truth": "{\"inputs\": [\"2\\n101\\n11\"], \"outputs\": [\"Yes\\nNo\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-16374",
"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": "Takahashi has A untasty cookies containing antidotes... | code | {
"ground_truth": "{\"inputs\": [\"3 1 4\", \"8 8 1\", \"5 2 9\", \"0 1 4\", \"14 8 1\", \"9 2 9\", \"0 0 4\", \"14 8 2\", \"3 2 9\", \"11 15 2\", \"11 15 4\", \"3 0 12\", \"0 2 0\", \"11 15 0\", \"0 0 0\", \"16 5 0\", \"-2 0 0\", \"3 1 27\", \"-1 1 -4\", \"6 -2 0\", \"-1 -2 0\", \"-2 -2 -1\", \"-4 -2 -1\", \"0 -2 -4... | none | {
"id": "p03186 AtCoder Grand Contest 030 - Poisonous Cookies",
"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": "Each item in Chef’s menu is assigned a spice level f... | code | {
"ground_truth": "{\"inputs\": [\"4\\n4\\n1\\n6\\n9\\n\"], \"outputs\": [\"MEDIUM\\nMILD\\nMEDIUM\\nHOT\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-5606",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.