data_source stringclasses 3
values | prompt listlengths 2 2 | ability stringclasses 1
value | reward_model dict | sub_source stringclasses 12
values | extra_info dict |
|---|---|---|---|---|---|
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The problem describes the properties of a command li... | code | {
"ground_truth": "{\"inputs\": [\"\\\"RUn.exe O\\\" \\\"\\\" \\\" 2ne, \\\" two! . \\\" \\\"\\n\", \"firstarg second \\\"\\\" \\n\", \"\\\" \\\" \\n\", \"j \\n\", \"B\\n\", \"\\\"7\\\" \\\"W \\\" \\\"\\\" \\\"\\\" \\\"a \\\" \\\"\\\" \\\"\\\" \\\"\\\" y \\n\", \"A\\n\", \"\\\"\\\"\\n\", \"\\\"RUn.exe O... | rating_1201-1400 | {
"id": "291_B. Command Line Arguments",
"rating": 1300,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There are N integers, A_1, A_2, ..., A_N, arranged i... | code | {
"ground_truth": "{\"inputs\": [\"11\\n-1000000000 1000000000 -1000000000 1000000000 -1000000000 0 1000000000 -1000000000 1000000000 -1000000000 1000000000\", \"5\\n10 -4 -8 -11 3\", \"3\\n-10 5 -4\", \"11\\n-1000000000 1000000000 -364513171 1000000000 -1000000000 0 1000000000 -1000000000 1000000000 -1000000000 1000... | none | {
"id": "p03062 AtCoder Beginner Contest 125 - Flipping Signs",
"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": "You are given a rectangular cake, represented as an ... | code | {
"ground_truth": "{\"inputs\": [\"3 4\\nS...\\n....\\n..S.\", \"2 2\\n..\\n..\", \"2 2\\nSS\\nSS\", \"7 3\\nS..\\nS..\\nS..\\nS..\\nS..\\nS..\\nS..\", \"3 5\\n..S..\\nSSSSS\\n..S..\", \"10 10\\nSSSSSSSSSS\\nSSSSSSSSSS\\nSSSSSSSSSS\\nSSSSSSSSSS\\nSSSSSSSSSS\\nSSSSSSSSSS\\nSSSSSSSSSS\\nSSSSSSSSSS\\nSSSSSSSSSS\\nSSSSSS... | rating_<=1200 | {
"id": "330A",
"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": "The only difference between easy and hard versions i... | code | {
"ground_truth": "{\"inputs\": [\"6\\n8\\n1 1 2 2 3 2 1 1\\n3\\n1 3 3\\n4\\n1 10 10 1\\n1\\n26\\n2\\n2 1\\n3\\n1 1 1\\n\", \"6\\n8\\n1 1 2 2 3 2 1 1\\n3\\n1 3 3\\n4\\n1 10 10 1\\n1\\n26\\n2\\n2 2\\n3\\n1 1 1\\n\", \"6\\n8\\n1 1 2 2 3 2 1 1\\n3\\n1 3 2\\n4\\n1 10 10 1\\n1\\n26\\n2\\n2 1\\n3\\n1 1 1\\n\", \"6\\n8\\n1 ... | rating_1601-1900 | {
"id": "1335_E2. Three Blocks Palindrome (hard version)",
"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 array A with size N (indexed from 0... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"2 3\", \"1 2\", \"3 2\", \"1 -2 1\", \"\", \"\"]], \"outputs\": [[\"9\", \"2\"]]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-8115",
"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": "Let's consider a rectangular table R consisting of N... | code | {
"ground_truth": "{\"inputs\": [[\"3\", \"1 1\", \"2 2\", \"2 3\"]], \"outputs\": [[\"2\", \"25\", \"273\"]]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-2090",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a rooted tree with N nodes and the roo... | code | {
"ground_truth": "{\"inputs\": [\"7 7 1\\n1 2\\n2 3\\n2 4\\n2 5\\n5 6\\n6 7\\nU 5 10 2\\nU 4 5 3\\nQ 1 7\\nU 6 7 4\\nQ 2 7\\nQ 1 4\\nQ 2 4\\n\"], \"outputs\": [\"36\\n54\\n5\\n5\\n\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-2029",
"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": "Palindromic characteristics of string s with length ... | code | {
"ground_truth": "{\"inputs\": [\"abacaba\\n\", \"abba\\n\", \"qqqpvmgd\\n\", \"wyemcafatp\\n\", \"qqqpvngd\\n\", \"wyempafatc\\n\", \"abacbaa\\n\", \"abca\\n\", \"wyempaf`tc\\n\", \"acca\\n\", \"aaacaba\\n\", \"qqgvpoqd\\n\", \"`aadaba\\n\", \"acad\\n\", \"qqgvqnqd\\n\", \"aacc\\n\", \"rqfnqwpe\\n\", \"qqqvpngd\\n\... | rating_1601-1900 | {
"id": "835_D. Palindromic characteristics",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a grid of dimension nxm where each cell in the ... | code | {
"ground_truth": "{\"inputs\": [\"grid = {{0,1,2},{0,1,2},{2,1,1}}\", \"grid = {{2,2,0,1}}\"], \"outputs\": [\"1\", \"-1\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-9517",
"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": "Masha really loves algebra. On the last lesson, her ... | code | {
"ground_truth": "{\"inputs\": [\"123 1 2143435 4\\n123 11 -5453 141245\\n\", \"3 2 30 4\\n6 14 25 48\\n\", \"123 1 2143435 4\\n54343 -13 6 124\\n\", \"-100 0 50 1\\n0\\n\", \"-1000 0 10 1\\n5\\n\", \"-3 1 100 1\\n3\\n\", \"1000000000 100000 1000000000 4\\n5433 13 6 0\\n\", \"5 1 5 5\\n1 2 3 4 0\\n\", \"2 -1 6 1\\n2... | rating_1601-1900 | {
"id": "789_B. Masha and geometric depression",
"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": "write me a function `stringy` that takes a `size` and... | code | {
"ground_truth": "{\"fn_name\": \"stringy\", \"inputs\": [[3], [5], [12], [26], [28]], \"outputs\": [[\"101\"], [\"10101\"], [\"101010101010\"], [\"10101010101010101010101010\"], [\"1010101010101010101010101010\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-1560",
"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": "Manao has invented a new mathematical term — a beaut... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n\", \"4 3\\n\", \"21 21\\n\", \"10 1\\n\", \"4 4\\n\", \"1 1\\n\", \"5 5\\n\", \"100 11\\n\", \"16 55\\n\", \"13 71\\n\", \"30 40\\n\", \"6 6\\n\", \"37 42\\n\", \"4 6\\n\", \"1 4\\n\", \"2 10\\n\", \"6 7\\n\", \"28 28\\n\", \"10 6\\n\", \"9 6\\n\", \"2 6\\n\", \"6 4\\n\", \"6... | MEDIUM | {
"id": "taco-test-119",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Vasya has a grid with $2$ rows and $n$ columns. He c... | code | {
"ground_truth": "{\"inputs\": [\"6\\n2\\nRG\\nRB\\n4\\nGRBG\\nGBGB\\n5\\nGGGGG\\nBBBBB\\n7\\nBBBBBBB\\nRRRRRRR\\n8\\nRGBRRGBR\\nRGGRRBGR\\n1\\nG\\nG\\n\", \"1\\n7\\nGGGRRBR\\nGGGRRBB\\n\", \"1\\n55\\nBBBBBBBBBBBBBBBBBBBGGGGGGGGGGGGGGGGGGGGGGGGGGGGBBBBGBGB\\nBBBBBBBBBBBBBBBBBBBGGGGGGGGGGGGGGGGGGGGGGGGGGGGBBBBGBGB\\n... | EASY | {
"id": "taco-train-3511",
"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 an array $a$ consisting of $n$ positiv... | code | {
"ground_truth": "{\"inputs\": [\"5\\n4 3\\n1 2 1 3\\n10 6\\n8 7 1 8 3 7 5 10 8 9\\n5 10\\n20 100 50 20 100500\\n10 25\\n24 24 24 24 24 24 24 24 24 24\\n8 8\\n1 2 3 4 5 6 7 8\\n\", \"1\\n1 1000000000\\n99999999\\n\", \"1\\n5 3\\n20 100 50 20 1005002\\n\", \"1\\n1 1000000000\\n99999999\\n\", \"1\\n5 3\\n20 100 50 20 ... | MEDIUM | {
"id": "taco-train-5235",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The Bubble Cup hypothesis stood unsolved for $130$ y... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2 4\\n\", \"1\\n9\\n\", \"5\\n4 1 8 3 9\\n\", \"6\\n8 7 8 6 8 9\\n\", \"8\\n1 1 7 6 1 5 8 7\\n\", \"7\\n9 6 3 1 3 1 7\\n\", \"3\\n9 2 8\\n\", \"5\\n3 7 3 4 7\\n\", \"5\\n4 8 3 2 6\\n\", \"5\\n2 7 4 8 3\\n\", \"5\\n3 7 3 4 7\\n\", \"100\\n751 557 779 329 39 213 844 289 137 50 951... | HARD | {
"id": "taco-train-10251",
"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": "You are given a directed graph G with n vertices and... | code | {
"ground_truth": "{\"inputs\": [\"5 2\\n1 4\\n2 5\\n\", \"4 5\\n1 2\\n2 3\\n3 1\\n2 4\\n4 1\\n\", \"4 4\\n1 1\\n1 2\\n2 1\\n1 2\\n\", \"4 4\\n1 2\\n2 1\\n3 4\\n4 3\\n\", \"3 4\\n1 2\\n2 1\\n1 3\\n3 1\\n\", \"6 6\\n1 2\\n2 3\\n3 4\\n4 5\\n1 6\\n6 5\\n\", \"3 3\\n1 2\\n3 1\\n3 2\\n\", \"2 1\\n2 1\\n\", \"2 2\\n1 2\\n2... | rating_>1900 | {
"id": "183_C. Cyclic Coloring",
"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 number N, find the N^{th} term in the series ... | code | {
"ground_truth": "{\"inputs\": [\"N = 4\", \"N = 3\"], \"outputs\": [\"10\", \"6\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-6716",
"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 computing, the collection of four bits is called ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n8\\n17\\n52\\n3\"], \"outputs\": [\"Good\\nNot Good\\nGood\\nNot Good\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-11057",
"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": "Dilpreet wants to paint his dog's home that has n boa... | code | {
"ground_truth": "{\"inputs\": [\"n = 5\\nk = 3\\narr[] = {5,10,30,20,15}\", \"n = 4\\nk = 2\\narr[] = {10,20,30,40}\"], \"outputs\": [\"35\", \"60\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-7",
"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": "Write an algorithm that takes an array and moves all ... | code | {
"ground_truth": "{\"fn_name\": \"move_zeros\", \"inputs\": [[[1, 2, 0, 1, 0, 1, 0, 3, 0, 1]], [[9, 0.0, 0, 9, 1, 2, 0, 1, 0, 1, 0.0, 3, 0, 1, 9, 0, 0, 0, 0, 9]], [[\"a\", 0, 0, \"b\", \"c\", \"d\", 0, 1, 0, 1, 0, 3, 0, 1, 9, 0, 0, 0, 0, 9]], [[\"a\", 0, 0, \"b\", null, \"c\", \"d\", 0, 1, false, 0, 1, 0, 3, [], 0, ... | EASY | {
"id": "taco-train-413",
"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": "Chain Disappearance Puzzle\n\nWe are playing a puzzl... | code | {
"ground_truth": "{\"inputs\": [\"1\\n6 9 9 9 9\\n5\\n5 9 5 5 9\\n5 5 6 9 9\\n4 6 3 6 9\\n3 3 2 9 9\\n2 2 1 1 1\\n10\\n3 5 6 5 6\\n2 2 2 8 3\\n6 2 5 9 2\\n7 7 7 6 1\\n4 6 6 4 9\\n8 9 1 1 8\\n5 6 1 8 1\\n6 8 2 1 2\\n9 6 3 3 5\\n5 3 8 8 8\\n5\\n1 2 3 4 5\\n6 7 8 9 1\\n2 3 4 5 6\\n7 8 9 1 2\\n3 4 5 6 7\\n3\\n2 2 8 7 4\... | none | {
"id": "p00774 Chain Disappearance Puzzle",
"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 piles of stones of sizes a1, a2, ..., an... | code | {
"ground_truth": "{\"inputs\": [\"5\\n2 3 4 1 1\\n2\\n2 3\\n\", \"3\\n1 6 8\\n1\\n6\\n\", \"1\\n10\\n5\\n5 3 7 7 1\\n\", \"4\\n7 4 1 7\\n3\\n6 8 3\\n\", \"1\\n1\\n3\\n2 1 10\\n\", \"1\\n1\\n3\\n2 1 10\\n\", \"2\\n2 9\\n5\\n4 10 7 3 4\\n\", \"1\\n10\\n5\\n5 3 7 7 1\\n\", \"1\\n2\\n5\\n7 3 9 8 1\\n\", \"2\\n9 3\\n1\\n... | rating_1601-1900 | {
"id": "227_D. Naughty Stone Piles",
"rating": 1900,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A witch of magic-land captured three prisoners who w... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 2 4\\n2 4 8\\n\\nSAMPLE\", \"100\\n42 688467 12000006334\\n26501 689169 12000015724\\n11479 699358 12000026962\\n24465 675705 12000028145\\n23282 686827 12000009961\\n492 672995 12000011942\\n4828 675436 12000032391\\n14605 673902 12000000153\\n293 682382 12000017421\\n18717 6... | none | {
"id": "witch-the-great-and-powerful-17",
"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": "In this problem, we will deal with binary strings. E... | code | {
"ground_truth": "{\"inputs\": [\"5\\n11011\\n3\\n1 3 3\\n1 4 2\\n1 2 3\\n\", \"1\\n0\\n1\\n1 1 1\\n\", \"3\\n010\\n3\\n1 3 1\\n1 3 1\\n3 2 1\\n\", \"10\\n0100001001\\n10\\n2 5 4\\n10 2 1\\n5 3 5\\n2 9 2\\n5 3 1\\n3 3 3\\n9 8 1\\n5 3 1\\n9 5 2\\n2 3 6\\n\", \"5\\n00010\\n5\\n5 3 1\\n2 1 2\\n4 1 1\\n3 1 3\\n2 1 3\\n\... | HARD | {
"id": "taco-train-21223",
"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": "There are $n$ dormitories in Berland State Universit... | code | {
"ground_truth": "{\"inputs\": [\"3 6\\n10 15 12\\n1 9 12 23 26 37\", \"2 3\\n5 10000000000\\n5 6 9999999999\", \"1 1\\n1\\n1\", \"5 15\\n10 20 30 20 10\\n1 6 10 11 15 30 31 54 60 61 76 80 81 84 90\", \"1 10\\n10\\n1 2 3 4 5 6 7 8 9 10\", \"5 8\\n10 1 1 1 10\\n9 10 11 12 13 14 15 23\", \"1 3\\n10000\\n1 4325 10000\"... | rating_<=1200 | {
"id": "978C",
"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": "Consider a 2d plane and a Robot which is located at (... | code | {
"ground_truth": "{\"inputs\": [\"a = 5, b = 5, x = 11\", \"a = 10, b = 15, x = 25\"], \"outputs\": [\"0\", \"1\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-20521",
"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": "Dwarfs have planted a very interesting plant, which ... | code | {
"ground_truth": "{\"inputs\": [\"1\\n\", \"2\\n\", \"615812227854199662\\n\", \"563324730406715801\\n\", \"856674609788912527\\n\", \"349993003033420740\\n\", \"15\\n\", \"148049062285906746\\n\", \"989464295\\n\", \"6\\n\", \"252509053898415171\\n\", \"1312148742261680\\n\", \"269587448053313253\\n\", \"9313565017... | rating_1201-1400 | {
"id": "186_C. Plant",
"rating": 1300,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Geek is celebrating holi by aiming coloured water bal... | code | {
"ground_truth": "{\"inputs\": [\"st = ABBBCCDEAB\", \"st = AAAAAA\"], \"outputs\": [\"ABBCCDEAB\", \"AA\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-15781",
"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 boss of the Company of Robot is a cruel man. His... | code | {
"ground_truth": "{\"inputs\": [\"4 5\\n1 2\\n2 1\\n1 3\\n2 4\\n3 4\\n1 4\\n\", \"4 6\\n1 2\\n2 1\\n1 3\\n3 1\\n2 4\\n3 4\\n1 4\\n\", \"15 16\\n1 2\\n2 3\\n2 4\\n2 5\\n3 6\\n5 9\\n3 7\\n5 8\\n7 10\\n8 11\\n7 12\\n8 12\\n4 13\\n13 14\\n14 15\\n15 12\\n1 12\\n\", \"10 10\\n4 5\\n9 3\\n3 2\\n3 8\\n2 9\\n9 8\\n9 2\\n7 9... | rating_>1900 | {
"id": "346_D. Robot Control",
"rating": 2600,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Failed Sort - Bug Fixing #4\nOh no, Timmy's Sort does... | code | {
"ground_truth": "{\"fn_name\": \"sort_array\", \"inputs\": [[\"12345\"], [\"54321\"], [\"34251\"], [\"11111\"], [\"10101\"]], \"outputs\": [[\"12345\"], [\"12345\"], [\"12345\"], [\"11111\"], [\"00111\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-20823",
"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": "Not to be confused with [chessboard](https://en.wiki... | code | {
"ground_truth": "{\"inputs\": [\"6\\nparmesan hard\\nemmental hard\\nedam hard\\ncolby hard\\ngruyere hard\\nasiago hard\\n\", \"9\\nbrie soft\\ncamembert soft\\nfeta soft\\ngoat soft\\nmuenster soft\\nasiago hard\\ncheddar hard\\ngouda hard\\nswiss hard\\n\", \"9\\ngorgonzola soft\\ncambozola soft\\nmascarpone sof... | rating_>1900 | {
"id": "952_E. Cheese Board",
"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": "Let's define the sum of two permutations p and q of ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n0 1\\n0 1\\n\", \"2\\n0 1\\n1 0\\n\", \"3\\n1 2 0\\n2 1 0\\n\", \"10\\n3 5 7 0 2 8 9 6 1 4\\n4 3 8 7 9 6 0 5 2 1\\n\", \"8\\n2 3 0 5 4 7 6 1\\n6 3 2 5 0 4 7 1\\n\", \"8\\n5 2 4 6 1 0 3 7\\n7 4 3 0 2 6 1 5\\n\", \"10\\n7 4 6 1 0 9 2 8 5 3\\n4 7 0 5 2 8 9 6 1 3\\n\", \"9\\n8 5 0 1... | rating_>1900 | {
"id": "504_B. Misha and Permutations Summation",
"rating": 2000,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Gregor is learning about RSA cryptography, and altho... | code | {
"ground_truth": "{\"inputs\": [\"2\\n17\\n5\\n\", \"5\\n5\\n7\\n11\\n13\\n19\\n\", \"1\\n55439\\n\", \"2\\n17\\n5\\n\", \"1\\n55439\\n\", \"5\\n5\\n7\\n11\\n13\\n19\\n\", \"1\\n96349\\n\", \"5\\n5\\n7\\n13\\n13\\n19\\n\", \"1\\n185449\\n\", \"1\\n10987\\n\", \"2\\n13\\n5\\n\", \"2\\n11\\n5\\n\", \"1\\n80869\\n\", \... | EASY | {
"id": "taco-train-14144",
"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": "Once Vasya needed to transport *m* goats and *m* wol... | code | {
"ground_truth": "{\"inputs\": [\"3 2\", \"33 3\", \"2 3\", \"100000 100000\", \"100000 4\", \"1 3\", \"97351 58063\", \"76652 89696\", \"2 1\", \"2 2\", \"2 4\", \"39600 21330\", \"3 1\", \"3 3\", \"3 4\", \"18900 52964\", \"4 1\", \"4 2\", \"4 3\", \"4 4\", \"4 5\", \"5 1\", \"5 2\", \"5 3\", \"5 4\", \"5 5\", \"6... | rating_>1900 | {
"id": "45F",
"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": "Chef has a sequence of $N$ integers, $A_1, A_2, ... ... | code | {
"ground_truth": "{\"inputs\": [[\"3\", \"6\", \"1 2 3 4 5 6\", \"3\", \"2 3 4\", \"6\", \"22 5 6 33 1 4\", \"2\", \"4 15\", \"4\", \"1 3 4 2\", \"2\", \"1 2\"], \"2\\n6\\n1 2 3 4 7 6\\n3\\n2 3 4\\n6\\n22 5 6 33 1 4\\n2\\n4 15\", \"2\\n6\\n1 1 3 4 7 6\\n3\\n2 3 4\\n6\\n22 5 6 33 1 4\\n2\\n4 15\", \"2\\n6\\n1 2 3 4 5... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-2759",
"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": "Given two given numbers a and b where 1<= a <= b, fin... | code | {
"ground_truth": "{\"inputs\": [\"a = 1, b = 100\", \"a = 24, b = 576\"], \"outputs\": [\"1 8 27 64\", \"27 64 125 216 343 512\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-6148",
"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": "Theofanis has a string s_1 s_2 ... s_n and a charact... | code | {
"ground_truth": "{\"inputs\": [\"3\\n4 a\\naaaa\\n4 a\\nbaaa\\n4 b\\nbzyx\\n\", \"3\\n4 a\\naaaa\\n4 a\\nbaaa\\n4 b\\nbzyx\\n\", \"1\\n3 a\\naba\\n\", \"3\\n4 `\\naaaa\\n4 a\\nbaaa\\n4 b\\nbzyx\\n\", \"3\\n4 a\\naaaa\\n4 a\\nbaaa\\n4 c\\nbzyx\\n\", \"3\\n4 a\\naaaa\\n4 a\\naaab\\n4 b\\nbzyx\\n\", \"1\\n3 `\\naba\\n... | rating_<=1200 | {
"id": "1594_C. Make Them Equal",
"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": "Chef likes to play with array elements. His teacher ... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"5\", \"2 4 5 7 9\", \"4\", \"5 4 2 3\"]], \"outputs\": [[\"6 11 14 4 2\", \"4 7 6 5\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-5703",
"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": "MTR (subway) stations are common meetup locations in... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n0 1\\n1 2\\n0 2\\n\", \"4 2\\n0 1\\n2 3\\n0 3\\n\"], \"outputs\": [\"1\\n\", \"never meet\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-9983",
"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": "The INI file format is a de facto standard for confi... | code | {
"ground_truth": "{\"inputs\": [\"11\\na= 1\\nb=a\\na = 2\\n ; comment\\n[z]\\n1=2\\n[y]\\n2=3\\n[z]\\n2=1\\n[w]\\n\"], \"outputs\": [\"a=2\\nb=a\\n[w]\\n[y]\\n2=3\\n[z]\\n1=2\\n2=1\\n\"]}",
"style": "rule"
} | rating_>1900 | {
"id": "72_B. INI-file",
"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": "We have a sequence p = {p_1,\\ p_2,\\ ...,\\ p_N} wh... | code | {
"ground_truth": "{\"inputs\": [\"5\\n5 2 3 4 1\\n\", \"5\\n2 4 3 5 1\\n\", \"7\\n1 2 3 4 5 6 7\\n\", \"2\\n1 2\\n\", \"11\\n7 11 8 5 1 9 10 6 3 4 2\\n\", \"6\\n1 2 6 4 5 3\\n\", \"44\\n1 2 3 4 5 6 7 8 9 10 22 12 13 14 15 16 17 18 19 20 21 11 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44\\n\", \"... | EASY | {
"id": "taco-train-7331",
"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 two positive integers n and k, the binary strin... | code | {
"ground_truth": "{\"fn_name\": \"findKthBit\", \"inputs\": [[3, 1]], \"outputs\": [\"0\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-10844",
"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 two strings s and t. The string s cons... | code | {
"ground_truth": "{\"inputs\": [\"6 10\\ncode*s\\ncodeforces\\n\", \"9 6\\ngfgf*gfgf\\ngfgfgf\\n\", \"6 5\\nvk*cup\\nvkcup\\n\", \"1 1\\nv\\nk\\n\", \"2 2\\na*\\nba\\n\", \"2 2\\nab\\nac\\n\", \"1 1\\n*\\na\\n\", \"3 3\\naaa\\naaa\\n\", \"2 3\\naa\\naaa\\n\", \"3 2\\naaa\\naa\\n\", \"5 102\\neyw*y\\neywsnxcwslfyiqbb... | rating_<=1200 | {
"id": "1023_A. Single Wildcard Pattern Matching",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a binary tree, find its height.\nExample 1:\nIn... | code | {
"ground_truth": "{\"inputs\": [\"1\\n / \\\\\\n 2 3\", \"2\\n \\\\\\n 1\\n /\\n 3\"], \"outputs\": [\"2\", \"3\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-14306",
"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 an array of unique numbers. The numbers... | code | {
"ground_truth": "{\"fn_name\": \"rankings\", \"inputs\": [[[1, 3, 2]], [[1, 2, 3, 4, 5]], [[3, 4, 1, 2, 5]], [[10, 20, 40, 50, 30]], [[1, 10]], [[22, 33, 18, 9, 110, 4, 1, 88, 6, 50]]], \"outputs\": [[[3, 1, 2]], [[5, 4, 3, 2, 1]], [[3, 2, 5, 4, 1]], [[5, 4, 2, 1, 3]], [[2, 1]], [[5, 4, 6, 7, 1, 9, 10, 2, 8, 3]]]}"... | EASY | {
"id": "taco-train-11850",
"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 TV show called \"Guess a number!\" is gathering po... | code | {
"ground_truth": "{\"inputs\": [\"4\\n>= 1 Y\\n< 3 N\\n<= -3 N\\n> 55 N\\n\", \"2\\n> 100 Y\\n< -100 Y\\n\", \"1\\n<= -999999999 Y\\n\", \"1\\n< -1000000000 Y\\n\", \"4\\n> 5 N\\n>= -5 Y\\n> -9 Y\\n> -9 Y\\n\", \"10\\n<= -60 N\\n>= -59 Y\\n> 22 Y\\n> 95 N\\n<= 91 Y\\n> 77 Y\\n>= -59 Y\\n> -25 Y\\n>... | rating_1201-1400 | {
"id": "416_A. Guess a number!",
"rating": 1400,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Let us remind you part of the rules of Codeforces. T... | code | {
"ground_truth": "{\"inputs\": [\"5\\nPetr 3 1 490 920 1000 1200 0\\ntourist 2 0 490 950 1100 1400 0\\nEgor 7 0 480 900 950 0 1000\\nc00lH4x0R 0 10 150 0 0 0 0\\nsome_participant 2 1 450 720 900 0 0\", \"1\\nA 0 0 200 0 0 0 0\", \"2\\n12345678901234567890 1 0 200 0 0 0 0\\n_ 1 0 201 0 0 0 0\", \"5\\nAb 0 0 481 900 1... | rating_<=1200 | {
"id": "74A",
"rating": 1000,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "John Smith knows that his son, Thomas Smith, is amon... | code | {
"ground_truth": "{\"inputs\": [\"5\\n100 98 100 100\\n100 100 100 100\\n100 100 99 99\\n90 99 90 100\\n100 98 60 99\\n\", \"6\\n100 80 90 99\\n60 60 60 60\\n90 60 100 60\\n60 100 60 80\\n100 100 0 100\\n0 0 0 0\\n\", \"1\\n15 71 57 86\\n\", \"5\\n4 8 2 6\\n8 3 5 2\\n7 9 5 10\\n7 10 10 7\\n7 6 7 3\\n\", \"8\\n19 12 ... | rating_<=1200 | {
"id": "1017_A. The Rank",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You've got a non-decreasing sequence x1, x2, ..., xn... | code | {
"ground_truth": "{\"inputs\": [\"10 100000 8714 9344\\n3378 14705 17588 22672 32405 34309 37446 51327 81228 94982\\n\", \"3 6 2 2\\n1 4 6\\n\", \"5 24 4 37\\n4 12 17 22 24\\n\", \"100 10000 57 80\\n8 189 347 678 700 816 1003 1066 1170 1237 1260 1343 1368 1514 1669 1684 1877 1905 1932 2014 2098 2267 2268 2280 2695 2... | rating_>1900 | {
"id": "280_E. Sequence Transformation",
"rating": 3000,
"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": "Now you can take online courses in the Berland State... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n1 2 3\\n1 2\\n1 3\\n1 1\\n\", \"9 3\\n3 9 5\\n0\\n0\\n3 9 4 5\\n0\\n0\\n1 8\\n1 6\\n1 2\\n2 1 2\\n\", \"6 2\\n5 3\\n0\\n0\\n0\\n2 2 1\\n1 4\\n1 5\\n\", \"9 2\\n6 9\\n2 3 9\\n0\\n1 8\\n1 6\\n3 3 6 7\\n1 2\\n1 9\\n0\\n0\\n\", \"6 1\\n2\\n0\\n0\\n1 6\\n0\\n1 2\\n0\\n\", \"8 5\\n6... | rating_1401-1600 | {
"id": "770_C. Online Courses In BSU",
"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": "Chang's new maths teacher is very enthusiastic about... | code | {
"ground_truth": "{\"inputs\": [[\"4 4\"]], \"outputs\": [[\"1\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-10143",
"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": "Kenkoooo found a simple connected graph. The vertice... | code | {
"ground_truth": "{\"inputs\": [\"4 3\\n1 2 6\\n2 3 7\\n3 4 5\", \"3 3\\n1 2 3\\n2 3 5\\n1 3 4\", \"8 7\\n1 2 1000000000\\n2 3 2\\n3 4 1000000000\\n4 5 2\\n5 6 1000000000\\n6 7 2\\n7 8 1000000000\", \"4 3\\n1 2 6\\n2 3 7\\n3 4 7\", \"3 3\\n1 2 3\\n2 3 0\\n1 3 4\", \"4 3\\n1 2 6\\n2 3 7\\n3 4 3\", \"4 3\\n1 2 4\\n2 3... | none | {
"id": "p03306 SoundHound Inc. Programming Contest 2018 -Masters Tournament- - + Graph",
"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 are H rows and W columns of white square cells... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n2 1\\n\", \"5 5\\n2 3\\n\", \"2 4\\n2 4\\n\", \"4 8\\n2 3\\n\", \"3 15\\n2 11\\n\", \"10 18\\n7 3\\n\", \"13 13\\n8 10\\n\", \"20 20\\n19 19\\n\", \"19 19\\n5 3\\n\", \"20 3\\n1 3\\n\", \"15 10\\n4 4\\n\", \"18 6\\n13 4\\n\", \"20 20\\n1 1\\n\", \"20 20\\n20 20\\n\", \"1 1\\n1... | EASY | {
"id": "taco-train-14001",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "## Task\n\nYou will receive a string consisting of lo... | code | {
"ground_truth": "{\"fn_name\": \"blocks\", \"inputs\": [[\"heyitssampletestkk\"], [\"dasf6ds65f45df65gdf651vdf5s1d6g5f65vqweAQWIDKsdds\"], [\"SDF45648374RHF8BFVYg378rg3784rf87g3278bdqG\"], [\"\"], [\"aaaaaaaaaa\"]], \"outputs\": [[\"aehiklmpsty-ekst-est\"], [\"adefgqsvwADIKQW1456-dfgsv156-dfs56-dfs56-dfs56-df56-d5-... | EASY | {
"id": "taco-train-15240",
"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": "This function should test if the `factor` is a factor... | code | {
"ground_truth": "{\"fn_name\": \"check_for_factor\", \"inputs\": [[10, 2], [63, 7], [2450, 5], [24612, 3], [9, 2], [653, 7], [2453, 5], [24617, 3]], \"outputs\": [[true], [true], [true], [true], [false], [false], [false], [false]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-10758",
"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": "Nicholas has an array a that contains n distinct int... | code | {
"ground_truth": "{\"inputs\": [\"5\\n4 5 1 3 2\\n\", \"7\\n1 6 5 3 4 7 2\\n\", \"6\\n6 5 4 3 2 1\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"3\\n2 3 1\\n\", \"4\\n4 1 3 2\\n\", \"5\\n1 4 5 2 3\\n\", \"6\\n4 6 3 5 2 1\\n\", \"7\\n1 5 3 6 2 4 7\\n\", \"100\\n76 70 67 54 40 1 48 63 64 36 42 90 99 27 47 17 93 7 13 84 16 57... | EASY | {
"id": "taco-train-25171",
"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": "Gosha is hunting. His goal is to catch as many Pokem... | code | {
"ground_truth": "{\"inputs\": [\"3 2 2\\n1.000 0.000 0.500\\n0.000 1.000 0.500\", \"4 1 3\\n0.100 0.500 0.500 0.600\\n0.100 0.500 0.900 0.400\", \"3 2 0\\n0.412 0.198 0.599\\n0.612 0.987 0.443\", \"8 4 1\\n0.425 0.709 0.507 0.932 0.085 0.389 0.215 0.508\\n0.471 0.825 0.240 0.981 0.184 0.241 0.810 0.711\", \"7 4 4\\... | rating_>1900 | {
"id": "739E",
"rating": 3000,
"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": "For a sequence of strings [t_1, t_2, ..., t_m], let'... | code | {
"ground_truth": "{\"inputs\": [\"2\\na\\na\\n\", \"3\\nddd\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\naaaaaaaabbbbbbbbbbbcccccccccccciiiiiiiiiiiiiiiiiiiiiiooooooooooqqqqqqqqqqqqqqqqqqvvvvvzzzzzzzzzzzz\\n\", \"2\\naa\\na\\n\", \"3\\na\\nb\\nc\\n\", \"2\\nabcd\\naabb\\n\", \"1... | rating_>1900 | {
"id": "1620_G. Subsequences Galore",
"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": "Write a function that returns a sequence (index begin... | code | {
"ground_truth": "{\"fn_name\": \"even_chars\", \"inputs\": [[\"a\"], [\"abcdefghijklm\"], [\"aBc_e9g*i-k$m\"], [\"\"], [\"ab\"], [\"aiqbuwbjqwbckjdwbwkqbefhglqhfjbwqejbcadn.bcaw.jbhwefjbwqkvbweevkj.bwvwbhvjk.dsvbajdv.hwuvghwuvfhgw.vjhwncv.wecnaw.ecnvw.kejvhnw.evjkhweqv.kjhwqeev.kjbhdjk.vbaewkjva\"]], \"outputs\": [... | EASY | {
"id": "taco-train-12094",
"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": "Today, Osama gave Fadi an integer X, and Fadi was wo... | code | {
"ground_truth": "{\"inputs\": [\"1\\n\", \"4\\n\", \"6\\n\", \"2\\n\", \"205078485761\\n\", \"873109054817\\n\", \"518649879439\\n\", \"401021537803\\n\", \"821985629174\\n\", \"614685146646\\n\", \"551519879446\\n\", \"583102513046\\n\", \"690824608515\\n\", \"681460970070\\n\", \"355170254369\\n\", \"924639053494... | rating_1201-1400 | {
"id": "1285_C. Fadi and LCM",
"rating": 1400,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "As a strict big brother, I do limit my young brother ... | code | {
"ground_truth": "{\"fn_name\": \"can_i_play\", \"inputs\": [[9, 10, 11], [12, 12, 13], [13, 10, 15], [14, 9, 14], [15, 8, 12], [20, 21, 1], [21, 21, 6], [17, 15, 3], [0, 22, 1], [1, 22, 1], [3, 23, 2], [20, 0, 23], [14, 2, 9], [9, 20, 11], [23, 23, 0], [11, 2, 9], [0, 20, 23], [4, 0, 3], [6, 2, 10]], \"outputs\": [... | EASY | {
"id": "taco-train-25234",
"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": "Rose loves to play games. This problem is about a ga... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2\\n1 -1\\n3\\n1 0 -1\\n3\\n0 1 2\\n\\nSAMPLE\", \"10\\n2\\n1 -1\\n3\\n1 0 -1\\n3\\n0 1 2\\n37\\n29 33 28 16 -1 11 10 14 6 31 7 35 34 8 15 17 26 12 13 22 1 20 2 21 -1 5 19 9 18 4 25 32 3 30 23 10 27\\n48\\n17 43 20 41 42 15 18 35 -1 31 7 33 23 33 -1 -1 0 33 19 12 42 -1 -1 9 9 -1... | none | {
"id": "roses-game",
"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 standing near a very strange machine. If you... | code | {
"ground_truth": "{\"inputs\": [\"2\\n9 77 69\\n98 99 69\", \"2\\n9 77 69\\n98 73 69\", \"2\\n9 72 69\\n98 3 69\", \"2\\n11 72 69\\n98 3 69\", \"2\\n11 72 69\\n98 2 69\", \"2\\n11 72 69\\n78 2 91\", \"2\\n11 72 69\\n78 2 28\", \"2\\n9 77 69\\n98 99 104\", \"2\\n9 77 69\\n98 116 69\", \"2\\n9 72 53\\n98 73 69\", \"2\... | none | {
"id": "montrans",
"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": "Ram has invented a magic sequence. Each element of t... | code | {
"ground_truth": "{\"inputs\": [[\"1 1\", \"1\", \"1\", \"1\", \"11 12 13 14 15 16 17 18 19 20\"], [\"1 1\", \"1\", \"1\", \"2\", \"1 3 7 15 31 63 127 255 511 1023\"], [\"2 0\", \"1 1\", \"1 1 2 3 5 8 13 21 34 55\"]], \"outputs\": [[\"21 22 23 24 25 26 27 28 29 30\"], [\"2047 4095 8191 16383 32767 65535 131071 26214... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-21218",
"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": "Given a number N. Check whether it is divisible by th... | code | {
"ground_truth": "{\"inputs\": [\"N=18\", \"N=25\"], \"outputs\": [\"1\", \"0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-7164",
"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 brave Knight came to the King and asked permissi... | code | {
"ground_truth": "{\"inputs\": [\"2\\n3 4 2 1\\n\", \"3\\n6 3 2 5 4 1\\n\", \"4\\n1 2 3 4 5 6 7 8\\n\", \"3\\n5 4 1 6 3 2\\n\", \"9\\n16 5 18 7 2 9 4 11 6 13 8 15 10 17 12 1 14 3\\n\", \"4\\n6 5 8 7 2 1 4 3\\n\", \"15\\n11 22 13 24 15 26 17 28 19 30 21 2 23 4 25 6 27 8 29 10 1 12 3 14 5 16 7 18 9 20\\n\", \"2\\n1 4 ... | rating_<=1200 | {
"id": "1510_K. King's Task",
"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": "Josip is a strange painter. He wants to paint a pict... | code | {
"ground_truth": "{\"inputs\": [\"4\\n0001\\n0001\\n0011\\n1110\\n\", \"4\\n1111\\n1111\\n1111\\n1111\\n\", \"8\\n01010001\\n10100011\\n01010111\\n10101111\\n01010111\\n10100011\\n01010001\\n10100000\\n\"], \"outputs\": [\"1\\n0001\\n0001\\n0011\\n1111\\n\", \"6\\n0011\\n0011\\n0111\\n1101\\n\", \"16\\n00000001\\n00... | HARD | {
"id": "taco-train-7235",
"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": "Leonid works for a small and promising start-up that... | code | {
"ground_truth": "{\"inputs\": [\"10 4 1\\nAGCAATTCAT\\nACAT\", \"1 1 0\\nA\\nA\", \"1 1 0\\nA\\nT\", \"1 1 1\\nA\\nT\", \"5 3 0\\nATATA\\nATA\", \"5 3 1\\nATATA\\nATA\", \"7 1 2\\nATGCGTA\\nA\", \"7 1 3\\nATGCGTA\\nA\", \"4 4 0\\nATGC\\nGCTA\", \"4 4 1\\nATGC\\nGCTA\", \"4 4 2\\nATGC\\nGCTA\"], \"outputs\": [\"3\",... | rating_>1900 | {
"id": "528D",
"rating": 2500,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Steve Rogers is fascinated with new vibranium shield... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\n7 3\\n10 3\\n9 8\\n10 3\\n2 8\\n2 8 0\\n2 8 0\\n1 2 0\\n1 9 0\\n\", \"5 6\\n8 3\\n2 10\\n1 5\\n9 10\\n9 10\\n2 8\\n1 9 1\\n1 2 1\\n2 10 3\\n2 10 2\\n1 1 1\\n2 5 2\\n\", \"10 10\\n757507104 866538315\\n132477926 714514369\\n124560461 558537692\\n742608862 963508069\\n71928088 7... | rating_>1900 | {
"id": "704_D. Captain America",
"rating": 3100,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "An English text needs to be encrypted using the foll... | code | {
"ground_truth": "{\"inputs\": [\"haveaniceday\\n\", \"feedthedog \\n\", \"chillout\\n\"], \"outputs\": [\"hae and via ecy\\n\", \"fto ehg ee dd\\n\", \"clu hlt io\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-22605",
"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 all know that the Library of Bookland is the lar... | code | {
"ground_truth": "{\"inputs\": [\"6 5\\n2 1 2\\n2 1 2\\n3 1 2 3\\n2 1 5\\n2 4 4\\n2 4 4\\n\", \"4 3\\n4 3 2 2 1\\n3 1 1 3\\n3 2 3 3\\n2 3 1\\n\", \"4 3\\n1 2\\n1 1\\n3 1 3 2\\n2 1 1\\n\", \"3 5\\n2 1 2\\n2 1 5\\n2 4 4\\n\", \"6 100\\n1 3\\n1 5\\n2 7 5\\n2 7 2\\n3 7 7 2\\n3 7 7 3\\n\", \"10 4\\n2 1 4\\n2 1 4\\n9 1 4 ... | rating_>1900 | {
"id": "876_E. National Property",
"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": "Your mother sends you to market to buy some stuff wh... | code | {
"ground_truth": "{\"inputs\": [\"3\\n305\\n67\\n105\\n\\nSAMPLE\", \"1000\\n30318\\n6697\\n5426\\n10198\\n348\\n10853\\n4268\\n29480\\n8047\\n9300\\n10662\\n2592\\n21013\\n19965\\n28450\\n23691\\n13173\\n23604\\n30893\\n16786\\n9384\\n14343\\n9781\\n2108\\n11302\\n13145\\n4635\\n28980\\n6270\\n28877\\n27017\\n30157... | none | {
"id": "quick-transaction",
"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": "Assume that you have $k$ one-dimensional segments $s... | code | {
"ground_truth": "{\"inputs\": [\"1\\n10\\n1 2\\n1 3\\n1 4\\n2 5\\n2 6\\n3 7\\n3 8\\n4 9\\n4 10\\n\", \"1\\n10\\n1 2\\n1 3\\n1 4\\n2 5\\n2 6\\n3 7\\n3 8\\n4 9\\n7 10\\n\", \"1\\n10\\n1 2\\n1 3\\n2 4\\n2 5\\n2 6\\n3 7\\n3 8\\n4 9\\n4 10\\n\", \"1\\n10\\n1 2\\n1 3\\n4 4\\n2 5\\n2 6\\n3 7\\n3 8\\n6 9\\n4 10\\n\", \"1\\... | HARD | {
"id": "taco-train-14658",
"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": "The Leetcode file system keeps a log each time some u... | code | {
"ground_truth": "{\"fn_name\": \"minOperations\", \"inputs\": [[[\"\\\"d1/\\\"\", \"\\\"d2/\\\"\", \"\\\"../\\\"\", \"\\\"d21/\\\"\", \"\\\"./\\\"\"]]], \"outputs\": [5]}",
"style": "rule"
} | EASY | {
"id": "taco-train-7048",
"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": "Complete the function that takes two integers (`a, b`... | code | {
"ground_truth": "{\"fn_name\": \"between\", \"inputs\": [[1, 4], [-2, 2], [-10, 10], [5, 100]], \"outputs\": [[[1, 2, 3, 4]], [[-2, -1, 0, 1, 2]], [[-10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]], [[5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 2... | EASY | {
"id": "taco-train-24319",
"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's time polar bears Menshykov and Uslada from the ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 3 3 1\", \"5\\n2 4 1 4 8\", \"8\\n1 5 4 12 7 2 10 11\", \"6\\n5 1 2 5 2 4\", \"1\\n1083\", \"10\\n5 5 5 5 5 5 5 5 5 5\", \"6\\n3 8 3 9 3 10\", \"19\\n895 1302 724 952 340 952 939 1302 724 952 939 340 340 1844 770 976 435 1302 1302\", \"7\\n766 766 1477 766 107 1774 990\", \"11... | rating_1201-1400 | {
"id": "471B",
"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": "Constraints\n\n* 1 ≤ |V| ≤ 100\n* 0 ≤ |E| ≤ 9900\n* ... | code | {
"ground_truth": "{\"inputs\": [\"4 6\\n0 1 1\\n0 2 -5\\n1 2 2\\n1 3 4\\n2 3 1\\n3 2 7\", \"4 6\\n0 1 1\\n0 2 5\\n1 2 2\\n1 3 4\\n2 3 1\\n3 2 -7\", \"4 6\\n0 1 1\\n0 2 5\\n1 2 2\\n1 3 4\\n2 3 1\\n3 2 7\", \"4 6\\n0 1 1\\n0 2 5\\n1 2 2\\n1 3 8\\n2 3 1\\n3 2 -7\", \"4 6\\n0 1 1\\n0 3 -5\\n1 2 2\\n1 3 4\\n2 3 1\\n3 2 7... | none | {
"id": "p02363 All Pairs Shortest Path",
"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 string S consisting of N uppercase Englis... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4\\nDCBA\\n7\\nXYZZYZZ\", \"2\\n4\\nDCBA\\n7\\nXYZZYZY\", \"2\\n4\\nDCBA\\n7\\nXZZZYZZ\", \"2\\n4\\nABCD\\n7\\nXYZZYZY\", \"2\\n4\\nCBAD\\n7\\nXYZZYZY\", \"2\\n4\\nCBAD\\n7\\nYZYZZYX\", \"2\\n4\\nCDAB\\n7\\nYZYZZYX\", \"2\\n4\\nCDAB\\n7\\nYZYZZYW\", \"2\\n4\\nDCBA\\n7\\nYZYZZYX\... | none | {
"id": "divgold",
"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\": [\"3\\n6 1 3\\n6 1 4\\n10 1 5\"], \"outputs\": [\"1\\n0\\n3\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-10217",
"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": "The huge maze The Squares has been newly completed i... | code | {
"ground_truth": "{\"inputs\": [\"10 3\\n##########\\n#E.......X\\n##########\\n4 4\\n####\\n#N.#\\n#..X\\n####\\n5 5\\n#####\\n#N..#\\n###.X\\n#S..#\\n#####\\n6 6\\n######\\n#..#X#\\n#.EE.#\\n####N#\\n#....#\\n######\\n8 8\\n##X#####\\n#....E.#\\n#####.##\\n#.#...##\\n#.W.#..#\\n#.#.N#.X\\n#X##.#.#\\n########\\n0 0... | none | {
"id": "p00210 The Squares",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an integer array nums, find the contiguous suba... | code | {
"ground_truth": "{\"fn_name\": \"maxProduct\", \"inputs\": [[[2, 3, -2, 4]]], \"outputs\": [6]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-6479",
"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": "In Byteland it is always the military officer's main... | code | {
"ground_truth": "{\"inputs\": [\"2\\n3\\n0 1 0\\n5\\n0 1 2 0 1\", \"2\\n3\\n0 1 0\\n5\\n0 1 0 0 1\", \"2\\n2\\n0 1 0\\n5\\n0 1 0 0 1\", \"2\\n2\\n0 1 0\\n4\\n0 1 0 0 1\", \"2\\n3\\n0 1 0\\n5\\n0 1 2 0 2\", \"2\\n3\\n0 1 0\\n4\\n0 1 0 0 1\", \"2\\n3\\n0 1 1\\n5\\n0 1 2 0 2\", \"2\\n3\\n0 1 2\\n5\\n0 1 2 0 2\", \"2\\... | none | {
"id": "orders",
"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 a sequence (P_1,P_2,...,P_N) which is ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1\\n3\\n2\\n4\", \"6\\n3\\n2\\n5\\n1\\n4\\n6\", \"8\\n6\\n3\\n1\\n2\\n7\\n4\\n8\\n5\", \"6\\n2\\n3\\n5\\n1\\n4\\n6\", \"8\\n6\\n3\\n2\\n1\\n7\\n4\\n8\\n5\", \"4\\n1\\n4\\n2\\n3\", \"6\\n3\\n1\\n5\\n2\\n4\\n6\", \"4\\n3\\n1\\n2\\n4\", \"8\\n6\\n3\\n1\\n2\\n5\\n4\\n8\\n7\", \"4\\n... | none | {
"id": "p03346 AtCoder Grand Contest 024 - Backfront",
"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 problem statements in [Hindi], [Bengali], [Mand... | code | {
"ground_truth": "{\"inputs\": [\"10\\n15 5 26 4 3 13 5 5 27 11\\n2\\n3\\n2 3 1 4 7 1 5 1 1 1\\n1\\n0 0 0 0 0 0 0 1 0 0\"], \"outputs\": [\"33\\n5\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-1573",
"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": "You are given a permutation of length n. Recall that... | code | {
"ground_truth": "{\"inputs\": [\"4\\n5\\n5 4 1 3 2\\n4\\n1 2 4 3\\n1\\n1\\n4\\n4 3 2 1\\n\", \"1\\n5\\n4 2 3 5 1\\n\", \"1\\n5\\n2 4 3 5 1\\n\", \"4\\n5\\n5 4 1 3 2\\n4\\n1 2 4 3\\n1\\n1\\n4\\n4 3 1 2\\n\", \"1\\n5\\n3 2 4 5 1\\n\", \"4\\n5\\n5 4 1 3 2\\n4\\n1 2 4 3\\n1\\n1\\n4\\n2 3 1 4\\n\", \"1\\n5\\n2 3 4 5 1\\... | rating_1201-1400 | {
"id": "1256_B. Minimize the Permutation",
"rating": 1400,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Alice lives on a line. Today, she will travel to som... | code | {
"ground_truth": "{\"inputs\": [\"4 10\\n3 4 3 3\\n2\\n4 3\\n\", \"5 9\\n4 4 2 3 2\\n5\\n1 4 2 3 5\\n\", \"6 15\\n4 3 5 4 2 1\\n6\\n1 2 3 4 5 6\\n\", \"5 9\\n4 4 2 3 4\\n5\\n1 4 2 3 5\", \"6 15\\n4 3 5 4 2 1\\n6\\n1 2 3 0 5 6\", \"6 15\\n4 3 5 4 2 1\\n6\\n1 2 4 0 5 6\", \"6 15\\n4 3 5 4 0 1\\n6\\n1 2 3 4 5 6\", \"4 ... | VERY_HARD | {
"id": "taco-train-3240",
"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": "There are N balls and N+1 holes in a line. Balls are... | code | {
"ground_truth": "{\"inputs\": [\"1 3 3\", \"1000 100 100\", \"2 1 0\", \"1 6 3\", \"1000 100 000\", \"2 1 -1\", \"1 6 5\", \"1010 100 000\", \"3 1 0\", \"2 6 5\", \"1010 000 000\", \"6 1 0\", \"2 0 5\", \"1010 010 000\", \"1 1 0\", \"2 0 10\", \"1110 010 000\", \"2 0 -1\", \"2 0 20\", \"1110 011 000\", \"2 1 20\", ... | none | {
"id": "p03939 AtCoder Grand Contest 007 - Pushing Balls",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "In genetics a reading frame is a way to divide a sequ... | code | {
"ground_truth": "{\"fn_name\": \"translate_with_frame\", \"inputs\": [[\"AAA\", [1]], [\"AAA\", [2]], [\"AAA\", [-1]], [\"AAAA\", [2]], [\"AGGTGACACCGCAAGCCTTATATTAGC\"], [\"AGGTGACACCGCAAGCCTTATATTAGC\", [1, 2]], [\"AGGTGACACCGCAAGCCTTATATTAGC\", [2, 1]], [\"AGGTGACACCGCAAGCCTTATATTAGC\", []], [\"\"], [\"\", []]],... | EASY | {
"id": "taco-train-23715",
"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": "Awesomeness of a string is defined by a pair of a ch... | code | {
"ground_truth": "{\"inputs\": [\"abbbaaabad\"], \"outputs\": [\"a\\n3\"]}",
"style": "rule"
} | none | {
"id": "iitk1p02",
"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": "Taro made a sugoroku so that everyone can play at th... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3\\n-2\\n1\\n0\\n2\\n4\\n2\\n0\\n-1\\n-2\\n2\\n2\\n-2\\n-2\\n0\", \"3\\n3\\n-2\\n1\\n0\\n2\\n4\\n2\\n1\\n-1\\n-2\\n2\\n2\\n-2\\n-2\\n0\", \"3\\n3\\n-2\\n1\\n0\\n2\\n4\\n2\\n1\\n-1\\n-3\\n2\\n2\\n-2\\n-2\\n0\", \"3\\n3\\n-2\\n1\\n0\\n2\\n4\\n2\\n1\\n-1\\n-3\\n4\\n2\\n-2\\n-2\\n0\... | none | {
"id": "p00257 Making Sugoroku",
"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": "Pinocchio is a very interesting fictional character.... | code | {
"ground_truth": "{\"inputs\": [\"1\\n7\\n1 2 2 3 4 5 5\", \"1\\n7\\n1 2 2 3 5 5 5\", \"1\\n7\\n1 2 2 3 4 5 7\", \"1\\n7\\n2 2 2 3 4 5 7\", \"1\\n7\\n2 2 2 3 5 5 5\", \"1\\n7\\n1 2 2 2 4 5 5\", \"1\\n7\\n1 1 2 3 5 5 5\", \"1\\n7\\n1 2 2 3 5 7 5\", \"1\\n7\\n1 2 2 3 5 9 5\", \"1\\n7\\n1 2 2 3 5 12 5\", \"1\\n7\\n1 2 ... | none | {
"id": "pinoch1",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "ââ¬â¹Given a number x, your task is to find if thi... | code | {
"ground_truth": "{\"inputs\": [\"x = 21\", \"x = 12\"], \"outputs\": [\"YES\", \"NO\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-1805",
"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": "Valera had an undirected connected graph without sel... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n0 1 1\\n\", \"4 2\\n2 0 1 3\\n\", \"3 1\\n0 0 0\\n\", \"5 3\\n0 2 1 2 1\\n\", \"7 3\\n2 2 0 1 3 2 1\\n\", \"9 4\\n2 1 1 3 1 2 2 1 0\\n\", \"3 1\\n0 1 2\\n\", \"2 1\\n1 0\\n\", \"2 1\\n1 1\\n\", \"2 1\\n0 0\\n\", \"4 2\\n0 1 0 1\\n\", \"5 3\\n3 1 4 2 1\\n\", \"5 4\\n1 2 2 2 3\\... | MEDIUM_HARD | {
"id": "taco-train-13504",
"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": "We are observing the movement of $N$ trucks on the r... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n3 1 3 1\\n2 2 1\\n3 3 1 3\\n1 2\\n2 3\\n3 1\\n\", \"2 1\\n4 1 6 3 6\\n7 3 4 2 6 5 6 1\\n1 2\\n\", \"3 4\\n3 1 4 2\\n4 3 4 2 4\\n3 4 1 3\\n1 2\\n2 3\\n3 1\\n1 3\\n\"], \"outputs\": [\"1\\n0\\n2\\n\", \"3\\n\", \"2\\n1\\n2\\n2\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-14755",
"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": "Programmer Rostislav got seriously interested in the... | code | {
"ground_truth": "{\"inputs\": [\"1 10 2\\n\", \"2 4 5\\n\", \"18102 43332383920 28554\\n\", \"19562 31702689720 17701\\n\", \"11729 55221128400 313\\n\", \"5482 100347128000 342\\n\", \"3680 37745933600 10\\n\", \"17098 191120104800 43\\n\", \"10462 418807699200 2\\n\", \"30061 641846400000 3\\n\", \"32 24980397120... | MEDIUM | {
"id": "taco-train-7294",
"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": "Programming teacher Dmitry Olegovich is going to pro... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 3 2\\n\", \"3\\n1 2 3\\n\", \"1\\n1\\n\", \"10\\n1 2 3 4 5 6 7 8 9 10\\n\", \"25\\n1 2 3 23 7 6 19 8 4 10 11 12 13 14 15 16 17 18 5 20 21 22 9 24 25\\n\", \"6\\n1 4 2 5 3 6\\n\", \"14\\n1 14 3 4 2 6 7 8 9 10 5 12 13 11\\n\", \"2\\n1 2\\n\", \"49\\n1 2 3 4 5 6 7 8 9 10 11 12 13... | rating_>1900 | {
"id": "509_F. Progress Monitoring",
"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": "Chef has an array of N integers. He wants to play a ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n-1 -2 -3\\n2\", \"3\\n-2 -2 -3\\n2\", \"3\\n-2 -2 -1\\n2\", \"3\\n-2 0 -1\\n4\", \"3\\n0 1 -2\\n4\", \"3\\n1 0 -1\\n3\", \"3\\n2 3 0\\n2\", \"3\\n-2 -3 -3\\n2\", \"3\\n1 1 -7\\n1\", \"3\\n1 1 -9\\n1\", \"3\\n0 -5 -3\\n2\", \"3\\n-6 -3 -2\\n3\", \"3\\n-8 -3 -2\\n3\", \"3\\n1 -2 -... | none | {
"id": "integ",
"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": "Takahashi is solving quizzes. He has easily solved a... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"3\\n2\\n\", \"2\\n1\\n\", \"2\\n3\\n\", \"3\\n2\", \"1\\n3\", \"3\\n001\", \"3\\n2\", \"1\\n3\", \"3\\n001\", \"1\\n2\", \"3\\n1\"], \"outputs\": [\"2\\n\", \"3\\n\", \"2\\n\", \"1\\n\", \"3\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\... | EASY | {
"id": "taco-train-18865",
"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. In the output sectio... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\nNIE\\nTAK\\nNIE\\nTAK\\nTAK\\nTAK\\n\", \"5 2\\n3 5\\n\", \"4 4\\n1 2 3 4\\n\", \"100000 6\\n33333 33334 33335 66665 66666 66667\\n\", \"100000 23\\n4283 13587 14258 16212 20050 22145 31007 31176 35028 46513 47447 52469 62166 62575 64366 66012 68407 79143 79784 80097 85493 981... | rating_>1900 | {
"id": "810_D. Glad to see you!",
"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": "You are standing on top of an amazing Himalayan mount... | code | {
"ground_truth": "{\"fn_name\": \"sort_photos\", \"inputs\": [[[\"2016.img1\", \"2016.img2\", \"2016.img3\", \"2016.img4\", \"2016.img5\"]], [[\"2016.img4\", \"2016.img5\", \"2016.img1\", \"2016.img3\", \"2016.img2\"]], [[\"2012.img2\", \"2016.img1\", \"2016.img3\", \"2016.img4\", \"2016.img5\"]], [[\"2016.img1\", \... | EASY | {
"id": "taco-train-15107",
"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.