data_source stringclasses 3
values | prompt listlengths 2 2 | ability stringclasses 1
value | reward_model dict | sub_source stringclasses 12
values | extra_info dict |
|---|---|---|---|---|---|
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": "Pavel is going to make a game of his dream. However,... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2 8 9\\n1 4 7\\n3 6 8\\n5 8 10\", \"6\\n3 5 16\\n1 6 11\\n4 8 12\\n7 9 16\\n2 10 14\\n8 13 15\", \"1\\n299998 299999 300000\", \"2\\n1 3 6\\n2 4 5\", \"2\\n1 2 5\\n3 4 6\", \"3\\n1 3 4\\n2 5 6\\n4 5 7\", \"4\\n1 1 1\\n3 3 3\\n1 1 1\\n1 2 3\", \"4\\n1 2 3\\n1 4 5\\n2 3 4\\n3 4 5\... | rating_>1900 | {
"id": "377D",
"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": "In this problem, you are required to write a program... | code | {
"ground_truth": "{\"inputs\": [\"5\\n3 C E G\\n3 C E G#\\n4 C A G E\\n5 F A C E D\\n3 C D E\", \"5\\n3 C E G\\n3 C D G#\\n4 C A G E\\n5 F A C E D\\n3 C D E\", \"5\\n3 C E G\\n3 C D G#\\n4 D A G E\\n5 F A C E D\\n2 C D E\", \"5\\n3 D E G\\n3 C D G#\\n4 D A G E\\n5 F A C E D\\n2 C D E\", \"5\\n3 C E G\\n3 C E G#\\n4 ... | none | {
"id": "p01152 Reading a Chord",
"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": "Count the number of palindromic numbers less than N.\... | code | {
"ground_truth": "{\"inputs\": [\"N = 12\", \"N = 104\"], \"outputs\": [\"10\", \"19\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-19132",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "You are given N pairs of numbers. In every pair, the ... | code | {
"ground_truth": "{\"inputs\": [\"N = 5\\r\\nP[] = {5 24 , 39 60 , 15 28 , 27 40 , 50 90}\", \"N = 2\\r\\nP[] = {5 10 , 1 11}\"], \"outputs\": [\"3\", \"1\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-19734",
"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 might have remembered Theatre square from the pr... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 1 10 1\\n.\\n1 2 10 1\\n..\\n2 1 10 1\\n.\\n.\\n3 3 3 7\\n..*\\n*..\\n.*.\\n\", \"1\\n3 3 2 4\\n**.\\n***\\n***\\n\", \"1\\n9 9 9 9\\n.........\\n.........\\n.........\\n.........\\n.........\\n.........\\n.........\\n.........\\n.........\\n\", \"1\\n3 3 2 4\\n**.\\n***\\n***... | EASY | {
"id": "taco-train-18823",
"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 integer G and an array arr[] of size N, find... | code | {
"ground_truth": "{\"inputs\": [\"N = 8\\narr[] = {6, 9, 7, 10, 12, 24, 36, 27}\\nG = 3\", \"N = 6\\nArr[] = {9, 12, 15, 24, 36, 27}\\nG = 2\"], \"outputs\": [\"2\", \"-1\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-10155",
"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": "Chef discovered that his secret recipe has been stol... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 3\\n2 1\\n1 1\"], \"outputs\": [\"2\\n1\\n0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-3844",
"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": "On an infinite plane, a robot initially stands at (0,... | code | {
"ground_truth": "{\"fn_name\": \"isRobotBounded\", \"inputs\": [[\"\\\"GGLLGG\\\"\"]], \"outputs\": [true]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-13165",
"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": "Chef has a binary string S of length N.\n\nChef can ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n4\\n1010\\n6\\n011011\\n11\\n01011011101\\n\"], \"outputs\": [\"2\\n2\\n3\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-20914",
"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": "Everyone knows that the highlight of Halloween at Hi... | code | {
"ground_truth": "{\"inputs\": [\"10\\nghost\\nmummy\\nwitch\\ndemon\\ndemon\\ndemon\\ndemon\\ndemon\\ndemon\\ndemon\\n\", \"3\\nghost\\nmysteryredwoman\\nghost\\n\"], \"outputs\": [\"ghost\\nmummy\\nwitch\\n\", \"mysteryredwoman\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-9503",
"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 loves sorting! Chef recently learnt about a new... | code | {
"ground_truth": "{\"inputs\": [\" 2\\n 5\\n 1 2 3 4 5\\n 5\\n 1 3 2 5 4\"], \"outputs\": [\" 0\\n 3\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-517",
"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": "For an array A of N integers, define \n\n* An array ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n3\\n1 2 3\\n3 2 1\\n4\\n2 2 3 3\\n3 2 2 1\\n2\\n1 1\\n1 1\\n3\\n1 2 1\\n2 2 1\\n\"], \"outputs\": [\"YES\\nNO\\nYES\\nNO\\n\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-4017",
"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": "Given are two strings s and t consisting of lowercas... | code | {
"ground_truth": "{\"inputs\": [\"contest\\nsentence\", \"contest\\nson\", \"contest\\nprogramming\", \"toncest\\nsentence\", \"csnteot\\nson\", \"contest\\nprogrammhng\", \"vtaletn\\ntnn\", \"ntelatv\\ntnn\", \"mlstvdc\\nmsm\", \"toncest\\nsentemce\", \"csnoett\\nson\", \"eontcst\\nprogrammhng\", \"tsecnot\\nsentem... | none | {
"id": "p02937 AtCoder Beginner Contest 138 - Strings of Impurity",
"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": "Once upon a time DravDe, an outstanding person famou... | code | {
"ground_truth": "{\"inputs\": [\"3 4\\n1 1 1\", \"3 6\\n1 1 1\", \"1 12\\n1\", \"3 100\\n1 1 1\", \"5 75\\n1 1 1 1 1\", \"7 115\\n1 1 1 1 1 1 1\", \"10 1055\\n7 1 1 2 8 7 8 2 5 8\", \"7 3623\\n20 14 24 4 14 14 24\", \"10 3234\\n24 2 28 18 6 15 31 2 28 16\", \"15 402\\n3 3 3 3 2 2 3 3 3 3 3 3 2 2 1\", \"25 5523\\n24... | rating_1601-1900 | {
"id": "35D",
"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": "In a recent [breakthrough] in mathematics, the proof... | code | {
"ground_truth": "{\"inputs\": [\"3 19\\n\", \"27 4\\n\"], \"outputs\": [\"19\\n\", \"27\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-14660",
"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": "Sabya is writing code to output a random number betw... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1\\n2\\n3\\n\", \"5\\n1\\n2\\n3\\n4\\n5\\n\", \"2\\n6\\n7\\n\", \"3\\n8\\n9\\n10\\n\", \"2\\n100\\n200\\n\", \"4\\n300\\n400\\n500\\n600\\n\", \"1\\n10000\\n\", \"2\\n50000\\n60000\\n\", \"3\\n70000\\n80000\\n90000\\n\", \"1\\n100000\\n\", \"2\\n200000\\n300000\\n\", \"3\\n40000... | MEDIUM_HARD | {
"id": "taco-test-330",
"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 are in charge of painting the lanes on a 500 met... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2\\n1 3 1\\n2 5 2\\n2\\n1 3 1\\n2 5 3\\n5\\n60 60 4\\n60 61 5\\n61 61 6\\n100 100 8\\n100 100 9\", \"3\\n2\\n1 1 1\\n2 5 2\\n2\\n1 3 1\\n2 5 3\\n5\\n60 60 4\\n60 61 5\\n61 61 6\\n100 100 8\\n100 100 9\", \"3\\n2\\n1 3 1\\n2 5 2\\n2\\n1 3 1\\n1 5 3\\n5\\n60 60 4\\n60 61 5\\n61 61... | none | {
"id": "racelane",
"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 students standing in a row. Two coaches ... | code | {
"ground_truth": "{\"inputs\": [\"5 1\\n2 4 5 3 1\\n\", \"7 1\\n7 2 1 3 5 4 6\\n\", \"5 1\\n2 1 3 5 4\\n\", \"5 2\\n2 4 5 3 1\\n\", \"100 7\\n89 100 24 91 95 84 22 64 69 52 76 99 62 93 82 57 72 21 26 27 9 32 71 96 17 2 4 40 41 50 55 60 36 14 70 11 68 74 80 98 75 15 94 29 63 66 38 3 25 28 79 13 97 16 1 39 33 12 30 49... | rating_1601-1900 | {
"id": "1154_E. Two Teams",
"rating": 1800,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Inna and Dima bought a table of size *n*<=×<=*m* in ... | code | {
"ground_truth": "{\"inputs\": [\"1 2\\nDI\", \"2 2\\nMA\\nID\", \"5 5\\nDIMAD\\nDIMAI\\nDIMAM\\nDDMAA\\nAAMID\", \"1 1\\nI\", \"5 5\\nDIMAD\\nADDDI\\nMDDDM\\nIDDDA\\nDAMID\", \"5 5\\nAAAAA\\nAAAAA\\nAAAAA\\nAAAAA\\nAAAAA\", \"1 1\\nD\", \"1 4\\nDIMA\", \"4 1\\nD\\nI\\nM\\nA\", \"2 2\\nDI\\nAM\", \"2 2\\nDI\\nMA\", ... | rating_1601-1900 | {
"id": "374C",
"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": "A positive integer X is said to be a lunlun number i... | code | {
"ground_truth": "{\"inputs\": [\"15\\n\", \"1\\n\", \"13\\n\", \"100000\\n\", \"6\\n\", \"7\\n\", \"22\\n\", \"20\\n\", \"87\\n\", \"60\\n\", \"229\\n\", \"111\\n\", \"360\\n\", \"593\\n\", \"2412\\n\", \"2158\\n\", \"4556\\n\", \"2927\\n\", \"19582\\n\", \"19612\\n\", \"32454\\n\", \"27116\\n\", \"94598\\n\", \"91... | MEDIUM | {
"id": "taco-train-5797",
"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": "Tomorrow is a difficult day for Polycarp: he has to ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n7 5 4 5 8\\n7 5 4 5 2\\n20 53 45 26 4\\n\", \"8\\n80 72 20 12 10\\n81 72 20 12 11\\n80 73 20 12 11\\n81 73 20 12 12\\n80 73 20 12 10\\n3 99 5 1 100\\n99 1 1 4 100\\n53 37 13 3 17\\n\", \"1\\n2 5 4 2 2\\n\", \"1\\n5 4 6 1 5\\n\", \"1\\n2 2 2 3 2\\n\", \"1\\n1 6 3 2 3\\n\", \"1\\n... | EASY | {
"id": "taco-train-23242",
"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": "Finally it is a day when Arthur has enough money for... | code | {
"ground_truth": "{\"inputs\": [\"4 5\\n.....\\n.....\\n..***\\n..*..\\n\", \"5 5\\n.*.*.\\n*****\\n.*.*.\\n*****\\n.*.*.\\n\", \"6 7\\n***.*.*\\n..*.*.*\\n*.*.*.*\\n*.*.*.*\\n..*...*\\n*******\\n\", \"4 4\\n.*..\\n.***\\n***.\\n..*.\\n\", \"2 2\\n**\\n**\\n\", \"5 5\\n..*..\\n..*..\\n**.**\\n..*..\\n..*..\\n\", \"3... | rating_>1900 | {
"id": "525_D. Arthur and Walls",
"rating": 2400,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an array of integers nums and an integer target... | code | {
"ground_truth": "{\"fn_name\": \"numSubseq\", \"inputs\": [[[3, 5, 6, 7], 9]], \"outputs\": [4]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-12701",
"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": "Ashishgup and FastestFinger play a game. \n\nThey st... | code | {
"ground_truth": "{\"inputs\": [\"7\\n1\\n2\\n3\\n4\\n5\\n6\\n12\\n\", \"31\\n16777216\\n1\\n64\\n268435456\\n1024\\n536870912\\n131072\\n8388608\\n4194304\\n1048576\\n16\\n8\\n67108864\\n128\\n8192\\n256\\n16384\\n262144\\n512\\n32768\\n32\\n4\\n2048\\n33554432\\n134217728\\n4096\\n1000000000\\n2097152\\n524288\\n2... | MEDIUM | {
"id": "taco-test-701",
"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": "Meanwhile, the kingdom of K is getting ready for the... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 3\\n2 3\\n4 3\\n4\\n2 1 2\\n3 2 3 4\\n3 1 2 4\\n4 1 2 3 4\\n\", \"7\\n1 2\\n2 3\\n3 4\\n1 5\\n5 6\\n5 7\\n1\\n4 2 4 6 7\\n\", \"7\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\\n6 7\\n5\\n4 1 3 5 7\\n3 2 4 6\\n2 1 7\\n2 3 4\\n3 1 6 7\\n\", \"30\\n1 2\\n1 3\\n1 4\\n2 5\\n2 6\\n2 7\\n4 8\\n4 9\... | VERY_HARD | {
"id": "taco-test-46",
"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": "One cold winter evening Alice and her older brother ... | code | {
"ground_truth": "{\"inputs\": [\"3310\\n1033\\n\", \"4\\n5\\n\", \"17109\\n01179\\n\", \"111111111\\n111111111\\n\", \"912\\n9123\\n\", \"10101\\n10101\\n\", \"666\\n0666\\n\", \"7391\\n1397\\n\", \"1270\\n1027\\n\", \"0\\n00\\n\", \"987235645\\n234556789\\n\", \"201\\n102\\n\", \"0\\n0\\n\", \"1000000000\\n1\\n\",... | rating_<=1200 | {
"id": "12_B. Correct Solution?",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Luka is bored in chemistry class yet again. This tim... | code | {
"ground_truth": "{\"inputs\": [\"3 3 1\\n2 2\\n1 1 R\\n010\\n000\\n000\\n\", \"3 4 2\\n2 2\\n3 4 R\\n2327\\n6009\\n2112\\n3 2 R\\n1310\\n2101\\n1301\\n\", \"4 4 3\\n4 3\\n1 1 U\\n1001\\n0240\\n3322\\n2327\\n1 3 L\\n9521\\n2390\\n3020\\n2421\\n2 2 D\\n3397\\n2013\\n1102\\n7302\\n\"], \"outputs\": [\"2\\n\", \"7\\n\"... | HARD | {
"id": "taco-train-16258",
"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": "Write a function `generatePairs` that accepts an inte... | code | {
"ground_truth": "{\"fn_name\": \"generate_pairs\", \"inputs\": [[2], [0]], \"outputs\": [[[[0, 0], [0, 1], [0, 2], [1, 1], [1, 2], [2, 2]]], [[[0, 0]]]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-13997",
"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 problem statements in [Hindi], [Bengali], [Mand... | code | {
"ground_truth": "{\"inputs\": [\"1\\n3 3\\n2 2 3\"], \"outputs\": [\"0 0 3\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-24362",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Igor K. always used to trust his favorite Kashpirovs... | code | {
"ground_truth": "{\"inputs\": [\"01001100100101100000010110001001011001000101100110010110100001011010100101101100\\n0100110000\\n0100110010\\n0101100000\\n0101100010\\n0101100100\\n0101100110\\n0101101000\\n0101101010\\n0101101100\\n0101101110\", \"1010110111100100001010010001101010110111001011011101100010001101111... | rating_<=1200 | {
"id": "94A",
"rating": 900,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "An army of n droids is lined up in one row. Each dro... | code | {
"ground_truth": "{\"inputs\": [\"5 2 4\\n4 0\\n1 2\\n2 1\\n0 2\\n1 3\\n\", \"3 2 4\\n1 2\\n1 3\\n2 2\\n\", \"4 5 33\\n2 10 2 3 2\\n10 6 4 5 0\\n3 1 7 3 2\\n4 4 2 1 5\\n\", \"4 5 40\\n0 10 9 0 4\\n10 5 5 7 4\\n9 9 5 5 2\\n6 7 9 4 3\\n\", \"31 2 1913\\n845 576\\n862 325\\n914 283\\n431 837\\n193 171\\n30 248\\n290 48... | rating_>1900 | {
"id": "514_D. R2D2 and Droid Army",
"rating": 2000,
"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": "Three numbers A, B and C are the inputs. Write a pro... | code | {
"ground_truth": "{\"inputs\": [\"3 \\n120 11 400\\n10213 312 10\\n10 3 450\", \"3 \\n120 14 400\\n10213 312 10\\n10 3 450\", \"3 \\n117 14 384\\n10213 312 10\\n10 3 450\", \"3 \\n178 14 384\\n10213 312 10\\n10 3 450\", \"3 \\n303 14 384\\n10213 312 10\\n10 0 450\", \"3 \\n6 14 766\\n10213 312 10\\n10 0 45\", \"3 \\... | none | {
"id": "flow017",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There is one apple tree in Arkady's garden. It can b... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 1\\n\", \"5\\n1 1 3 3\\n\", \"10\\n1 1 2 4 2 4 1 8 8\\n\", \"10\\n1 2 2 3 3 4 4 5 5\\n\", \"10\\n1 1 1 1 1 1 1 1 1\\n\", \"2\\n1\\n\", \"1\\n\\n\", \"2\\n1\\n\", \"10\\n1 2 2 3 3 4 4 5 5\\n\", \"10\\n1 1 1 1 1 1 1 1 1\\n\", \"1\\n\\n\", \"10\\n1 1 2 4 2 4 1 8 8\\n\", \"10\\n1 ... | MEDIUM_HARD | {
"id": "taco-train-8809",
"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": "Indian National Olympiad in Informatics 2015\nA stri... | code | {
"ground_truth": "{\"inputs\": [[\"3 176\"]], \"outputs\": [[\"6\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-1080",
"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": "Vasiliy has a car and he wants to get from home to t... | code | {
"ground_truth": "{\"inputs\": [\"5 2 1 4 10\\n\", \"5 2 1 4 5\\n\", \"100 120 1 2 509\\n\", \"100 120 1 2 520\\n\", \"100 123 1 2 1007\\n\", \"1000000000000 1 1 10 1\\n\", \"7 2 4 16 19\\n\", \"1 2 1 2 2\\n\", \"100 120 1 2 600\\n\", \"1 100 1 5 10\\n\", \"100 120 1 2 300\\n\", \"100 120 1 2 306\\n\", \"5 1000 1 4 ... | rating_1601-1900 | {
"id": "702_D. Road to Post Office",
"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": "$Harshad$ $Mehta$ is planning a new scam with the s... | code | {
"ground_truth": "{\"inputs\": [[\"4483 2\"]], \"outputs\": [[\"9983\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-168",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "In this problem, a String S is composed of lowercase ... | code | {
"ground_truth": "{\"inputs\": [\"S = aeioup??\", \"S = bcdaeiou??\"], \"outputs\": [\"1\", \"0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-19554",
"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": "Chef's encounters with sweets continue with this pro... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4 24\\n2 2\"], \"outputs\": [\"Yes\\nNo\"]}",
"style": "rule"
} | none | {
"id": "arithm",
"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": "Fillomino is a classic logic puzzle. (You do not nee... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 3 1\\n\", \"5\\n1 2 3 4 5\\n\", \"1\\n1\\n\", \"2\\n1 2\\n\", \"3\\n3 2 1\\n\", \"4\\n3 1 4 2\\n\", \"2\\n1 2\\n\", \"104\\n17 61 71 74 98 16 35 27 9 96 84 38 42 104 103 15 24 40 20 29 86 54 77 68 14 92 65 53 75 100 94 63 101 72 78 31 102 18 26 56 13 91 62 58 60 37 49 6 5 99 7... | MEDIUM | {
"id": "taco-train-10864",
"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 team of students from the city S is sent to the Al... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2 2 4 3\", \"3\\n4 1 1\", \"4\\n0 3 0 4\", \"5\\n4 4 3 3 1\", \"5\\n4 3 4 2 4\", \"10\\n2 1 2 3 4 1 3 4 4 4\", \"10\\n2 3 3 1 3 1 3 2 2 4\", \"120\\n1 1 1 1 1 1 1 4 4 1 1 1 1 1 1 1 2 1 1 1 1 1 2 1 1 1 4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 4 1 1 4 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 0 ... | rating_>1900 | {
"id": "356C",
"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": "Petya loves computer games. Finally a game that he's... | code | {
"ground_truth": "{\"inputs\": [\"2 4\\n7 9\\n\", \"3 8\\n17 15 19\\n\", \"2 2\\n99 100\\n\", \"100 10000\\n0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\\n\", \"1... | MEDIUM | {
"id": "taco-train-3783",
"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 has a string consisting of some number of lowercas... | code | {
"ground_truth": "{\"inputs\": [\"aaabccc\\n\", \"bbacc\\n\", \"aabc\\n\", \"aabbcc\\n\", \"aaacccbb\\n\", \"abc\\n\", \"acba\\n\", \"bbabbc\\n\", \"bbbabacca\\n\", \"aabcbcaca\\n\", \"aaaaabbbbbb\\n\", \"c\\n\", \"cc\\n\", \"bbb\\n\", \"bc\\n\", \"ccbcc\\n\", \"aaa\\n\", \"aaccaa\\n\", \"a\\n\", \"b\\n\", \"abca\\n... | EASY | {
"id": "taco-train-6658",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given an array *a* with *n* distinct integer... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 2\", \"4\\n1000 100 10 1\", \"5\\n1 3 4 5 2\", \"1\\n10000000\", \"4\\n1 5 8 4\", \"3\\n1 3 2\", \"4\\n3 1 2 4\", \"12\\n7 1 62 12 3 5 8 9 10 22 23 0\", \"17\\n1 3 2 5 4 6 7 8 10 9 13 11 12 14 15 16 18\", \"22\\n1 3 5 7 22 2 4 6 8 9 10 11 12 13 15 14 17 18 16 20 19 23\", \"22\... | rating_>1900 | {
"id": "891B",
"rating": 2000,
"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": "Vasya studies positional numeral systems. Unfortunat... | code | {
"ground_truth": "{\"inputs\": [\"78 87\\n\", \"1 1\\n\", \"208 997\\n\", \"12 34\\n\", \"104 938\\n\", \"1000 539\\n\", \"840 975\\n\", \"999 1\\n\", \"1 11\\n\", \"9 7\\n\", \"1 999\\n\", \"998 998\\n\", \"1000 1000\\n\", \"450 277\\n\", \"39 269\\n\", \"464 205\\n\", \"333 1\\n\", \"1 466\\n\", \"262 685\\n\", \"... | rating_1401-1600 | {
"id": "49_B. Sum",
"rating": 1500,
"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": "The only difference between easy and hard versions i... | code | {
"ground_truth": "{\"inputs\": [\"3 4\\n4 6\\n10 -2\\n8 -1\\n\", \"3 2\\n300 -300\\n1 299\\n1 123\\n\", \"5 20\\n45 -6\\n34 -15\\n10 34\\n1 27\\n40 -45\\n\", \"20 1000\\n29531 141\\n29892 277\\n29544 141\\n29825 -194\\n29846 164\\n29595 25\\n28975 -249\\n29926 -108\\n29920 -99\\n29232 -238\\n29892 -284\\n29757 270\\... | rating_>1900 | {
"id": "1203_F2. Complete the Projects (hard version)",
"rating": 2300,
"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 integers N and D. Find N positive inte... | code | {
"ground_truth": "{\"inputs\": [\"2 1\\n\", \"3 5\\n\"], \"outputs\": [\"2 3\\n\", \"1 2 8\\n\"]}",
"style": "rule"
} | rating_1601-1900 | {
"id": "530_E. Sum and product",
"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 N activities with their start and finish day gi... | code | {
"ground_truth": "{\"inputs\": [\"N = 2\\r\\nstart[] = {2, 1}\\r\\nend[] = {2, 2}\", \"N = 4\\r\\nstart[] = {1, 3, 2, 5}\\r\\nend[] = {2, 4, 3, 6}\"], \"outputs\": [\"1\", \"3\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-7497",
"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": "This is an interactive problem.\n\nYou're given a tr... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2\\n1 3\\n3 4\\n3 5\\n3\\n5\", \"3 2\\n3 2\\n1 2\\n\", \"2 2\\n1 2\\n\", \"5 5\\n1 2\\n1 3\\n3 4\\n3 5\\n\", \"10 7\\n1 5\\n5 8\\n9 7\\n5 2\\n3 8\\n1 4\\n9 10\\n9 5\\n10 6\\n\", \"5 5\\n1 2\\n1 3\\n5 4\\n3 5\\n\", \"10 7\\n1 5\\n5 8\\n9 7\\n10 2\\n3 8\\n1 4\\n9 10\\n9 5\\n10 6... | rating_>1900 | {
"id": "1174_F. Ehab and the Big Finale",
"rating": 2400,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Chef has an array A of length N consisting of 1 and ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n4\\n1 1 1 1\\n5\\n1 -1 1 -1 1\\n6\\n1 -1 -1 1 1 1\\n2\\n1 -1\\n\"], \"outputs\": [\"2\\n-1\\n1\\n0\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-5345",
"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": "Dexterina and Womandark have been arch-rivals since ... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n0.500000 0.250000 0.250000\\n\", \"9 9\\n0.100000 0.100000 0.100000 0.100000 0.100000 0.100000 0.100000 0.100000 0.100000 0.100000\\n\", \"1000001 5\\n0.000000 0.300000 0.000000 0.500000 0.000000 0.200000\\n\", \"1000000 5\\n0.000000 0.000000 1.000000 0.000000 0.000000 0.00000... | HARD | {
"id": "taco-train-3573",
"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": "Counting was a difficult task in ancient Rome. The A... | code | {
"ground_truth": "{\"inputs\": [\"IV\\nCCCCLXXXXVIIII\\nCDXCIX\", \"VI\\nCCCCLXXXXVIIII\\nCDXCIX\", \"IV\\nCCCILXXXXVICII\\nCDXCIX\", \"IV\\nCCCCLXXXXVIIII\\nCDICXX\", \"VI\\nCXCCLXXCXVIIII\\nCDXCIX\", \"VI\\nCCCILXXXXVICII\\nCDXCIX\", \"VI\\nCXDCLXXCXVIIII\\nCDXCIX\", \"IV\\nCCCILXXXXVIDII\\nCDXCIX\", \"VI\\nCCCILX... | none | {
"id": "p00039 Roman Figure",
"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 password which you often type — a string ... | code | {
"ground_truth": "{\"inputs\": [\"15 4\\nabacabadabacaba\\n\", \"6 3\\naacabc\\n\", \"6 4\\naaaaaa\\n\", \"44 20\\nbcdefghijklmnopqrstabcdefghijklmnopqrstatata\\n\", \"44 20\\ncdefghijklmnopqrstabcdefghijklmnopqrstabtata\\n\", \"44 20\\natatbatsrqponmlkjihgfedcbatsrqponmlkjihgfedc\\n\", \"4 4\\naaaaaa\\n\", \"44 20\... | rating_>1900 | {
"id": "1238_E. Keyboard Purchase",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a positive integer N denoting the length of a s... | code | {
"ground_truth": "{\"inputs\": [\"N = 10\", \"n = 20\"], \"outputs\": [\"2\", \"4\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-15356",
"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": "Taro is not good at hide-and-seek. As soon as you hi... | code | {
"ground_truth": "{\"inputs\": [\"3\\n6 6 3\\n19 7 4\\n21 8 1\\n6\\n5 4 2 11\\n12 4 2 11\\n11 9 2 11\\n14 3 20 5\\n17 9 20 5\\n20 10 20 5\\n0\", \"3\\n6 6 3\\n19 7 4\\n21 8 1\\n6\\n5 4 2 11\\n12 4 2 11\\n11 9 2 11\\n14 3 22 5\\n17 9 20 5\\n20 10 20 5\\n0\", \"3\\n6 6 3\\n19 7 6\\n42 8 1\\n6\\n5 4 2 11\\n12 4 2 11\\n... | none | {
"id": "p00129 Hide-and-Seek Supporting System",
"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": "There are n stones and an array of heights and Geek i... | code | {
"ground_truth": "{\"inputs\": [\"n = 5, k = 3\\r\\nheights = {10, 30, 40, 50, 20}\", \"n = 3, k = 1\\r\\nheights = {10,20,10}\"], \"outputs\": [\"30\", \"20\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-16097",
"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 two numbers X and N, find the smallest value of... | code | {
"ground_truth": "{\"inputs\": [\"X = 9, N = 2\", \"X = 2855, N = 13\"], \"outputs\": [\"10\", \"2860\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-23323",
"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": "Vasya the carpenter has an estate that is separated ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 1\\n3\\n1 2 1\\n\", \"3\\n3 2 1\\n3\\n1 2 3\\n\", \"4\\n4 1 1 1\\n20\\n1 1 1 1 3 1 4 3 2 4 1 4 4 3 4 1 3 4 4 4\\n\", \"4\\n5 1 1 1\\n20\\n4 1 1 3 1 4 4 2 4 4 3 3 1 2 1 2 1 4 2 3\\n\", \"4\\n2 3 5 5\\n20\\n2 1 2 3 2 2 4 3 1 3 4 2 2 4 3 1 1 3 1 4\\n\", \"2\\n4 3\\n20\\n1 1 1 1 1... | rating_>1900 | {
"id": "212_D. Cutting a Fence",
"rating": 2500,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "It is known that in regular dice, the sum of opposit... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3\\n1\\n6\\n\"], \"outputs\": [\"4\\n6\\n1\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-20524",
"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": "In the free-market, ruthlessly capitalist world of t... | code | {
"ground_truth": "{\"inputs\": [\"2 3\\n1 1800 9000 1800\\n1 2000 9200 1600\\n1 2200 9400 1400\\n\", \"2 2\\n1 1800 3600 1800\\n1 1900 3600 1600\\n\", \"3 2\\n1 10 20 1\\n2 20 30 0\\n\"], \"outputs\": [\"1800\\n\", \"impossible\\n\", \"10\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-5259",
"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": "Today there is going to be an unusual performance at... | code | {
"ground_truth": "{\"inputs\": [\"3\\nHTH\", \"9\\nHTHTHTHHT\", \"2\\nTH\", \"4\\nHTTH\", \"4\\nHTHT\", \"7\\nTTTHTTT\", \"8\\nHHTHHTHH\", \"13\\nHTTTHHHTTTTHH\", \"20\\nTTHTHTHHTHTTHHTTTHHH\", \"35\\nTTTTTTHTTHTTTTTHTTTTTTTTTTTHTHTTTTT\", \"120\\nTTTTTTTHTHTHTTTTTHTHTTTTHTTTTTTTTTTTTTTTTTTTTHTTHTTTTHTTHTTTTTTTTTTTT... | rating_1401-1600 | {
"id": "46C",
"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": "You have a string $s$ and a chip, which you can plac... | code | {
"ground_truth": "{\"inputs\": [\"6\\nabcdef\\ncdedcb\\naaa\\naaaaa\\naab\\nbaaa\\nab\\nb\\nabcdef\\nabcdef\\nba\\nbaa\\n\", \"1\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa... | EASY | {
"id": "taco-train-21907",
"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 group of n dancers rehearses a performance for the... | code | {
"ground_truth": "{\"inputs\": [\"3 12 1\\n0 1 0\\n\", \"5 100 1\\n0 1 2 1 2\\n\", \"3 10 12\\n1 2 0\\n\", \"5 55 62\\n0 1 1 0 1\\n\", \"2 100 1\\n2 2\\n\", \"15 24 41\\n0 2 1 1 0 0 1 0 0 0 0 0 0 1 0\\n\", \"2 2 2\\n2 2\\n\", \"20 53 67\\n1 2 1 2 0 0 0 2 2 2 1 0 0 2 0 0 0 1 1 2\\n\", \"3 2 2\\n2 2 2\\n\", \"8 4 13\\... | rating_<=1200 | {
"id": "1040_A. Palindrome Dance",
"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": "Given is an integer N.\nTakahashi chooses an integer... | code | {
"ground_truth": "{\"inputs\": [\"4\\n\", \"5\\n\", \"1\\n\", \"99\\n\", \"100\\n\", \"98\\n\", \"2\\n\", \"3\\n\", \"11\\n\", \"73\\n\", \"64\\n\", \"13\\n\", \"91\\n\", \"90\\n\", \"96\\n\", \"8\", \"11\", \"19\", \"21\", \"3\", \"9\", \"39\", \"-1\", \"53\", \"33\", \"-3\", \"47\", \"69\", \"17\", \"-11\", \"25\"... | EASY | {
"id": "taco-train-10518",
"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": "It is a balmy spring afternoon, and Farmer John's *n... | code | {
"ground_truth": "{\"inputs\": [\"5 2\", \"1 10\", \"100000 2\", \"1 1\", \"8 3\", \"7 1\", \"100000 40000\", \"1 1000\", \"100 45\", \"9 2\", \"456 78\", \"100000 50000\", \"100000 50001\", \"100000 50002\", \"100000 50003\", \"100000 49998\", \"100000 49997\", \"99999 49998\", \"99999 49997\", \"99999 49996\", \"9... | rating_<=1200 | {
"id": "645B",
"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": "[0, 0]\n[0, 1] [1, 1]\n[0, 2] [1, 2] [2, 2]\n[0, ... | code | {
"ground_truth": "{\"inputs\": [\"6\\n13 23 14 24 15 25\\n10\\n00 01 11 02 12 22 03 13 23 33\", \"6\\n13 23 20 24 15 25\\n10\\n00 01 11 02 12 22 03 13 23 33\", \"6\\n13 23 20 24 11 25\\n10\\n00 01 11 02 12 22 03 13 23 33\", \"6\\n13 23 20 24 11 25\\n10\\n00 01 11 02 12 22 03 13 16 33\", \"6\\n16 23 16 16 15 25\\n10\... | none | {
"id": "p00596 Dominoes Arrangement",
"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": "I conducted an exit poll of the shopping amount at a... | code | {
"ground_truth": "{\"inputs\": [\"6\\n12300\\n5600\\n33800\\n0\\n26495\\n52000\", \"6\\n23426\\n5600\\n33800\\n0\\n26495\\n52000\", \"6\\n23426\\n5600\\n33800\\n0\\n17519\\n52000\", \"6\\n23426\\n5600\\n33800\\n0\\n14222\\n52000\", \"6\\n23426\\n5600\\n33800\\n0\\n2007\\n52000\", \"6\\n23426\\n5600\\n33800\\n0\\n200... | none | {
"id": "p00134 Exit Survey",
"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": "Did you know that there are over 40,000 varieties of... | code | {
"ground_truth": "{\"inputs\": [\"3\\n4\\ntilak +\\ntilak +\\ntilak -\\ntilak +\\n3\\nratna +\\nshashi -\\nratna -\\n3\\nbhavani -\\nbhavani +\\nbhavani -\", \"3\\n4\\ntilak +\\ntilak +\\ntilak -\\ntilaj +\\n3\\nratna +\\nshashi -\\nratna -\\n3\\nbhavani -\\nbhavani +\\nbhavani -\", \"3\\n4\\ntilak +\\nkalit +\\ntil... | none | {
"id": "tidrice",
"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 MEX of a set of integers is defined as the small... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"3\", \"1 1\", \"5\", \"1 1 2 2\", \"\"]], \"outputs\": [[\"4\", \"9\"]]}",
"style": "rule"
} | HARD | {
"id": "taco-train-15137",
"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": "There are n+2 people sitting in a line, numbered fro... | code | {
"ground_truth": "{\"inputs\": [\"1073 536 287420\\n351 949 383 114 672 49 652 173 620 570 640 228 167 358 692 905 55 876 197 596 483 50 810 275 878 755 639 14 36 406 379 935 748 160 611 571 946 699 61 676 749 654 1002 732 856 948 1028 563 903 141 1010 586 665 775 1058 237 1055 787 7 846 694 2 374 90 386 247 220 89 ... | MEDIUM | {
"id": "taco-train-12114",
"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": "Polycarp likes numbers that are divisible by 3.\n\nH... | code | {
"ground_truth": "{\"inputs\": [\"3121\\n\", \"6\\n\", \"1000000000000000000000000000000000\\n\", \"201920181\\n\", \"4\\n\", \"10\\n\", \"11\\n\", \"12\\n\", \"13\\n\", \"31\\n\", \"14139582796\\n\", \"1670000\\n\", \"604500\\n\", \"40041\\n\", \"10000170\\n\", \"11\\n\", \"13\\n\", \"31\\n\", \"1670000\\n\", \"10\... | MEDIUM | {
"id": "taco-train-18788",
"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": "Lo and Behold! For you may be surprised by what our ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2\\n3\", \"2\\n2\\n5\", \"2\\n3\\n4\", \"2\\n3\\n3\", \"2\\n4\\n3\", \"2\\n4\\n4\", \"2\\n2\\n10\", \"2\\n4\\n2\", \"2\\n4\\n8\", \"2\\n3\\n11\", \"2\\n4\\n11\", \"2\\n8\\n9\", \"2\\n2\\n11\", \"2\\n2\\n2\", \"2\\n3\\n2\", \"2\\n4\\n21\", \"2\\n16\\n9\", \"2\\n7\\n3\", \"2\\n9\\... | none | {
"id": "spoons",
"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": "An **anagram** is the result of rearranging the lette... | code | {
"ground_truth": "{\"fn_name\": \"is_anagram\", \"inputs\": [[\"foefet\", \"toffee\"], [\"Buckethead\", \"DeathCubeK\"], [\"Twoo\", \"WooT\"], [\"dumble\", \"bumble\"], [\"ound\", \"round\"], [\"apple\", \"pale\"]], \"outputs\": [[true], [true], [true], [false], [false], [false]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-8",
"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": "In this Kata, you will be given a number and your tas... | code | {
"ground_truth": "{\"fn_name\": \"solve\", \"inputs\": [[3], [11], [4], [110], [1110], [3000], [35000], [350000], [3500000], [10000000000]], \"outputs\": [[3], [11], [3], [109], [1109], [2999], [34981], [350003], [3499999], [10000000019]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-23409",
"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 non-empty string s, you may delete at most on... | code | {
"ground_truth": "{\"fn_name\": \"validPalindrome\", \"inputs\": [[\"\\\"aba\\\"\"]], \"outputs\": [true]}",
"style": "rule"
} | EASY | {
"id": "taco-train-4101",
"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 of penalties fine[], an array of car n... | code | {
"ground_truth": "{\"inputs\": [\"N = 4, date = 12\\ncar[] = {2375, 7682, 2325, 2352}\\nfine[] = {250, 500, 350, 200}\", \"N = 3, date = 8\\ncar[] = {2222, 2223, 2224}\\nfine[] = {200, 300, 400}\"], \"outputs\": [\"600\", \"300\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-2234",
"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 n points with integer coordinates on t... | code | {
"ground_truth": "{\"inputs\": [\"4 1\\n0 0\\n1 0\\n0 1\\n1 1\\n\", \"4 1\\n0 0\\n1 0\\n0 1\\n1 1\\n\", \"18 13922\\n-71 6\\n-15 54\\n11 73\\n-99 -82\\n10 -98\\n81 -28\\n8 -70\\n8 24\\n-19 8\\n20 -70\\n31 5\\n-28 -90\\n-50 58\\n100 -34\\n-60 2\\n5 83\\n-22 -55\\n5 32\\n\", \"6 11550\\n6 33\\n-32 -44\\n62 74\\n53 -82... | rating_>1900 | {
"id": "682_E. Alyona and Triangles",
"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": "The only difference between this problem and D2 is t... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1\\n2\\n1 2\\n10\\n2 4\\n2 1\\n5 7\\n3 10\\n8 6\\n6 1\\n1 3\\n4 7\\n9 6\\n\"], \"outputs\": [\"0\\n1\\n2\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-23321",
"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": "Vasya is a Greencode wildlife preservation society p... | code | {
"ground_truth": "{\"inputs\": [\"2 3\", \"2 1\", \"1 1\", \"1 2\", \"1 3\", \"1 4\", \"1 5\", \"1 6\", \"1 98\", \"1 99\", \"1 100\", \"1 1\", \"2 1\", \"3 1\", \"4 1\", \"5 1\", \"6 1\", \"98 1\", \"99 1\", \"100 1\", \"2 2\", \"2 4\", \"2 5\", \"2 6\", \"2 99\", \"2 100\", \"3 2\", \"3 3\", \"3 4\", \"3 5\", \"3 ... | rating_1601-1900 | {
"id": "45J",
"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": "A: Union Ball\n\nProblem Statement\n\nThere are N ba... | code | {
"ground_truth": "{\"inputs\": [\"3\\n4 5 6\", \"3\\n6 5 6\", \"3\\n3 5 6\", \"3\\n6 6 6\", \"3\\n3 6 6\", \"3\\n6 6 2\", \"3\\n6 9 2\", \"3\\n6 0 2\", \"3\\n6 1 2\", \"3\\n6 2 2\", \"3\\n12 2 2\", \"3\\n12 1 2\", \"3\\n10 2 2\", \"3\\n19 2 2\", \"3\\n9 2 2\", \"3\\n9 4 2\", \"3\\n9 4 4\", \"3\\n9 7 4\", \"3\\n9 1 4... | none | {
"id": "p02088 Union 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": "Given two long integers, $\\text{min}$ and $\\textit... | code | {
"ground_truth": "{\"inputs\": [\"1 10\\n\"], \"outputs\": [\"22/7\\n\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-8603",
"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": "Daenerys Targaryen has been suggested by her counsel... | code | {
"ground_truth": "{\"inputs\": [\"3\\n5 3\\n1 2 3 4 5\\n6 2\\n4 4 4 4 4 4\\n7 4 \\n10 10 10 10 50 60 70\"], \"outputs\": [\"VICTORY\\nVICTORY\\nDEFEAT\"]}",
"style": "rule"
} | none | {
"id": "kokt03",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given two arrays: an array $a$ consisting of... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n5 4 6\\n\", \"6 3\\n1 2 3 2 2 3\\n\", \"6 3\\n1 2 4 1 2 3\\n\", \"7 3\\n50 17 81 25 42 39 96\\n\", \"1 1\\n1\\n\", \"1 1\\n1000000000000\\n\", \"3 3\\n14159 26535 89793\\n\", \"7 4\\n1 10000 1 1 1 1 10000\\n\", \"17 10\\n465 868 29 633 291 357 62 929 22 124 182 995 903 75 71 9... | HARD | {
"id": "taco-train-7769",
"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": "Oleg the bank client lives in Bankopolia. There are ... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\n1 2\\n1 3\\n1 4\\n3 4\", \"5 10\\n1 2\\n1 3\\n1 4\\n1 5\\n2 3\\n2 4\\n2 5\\n3 4\\n3 5\\n5 4\", \"4 3\\n1 2\\n1 3\\n1 4\", \"8 12\\n1 2\\n1 3\\n1 4\\n2 3\\n2 4\\n4 5\\n5 6\\n5 7\\n5 8\\n6 7\\n6 8\\n7 8\", \"10 9\\n1 2\\n2 5\\n5 10\\n10 3\\n3 7\\n7 8\\n8 6\\n6 4\\n4 9\", \"8 13\... | rating_>1900 | {
"id": "794D",
"rating": 2400,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "*Recreation of [Project Euler problem #6](https://pro... | code | {
"ground_truth": "{\"fn_name\": \"difference_of_squares\", \"inputs\": [[5], [10], [100]], \"outputs\": [[170], [2640], [25164150]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-22743",
"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": "Dolphin loves programming contests. Today, he will t... | code | {
"ground_truth": "{\"inputs\": [\"9 12\", \"19 0\", \"23 2\", \"9 23\", \"25 0\", \"39 2\", \"7 23\", \"25 1\", \"7 0\", \"79 2\", \"17 -1\", \"145 2\", \"5 0\", \"37 2\", \"62 -1\", \"45 -1\", \"0 0\", \"45 -2\", \"0 -1\", \"54 4\", \"0 -2\", \"-1 -2\", \"4 0\", \"83 0\", \"112 2\", \"541 1\", \"8 4\", \"52 2\", \"... | none | {
"id": "p03773 AtCoder Beginner Contest 057 - Remaining Time",
"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": "Arcady is a copywriter. His today's task is to type ... | code | {
"ground_truth": "{\"inputs\": [\"snow affects sports such as skiing, snowboarding, and snowmachine travel.\\nsnowboarding is a recreational activity and olympic and paralympic sport.\\n\", \"'co-co-co, codeforces?!'\\n\", \"thun-thun-thunder, thunder, thunder\\nthunder, thun-, thunder\\nthun-thun-thunder, thunder\\... | MEDIUM | {
"id": "taco-train-20426",
"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": "Anya and Becky found an N\\times M grid that contain... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 2\\n4 1\\n2 3\\n2 2\\n1 4\\n2 3\\n3 4\\n4 2 11 10\\n6 7 1 9\\n5 12 3 8\\n\"], \"outputs\": [\"4\\n3\\n9\\n\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-8982",
"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": ">When no more interesting kata can be resolved, I jus... | code | {
"ground_truth": "{\"fn_name\": \"distribution_of_candy\", \"inputs\": [[[1, 2, 3, 4, 5]], [[10, 2, 8, 22, 16, 4, 10, 6, 14, 20]]], \"outputs\": [[[6, 6]], [[17, 18]]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-13183",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "You are playing the following Bulls and Cows game wit... | code | {
"ground_truth": "{\"fn_name\": \"getHint\", \"inputs\": [[\"\\\"1807\\\"\", \"\\\"7810\\\"\"]], \"outputs\": [\"3A3B\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-1862",
"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": "Problem :\n\nBaba wants to kill Guruji. He has a mas... | code | {
"ground_truth": "{\"inputs\": [\"12 1\\n731\\n5675\\n7426\\n262\\n1725\\n8945\\n8125\\n1918\\n3230\\n4774\\n8806\\n98\\n1100\\n5794\\n7985\\n2546\\n4757\\n7690\\n3583\\n3566\\n2412\\n5189\\n4992\\n838\\n3678\\n7516\\n8695\\n3731\\n1013\\n656\\n8750\\n2101\\n4060\\n8256\\n5642\\n8749\\n3396\\n6171\\n4815\\n860\\n131... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-21000",
"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": "A sky scraper with 1000 floors has been built in the... | code | {
"ground_truth": "{\"inputs\": [\"front\\n1\\n\", \"back\\n2\\n\", \"front\\n2\\n\", \"back\\n1\\n\", \"kcab\\n2\\n\", \"front\\n0\\n\", \"back\\n4\\n\", \"fronu\\n1\\n\", \"jcab\\n2\\n\", \"ftonr\\n1\\n\", \"back\\n8\\n\", \"fronu\\n0\\n\", \"bacj\\n2\\n\", \"ftonr\\n2\\n\", \"babk\\n8\\n\", \"fqonu\\n0\\n\", \"bac... | rating_<=1200 | {
"id": "120_A. Elevator",
"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": "There are 101 citizens in Chefland. It is election t... | code | {
"ground_truth": "{\"inputs\": [\"3\\n80 19 2\\n20 55 26\\n50 1 50\\n\"], \"outputs\": [\"A\\nB\\nNOTA\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-15837",
"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's younger brother is in town. He's a big footba... | code | {
"ground_truth": "{\"inputs\": [[\"1\", \"1\", \"2 2\"], [\"1\", \"2\", \"2 2\", \"3 3\"], [\"1\", \"2\", \"4 4\", \"5 5\"], [\"1\", \"2\", \"6 6\", \"7 7\"], [\"1\", \"3\", \"2 2\", \"3 3\", \"4 4\"], [\"1\", \"3\", \"5 5\", \"6 6\", \"7 7\"], [\"1\", \"4\", \"2 2\", \"3 3\", \"4 4\", \"5 5\"], [\"1\", \"4\", \"6 6... | MEDIUM_HARD | {
"id": "taco-test-368",
"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": "Today is the final contest of INOI (Iranian National... | code | {
"ground_truth": "{\"inputs\": [\"3 2 998244353\\n\", \"2 2 1000000009\\n\", \"3 1 1000000007\\n\", \"20 10 1000000009\\n\", \"10 9 1000000007\\n\", \"310 228 998244799\\n\", \"194 184 200003077\\n\", \"2 1 1000000007\\n\", \"6 3 999999487\\n\", \"8 8 700001153\\n\", \"500 117 1000000007\\n\", \"7 4 1000000009\\n\",... | rating_>1900 | {
"id": "1439_D. INOI Final Contests",
"rating": 3100,
"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're given Q queries of the form (L, R). \n\nFor e... | code | {
"ground_truth": "{\"inputs\": [\"6\\n1 4\\n9 9\\n5 7\\n12 29\\n137 591\\n1 1000000\\n\", \"20\\n862 928\\n758 964\\n541 789\\n622 943\\n328 900\\n14 764\\n217 972\\n461 847\\n442 468\\n900 986\\n518 529\\n938 993\\n549 851\\n690 944\\n484 601\\n320 910\\n98 868\\n816 915\\n765 880\\n551 770\\n\", \"20\\n862 928\\n7... | rating_>1900 | {
"id": "955_C. Sad powers",
"rating": 2100,
"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": "E --Disappear Drive\n\nStory\n\nThe person in D like... | code | {
"ground_truth": "{\"inputs\": [\"1 0\\n25 47 10\", \"1 0\\n25 47 15\", \"1 0\\n16 47 15\", \"1 0\\n31 47 15\", \"2 0\\n31 47 13\", \"2 0\\n31 47 20\", \"2 0\\n31 47 33\", \"1 0\\n25 38 10\", \"1 0\\n25 61 15\", \"1 0\\n16 57 15\", \"1 0\\n31 18 15\", \"2 0\\n31 47 11\", \"2 0\\n1 47 20\", \"1 0\\n25 58 10\", \"2 0\... | none | {
"id": "p01691 Disappear Drive",
"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": "Recently a Golden Circle of Beetlovers was found in ... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n0 0\\n\", \"2 3\\n1 1\\n\", \"1 10\\n5 3\\n\", \"100000 99737\\n34242 43667\\n\", \"3 3\\n1 0\\n\", \"99871 99873\\n2979 17955\\n\", \"14621 29242\\n7 13\\n\", \"23981 21841\\n10376 10637\\n\", \"36739 36739\\n18369 18369\\n\", \"3 10\\n1 3\\n\", \"2 98763\\n10021 19979\\n\", ... | rating_1601-1900 | {
"id": "1142_A. The Beatles",
"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": "You work in the best consumer electronics corporation... | code | {
"ground_truth": "{\"fn_name\": \"top3\", \"inputs\": [[[\"Computer\", \"Cell Phones\", \"Vacuum Cleaner\"], [3, 24, 8], [199, 299, 399]], [[\"Cell Phones\", \"Vacuum Cleaner\", \"Computer\", \"Autos\", \"Gold\", \"Fishing Rods\", \"Lego\", \" Speakers\"], [5, 25, 2, 7, 10, 3, 2, 24], [51, 225, 22, 47, 510, 83, 82, ... | EASY | {
"id": "taco-train-5966",
"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 well-known art union called \"Kalevich is Alive!\"... | code | {
"ground_truth": "{\"inputs\": [\"5 1\\n1\\n2\\n3\\n4\\n5\\n\", \"4 2\\n2 5\\n3 1\\n5 3\\n10 1\\n\", \"1 2\\n51 44\\n\", \"2 2\\n1 10\\n1 1\\n\", \"1 1\\n66\\n\", \"7 1\\n80\\n92\\n24\\n88\\n40\\n45\\n7\\n\", \"10 3\\n6 10 3\\n2 7 9\\n10 4 7\\n6 3 4\\n6 2 6\\n8 4 4\\n5 9 8\\n6 9 7\\n2 7 10\\n2 6 2\\n\", \"2 2\\n1 1\... | rating_1201-1400 | {
"id": "416_B. Art Union",
"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": "You have a deck of n cards, and you'd like to reorde... | code | {
"ground_truth": "{\"inputs\": [\"4\\n4\\n1 2 3 4\\n5\\n1 5 2 4 3\\n6\\n4 2 5 3 6 1\\n1\\n1\\n\", \"4\\n4\\n2 1 3 4\\n5\\n1 5 2 4 3\\n6\\n4 2 5 3 6 1\\n1\\n1\\n\", \"4\\n4\\n2 1 3 4\\n5\\n1 5 2 4 3\\n6\\n2 4 5 3 6 1\\n1\\n1\\n\"], \"outputs\": [\"\\n4 3 2 1\\n5 2 4 3 1\\n6 1 5 3 4 2\\n1\\n\", \"4 3 2 1\\n5 2 4 3 1\\... | rating_<=1200 | {
"id": "1492_B. Card Deck",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.