data_source stringclasses 3
values | prompt listlengths 2 2 | ability stringclasses 1
value | reward_model dict | sub_source stringclasses 12
values | extra_info dict |
|---|---|---|---|---|---|
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The match is set and your team is ready to win!\n\nT... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2\\n1 2\\n3\\n2 1 3\"], \"outputs\": [\"YES\\n0\\nNO\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-12310",
"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 given a following process. \n\nThere is a pl... | code | {
"ground_truth": "{\"inputs\": [\"3 9\\n1 1 2 2 2 3 1 2 3\\n\", \"2 5\\n2 1 1 2 1\\n\", \"2 1\\n2\\n\", \"3 5\\n1 1 1 2 3\\n\", \"100 3\\n1 2 3\\n\", \"1 7\\n1 1 1 1 1 1 1\\n\", \"2 4\\n1 2 1 1\\n\", \"2 2\\n2 2\\n\", \"1000 10\\n999 999 998 34 454 546 343 35 34 1000\\n\", \"1 1\\n1\\n\", \"4 9\\n1 2 3 1 2 3 1 2 3\\... | rating_<=1200 | {
"id": "961_A. Tetris",
"rating": 900,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "You are given an array of N integers A[0], A[1], …, A... | code | {
"ground_truth": "{\"inputs\": [\"N = 4, k = 2\\r\\nA = {7, 5, 21, 17}\", \"N = 4, k = 3\\r\\nA = {7, 5, 21, 17}\"], \"outputs\": [\"13\", \"-1\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-4716",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There are N points on the 2D plane, i-th of which is... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 1\\n2 4\\n3 2\", \"2\\n1 1\\n1 1\", \"3\\n1 2\\n2 4\\n3 2\", \"2\\n0 1\\n1 1\", \"2\\n0 0\\n1 1\", \"3\\n1 2\\n1 4\\n3 1\", \"2\\n0 -1\\n1 2\", \"3\\n0 0\\n1 4\\n6 1\", \"3\\n0 0\\n2 4\\n6 1\", \"3\\n0 0\\n2 4\\n9 1\", \"3\\n0 0\\n2 5\\n9 1\", \"3\\n-1 0\\n2 5\\n9 0\", \"3\\n-... | none | {
"id": "p02556 AtCoder Beginner Contest 178 - Dist Max",
"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 Kingdom of Byteland,there are N jewellery shops t... | code | {
"ground_truth": "{\"inputs\": [\"4\\nNYNN \\nYNYY \\nNYNY \\nNYYN \\n878 85 760 579\", \"50 \\t\\nNNNNNNYYYYNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNN \\nNNNNNNNNNNNNNNNNYNNNNNNNYNNNNNNNNNNNNNNNNYYNNNYYNN \\nNNNNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN \\nNNNNNNNYNNNNNNNNNNYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-9325",
"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": "Little Ashish got a lot of strings as his birthday g... | code | {
"ground_truth": "{\"inputs\": [\"3\\naabbccdd\\naabcc\\nhackerearthSAMPLE\", \"7\\ninmobi\\nnirvana\\nfoodpanda\\nsoftwareengineer\\nbackenddevloper\\nuideveloper\\ninmobinirvanafoodpandasoftwareengineerbackenddevloperuideveloper\", \"7\\naaaaaabbbbbbfgggggdddjjjdjddaaabdggzzzzyyy\\nzzzzzzzzzaaaaaaaaaaaabbbbbbbbbbc... | none | {
"id": "sorted-string",
"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": "Write a program which solve a simultaneous equation:... | code | {
"ground_truth": "{\"inputs\": [\"1 2 3 4 5 6\\n2 -1 -2 -1 -1 -5\", \"2 -1 -3 1 -1 -3\\n2 -1 -3 -9 9 27\", \"1 2 3 4 5 6\\n2 -1 -4 -1 -1 -5\", \"2 -1 -3 1 0 -3\\n2 -1 -3 -9 9 27\", \"1 2 3 4 5 5\\n2 -1 -4 -1 -1 -5\", \"3 -1 -3 1 0 -3\\n2 -1 -3 -9 9 27\", \"1 2 3 4 5 4\\n2 -1 -4 -1 -1 -5\", \"3 -1 -3 1 0 -3\\n2 -1 -3... | none | {
"id": "p00004 Simultaneous Equation",
"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": "Write a program to take two numbers as input and pri... | code | {
"ground_truth": "{\"inputs\": [[\"82\", \"28\"]], \"outputs\": [[\"54\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-16610",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Consider the following equation: \n\nLet's find all ... | code | {
"ground_truth": "{\"inputs\": [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\", \"13\", \"14\", \"15\", \"16\", \"17\", \"18\", \"19\", \"20\", \"21\", \"22\", \"23\", \"24\", \"25\", \"26\", \"27\", \"28\", \"29\", \"30\", \"31\", \"32\", \"33\", \"34\", \"35\", \"36\", \"37\"... | rating_>1900 | {
"id": "225E",
"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": "We make a tower by stacking up blocks. The tower con... | code | {
"ground_truth": "{\"inputs\": [\"5 2\", \"4 2\", \"5 4\", \"4 8\", \"6 8\", \"10 8\", \"10 4\", \"15 3\", \"29 3\", \"29 5\", \"3 7\", \"1 14\", \"2 11\", \"29 6\", \"18 7\", \"51 6\", \"58 6\", \"11 16\", \"31 16\", \"27 16\", \"24 8\", \"51 7\", \"23 60\", \"44 6\", \"31 23\", \"21 61\", \"47 16\", \"37 23\", \"3... | none | {
"id": "p00389 Pilling Blocks",
"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": "ZS the Coder has drawn an undirected graph of n vert... | code | {
"ground_truth": "{\"inputs\": [\"5 5 13 0 4\\n0 1 5\\n2 1 2\\n3 2 3\\n1 4 0\\n4 3 4\\n\", \"2 1 123456789 0 1\\n0 1 0\\n\", \"2 1 999999999 1 0\\n0 1 1000000000\\n\", \"7 9 999999999 0 3\\n0 1 0\\n1 2 0\\n2 3 0\\n0 4 1\\n4 1 1\\n1 5 499999999\\n5 2 499999999\\n2 6 1\\n6 3 1\\n\", \"7 9 320 0 3\\n0 1 0\\n1 2 0\\n2 3... | rating_>1900 | {
"id": "716_D. Complete The Graph",
"rating": 2300,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given time in 24-hour format, convert it to words. \n... | code | {
"ground_truth": "{\"fn_name\": \"solve\", \"inputs\": [[\"13:00\"], [\"13:09\"], [\"13:15\"], [\"13:29\"], [\"13:30\"], [\"13:31\"], [\"13:45\"], [\"13:59\"], [\"00:48\"], [\"00:08\"], [\"12:00\"], [\"00:00\"], [\"19:01\"], [\"07:01\"], [\"01:59\"], [\"12:01\"], [\"00:01\"], [\"11:31\"], [\"23:31\"], [\"11:45\"], [... | EASY | {
"id": "taco-train-7181",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "As I was cleaning up the warehouse, I found an old d... | code | {
"ground_truth": "{\"inputs\": [\"3\\n6\\n-1\", \"3\\n2\\n-1\", \"3\\n3\\n-1\", \"3\\n1\\n-1\", \"3\\n5\\n-1\", \"3\\n4\\n-1\", \"3\\n-1\\n-1\", \"3\\n8\\n-1\", \"3\\n11\\n-1\", \"3\\n21\\n-1\", \"3\\n39\\n-1\", \"3\\n47\\n-1\", \"3\\n41\\n-1\", \"3\\n74\\n-1\", \"3\\n140\\n-1\", \"3\\n19\\n-1\", \"3\\n13\\n-1\", \"... | none | {
"id": "p00076 Treasure Hunt II",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Taum is planning to celebrate the birthday of his fr... | code | {
"ground_truth": "{\"inputs\": [\"5\\n10 10\\n1 1 1\\n5 9\\n2 3 4\\n3 6\\n9 1 1\\n7 7\\n4 2 1\\n3 3\\n1 9 2\\n\"], \"outputs\": [\"20\\n37\\n12\\n35\\n12\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-7728",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a huge integer $a$ consisting of $n$ d... | code | {
"ground_truth": "{\"inputs\": [\"3\\n0709\\n1337\\n246432\\n\", \"1\\n1003\\n\", \"1\\n1003\\n\", \"1\\n890\\n\", \"3\\n477\\n1337\\n246432\\n\", \"1\\n454\\n\", \"3\\n477\\n1216\\n246432\\n\", \"1\\n638\\n\", \"3\\n716\\n1216\\n246432\\n\", \"1\\n540\\n\", \"3\\n716\\n1336\\n246432\\n\", \"1\\n119\\n\", \"3\\n469\... | MEDIUM_HARD | {
"id": "taco-train-24156",
"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": "As you know, all the kids in Berland love playing wi... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n5 8 5\\n\", \"3 4\\n2 2 4\\n\", \"5 3\\n8 3 2 6 3\\n\", \"1 1000\\n2153\\n\", \"4 3\\n10000 3 3 3\\n\", \"56 253\\n818 817 817 818 817 818 817 817 818 818 817 817 818 817 817 817 817 817 818 817 818 818 818 817 817 818 818 818 817 817 818 817 817 818 818 817 818 818 817 817 81... | rating_1201-1400 | {
"id": "479_B. Towers",
"rating": 1400,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Example\n\nInput\n\n4 3\n1000 1\n2000 2\n3000 3\n\n\... | code | {
"ground_truth": "{\"inputs\": [\"4 3\\n1000 1\\n2000 2\\n3000 3\", \"8 3\\n1000 1\\n2000 2\\n3000 3\", \"8 3\\n1010 1\\n2889 2\\n3000 5\", \"9 3\\n1010 1\\n2889 2\\n4734 5\", \"9 3\\n1010 2\\n2889 2\\n4734 5\", \"4 3\\n1000 1\\n2000 2\\n3000 1\", \"8 3\\n1000 1\\n2889 2\\n439 3\", \"16 3\\n1010 1\\n2889 2\\n3000 3\... | none | {
"id": "p00948 Distribution Center",
"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": "Vasya lives in a strange world. The year has *n* mon... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2\\n2 2\", \"5\\n3\\n3 4 3\", \"31\\n12\\n31 28 31 30 31 30 31 31 30 31 30 31\", \"1\\n1\\n1\", \"1\\n2\\n1 1\", \"2\\n2\\n1 1\", \"10\\n2\\n10 2\", \"10\\n3\\n6 3 6\", \"10\\n4\\n8 7 1 5\", \"10\\n5\\n2 7 8 4 4\", \"10\\n6\\n8 3 4 9 6 1\", \"10\\n7\\n10 5 3 1 1 9 1\", \"10\\n8\... | rating_<=1200 | {
"id": "182B",
"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": "Petya recently found a game \"Choose a Square\". In ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n3 3 0\\n3 3 -3\\n0 2 -1\\n3 1 3\\n0 0 -2\\n\", \"6\\n0 0 2\\n1 0 -5\\n1 1 3\\n2 3 4\\n1 4 -4\\n3 1 -1\\n\", \"10\\n10 0 -1\\n1 10 -4\\n3 6 3\\n4 2 -5\\n10 7 -1\\n3 7 3\\n3 7 -2\\n8 10 4\\n5 0 -1\\n2 3 3\\n\", \"4\\n0 0 -1\\n0 1 1\\n1 0 -2\\n1 1 -1\\n\", \"10\\n0 1 1\\n3 4 1\\n1 ... | rating_>1900 | {
"id": "1221_F. Choose a Square",
"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": "Masha lives in a multi-storey building, where floors... | code | {
"ground_truth": "{\"inputs\": [\"1 6 6 2 1 1\\n\", \"5 1 4 4 2 1\\n\", \"4 1 7 4 1 2\\n\", \"437 169 136 492 353 94\\n\", \"188 288 112 595 331 414\\n\", \"333 334 333 572 331 1\\n\", \"99 6 108 25 3 673\\n\", \"2 4 2 2 1 1\\n\", \"1 1000 1 1000 1000 1\\n\", \"519 706 467 8 4 180\\n\", \"256 45 584 731 281 927\\n\"... | rating_<=1200 | {
"id": "1054_A. Elevator or Stairs?",
"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": "Professor Snape has lots of potions. Bottles contain... | code | {
"ground_truth": "{\"inputs\": [\"3\\n4 5\\n10 12\\n10 20\", \"3\\n4 5\\n10 12\\n0 20\", \"3\\n1 5\\n10 12\\n0 20\", \"3\\n1 5\\n10 23\\n0 20\", \"3\\n1 5\\n10 23\\n0 30\", \"3\\n1 5\\n8 23\\n0 30\", \"3\\n1 5\\n8 23\\n0 41\", \"3\\n1 5\\n8 23\\n0 69\", \"3\\n1 5\\n8 23\\n0 115\", \"3\\n1 3\\n8 23\\n0 115\", \"3\\n5... | none | {
"id": "snape",
"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": "Leo Jr. draws pictures in his notebook with checkere... | code | {
"ground_truth": "{\"inputs\": [\"4\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"5\\n\", \"17\\n\", \"6\\n\", \"7\\n\", \"8\\n\", \"9\\n\", \"10\\n\", \"11\\n\", \"12\\n\", \"13\\n\", \"14\\n\", \"16\\n\", \"23\\n\", \"3\\n\", \"500\\n\", \"7\\n\", \"23\\n\", \"496\\n\", \"13\\n\", \"6\\n\", \"1\\n\", \"14\\n\", \"499\\n\"... | MEDIUM | {
"id": "taco-train-23884",
"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": "Snuke has N dogs and M monkeys. He wants them to lin... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n\", \"3 2\\n\", \"1 8\\n\", \"100000 100000\\n\"], \"outputs\": [\"8\\n\", \"12\\n\", \"0\\n\", \"530123477\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-17182",
"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 an array a_1, a_2 ... a_n. Calculate t... | code | {
"ground_truth": "{\"inputs\": [\"2\\n5\\n2 2 2 2 2\\n6\\n1 3 3 1 2 3\\n\", \"2\\n5\\n2 2 2 4 2\\n6\\n1 3 3 1 2 3\\n\", \"2\\n5\\n2 2 3 4 2\\n6\\n2 3 3 1 2 3\\n\", \"2\\n5\\n2 2 3 4 2\\n6\\n2 4 3 1 2 3\\n\", \"2\\n5\\n2 2 2 2 2\\n6\\n1 5 3 1 2 3\\n\", \"2\\n5\\n4 2 2 4 2\\n6\\n1 3 3 1 2 3\\n\", \"2\\n5\\n2 2 2 4 2\\... | rating_1601-1900 | {
"id": "1400_D. Zigzags",
"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": "n participants of the competition were split into m ... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n\", \"6 3\\n\", \"5 1\\n\", \"10 2\\n\", \"1000000 1000\\n\", \"38447 383\\n\", \"1000000000 1\\n\", \"1000000000 32170\\n\", \"5000000 12\\n\", \"1833 195\\n\", \"1000000000 999999999\\n\", \"999999999 500000000\\n\", \"599222887 298488\\n\", \"10 6\\n\", \"1 1\\n\", \"100000... | rating_1201-1400 | {
"id": "478_B. Random Teams",
"rating": 1300,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a dataset consisting of $N$ items. Eac... | code | {
"ground_truth": "{\"inputs\": [[\"3\", \"3\", \"abc 0\", \"abc 1\", \"efg 1\", \"7\", \"fck 1\", \"fck 0\", \"fck 1\", \"body 0\", \"body 0\", \"body 0\", \"ram 0\", \"5\", \"vv 1\", \"vv 0\", \"vv 0\", \"vv 1\", \"vv 1\", \"\"]], \"outputs\": [[\"2\", \"6\", \"3\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-12377",
"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": "Monocarp has got two strings s and t having equal le... | code | {
"ground_truth": "{\"inputs\": [\"1\\na\\nb\\n\", \"8\\nbabbaabb\\nabababaa\\n\", \"4\\nabab\\naabb\\n\", \"10\\naaaaaaaaaa\\nbbbbbbbbbb\\n\", \"101\\nbabbbbabbbbaabbbbbbbabbbababababbbbbbbbabaababbababbaaabbababbbbbbbbbaabbbababbbbbabbbbbabbbaabbbaabb\\nbbabbbbbbabbbbbbbbbbbabbbbbbbbbbabbabbbbbbbbbbbabbababbbabbabb... | rating_1401-1600 | {
"id": "1215_C. Swap Letters",
"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": "We all know the impressive story of Robin Hood. Robi... | code | {
"ground_truth": "{\"inputs\": [\"4 1\\n1 1 4 2\\n\", \"3 1\\n2 2 2\\n\", \"10 20\\n6 4 7 10 4 5 5 3 7 10\\n\", \"30 7\\n3 3 2 2 2 2 3 4 4 5 2 1 1 5 5 3 4 3 2 1 3 4 3 2 2 5 2 5 1 2\\n\", \"2 0\\n182 2\\n\", \"123 54564\\n38 44 41 42 59 3 95 15 45 32 44 69 35 83 94 57 65 85 64 47 24 20 34 86 26 91 98 12 36 96 80 4 70... | HARD | {
"id": "taco-test-230",
"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": "Bob has a permutation of integers from 1 to *n*. Den... | code | {
"ground_truth": "{\"inputs\": [\"2\\n0 1\\n1 0\", \"5\\n0 2 2 1 2\\n2 0 4 1 3\\n2 4 0 1 3\\n1 1 1 0 1\\n2 3 3 1 0\", \"10\\n0 1 5 2 5 3 4 5 5 5\\n1 0 1 1 1 1 1 1 1 1\\n5 1 0 2 6 3 4 6 6 6\\n2 1 2 0 2 2 2 2 2 2\\n5 1 6 2 0 3 4 8 8 7\\n3 1 3 2 3 0 3 3 3 3\\n4 1 4 2 4 3 0 4 4 4\\n5 1 6 2 8 3 4 0 9 7\\n5 1 6 2 8 3 4 9 ... | rating_<=1200 | {
"id": "618B",
"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": "Given an alphanumeric string made up of digits and l... | code | {
"ground_truth": "{\"inputs\": [[\"1\", \"ab1231da\"]], \"outputs\": [[\"7\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-16395",
"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": "You are given an array A of N positive and/or negativ... | code | {
"ground_truth": "{\"inputs\": [\"N = 6, K = 5\\n arr[] = {4, 5, 0, -2, -3, 1}\", \"N = 6, K = 2\\n arr[] = {2, 2, 2, 2, 2, 2}\"], \"outputs\": [\"7\", \"21\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-20810",
"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": "Vasya has two arrays $A$ and $B$ of lengths $n$ and ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n11 2 3 5 7\\n4\\n11 7 3 7\\n\", \"2\\n1 2\\n1\\n100\\n\", \"3\\n1 2 3\\n3\\n1 2 3\\n\", \"49\\n18 1 7 2 1 1 50 22 8 2 2 1 30 2 46 10 1 4 5 18 25 21 38 11 2 15 29 8 7 2 45 12 14 16 16 23 11 1 1 4 48 18 3 1 1 23 4 10 7\\n50\\n5 25 34 22 19 4 4 2 40 52 1 4 1 3 47 9 4 1 8 47 4 5 1 1... | MEDIUM_HARD | {
"id": "taco-train-9628",
"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": "Your competitors are in possession of a mysterious a... | code | {
"ground_truth": "{\"inputs\": [\"3 1\\n110\\n011\\n\", \"4 2\\n1000\\n1000\\n0000\\n0010\\n\", \"1000 0\\n\"], \"outputs\": [\"2\\n\", \"0\\n\", \"864722\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-2541",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There are N non-negative integers written on the bla... | code | {
"ground_truth": "{\"inputs\": [\"3 4\\n10 13 22\", \"1 100\\n10\", \"10 123456789012345678\\n228344079825412349 478465001534875275 398048921164061989 329102208281783917 779698519704384319 617456682030809556 561259383338846380 254083246422083141 458181156833851984 502254767369499613\", \"2 2\\n5 7\", \"1 000\\n10\",... | none | {
"id": "p03500 AtCoder Regular Contest 086 - Shift and Decrement",
"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": "# Task\n Initially a number `1` is written on a board... | code | {
"ground_truth": "{\"fn_name\": \"number_increasing\", \"inputs\": [[1], [2], [3], [4], [5], [6], [100], [101], [12345], [54321]], \"outputs\": [[true], [false], [true], [false], [false], [true], [false], [true], [false], [true]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-836",
"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": "Boboniu has a directed graph with n vertices and m e... | code | {
"ground_truth": "{\"inputs\": [\"5 5 1\\n1 4 1\\n5 1 2\\n2 5 3\\n4 3 4\\n3 2 5\\n\", \"4 6 3\\n4 2 1\\n1 2 2\\n2 4 3\\n4 1 4\\n4 3 5\\n3 1 6\\n\", \"6 13 4\\n3 5 1\\n2 5 2\\n6 3 3\\n1 4 4\\n2 6 5\\n5 3 6\\n4 1 7\\n4 3 8\\n5 2 9\\n4 2 10\\n2 1 11\\n6 1 12\\n4 6 13\\n\", \"9 60 9\\n8 4 1\\n2 6 2\\n4 3 3\\n2 9 4\\n6 7... | rating_>1900 | {
"id": "1394_B. Boboniu Walks on Graph",
"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": "Problem\n\nAlice and Bob are competing in the 50m da... | code | {
"ground_truth": "{\"inputs\": [\"9 8 1000 999\", \"9 8 2849 -1\", \"9 8 1000 1000\", \"9 8 1000 1674\", \"9 9 2849 -1\", \"9 9 2849 0\", \"9 8 1000 1100\", \"9 8 1000 3269\", \"9 8 1000 1101\", \"9 8 1000 5146\", \"10 9 2849 0\", \"9 11 1000 1101\", \"9 8 1000 9934\", \"10 9 2232 0\", \"9 11 1000 1100\", \"9 8 0000... | none | {
"id": "p02162 AOJ50M",
"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 three integers, A, B and C.\n\nAmong t... | code | {
"ground_truth": "{\"inputs\": [\"5 7 5\\n\", \"1 1 7\\n\", \"-100 100 100\\n\", \"5 8 5\", \"5 14 5\", \"1 1 4\", \"5 13 5\", \"1 1 5\", \"5 9 5\", \"5 12 5\", \"5 6 5\", \"1 1 15\", \"5 16 5\", \"1 1 25\", \"1 1 40\", \"0 0 7\", \"1 1 3\", \"1 1 2\", \"5 18 5\", \"1 1 46\", \"5 29 5\", \"1 1 55\", \"-25 100 100\",... | EASY | {
"id": "taco-train-12002",
"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 has a binary string S. He can replace any occur... | code | {
"ground_truth": "{\"inputs\": [\"3\\nab\\naa\\nabb\\n\"], \"outputs\": [\"2\\n1\\n2\\n\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-22875",
"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": "Bob loves everything sweet. His favorite chocolate b... | code | {
"ground_truth": "{\"inputs\": [\"3\\n0 1 0\\n\", \"5\\n1 0 1 0 1\\n\", \"100\\n1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1\\n\", \"100\\n0 1 0 1 1 0 1 0 1 0 0 0... | rating_1201-1400 | {
"id": "617_B. Chocolate",
"rating": 1300,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There is a deck of $n$ cards. The $i$-th card has a ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n3 10\\n6 4\\n1 9\\n5 8\\n2 7\\n\", \"2\\n1 2\\n3 4\\n\", \"3\\n1 2\\n3 6\\n4 5\\n\", \"1\\n1 2\\n\", \"3\\n3 5\\n4 1\\n2 6\\n\", \"4\\n5 4\\n6 2\\n7 1\\n8 3\\n\", \"5\\n8 5\\n10 3\\n4 7\\n6 9\\n1 2\\n\", \"6\\n9 8\\n10 7\\n4 6\\n12 11\\n5 3\\n2 1\\n\", \"10\\n11 16\\n15 14\\n7 5... | VERY_HARD | {
"id": "taco-train-6729",
"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": "In Aizuwakamatsu City, there is a first city called ... | code | {
"ground_truth": "{\"inputs\": [\"1593 4311\\n4321 2155\\n1256 6421\\n5310 1455\\n2152 5421\\n1549 3386\\n4528 3719\\n1234 4321\\n3330 3109\\n2739 2199\\n0 0\", \"1593 4311\\n4321 2155\\n1256 6421\\n5310 1455\\n2152 5421\\n1549 3386\\n4528 1578\\n1234 4321\\n3330 3109\\n2739 2199\\n0 0\", \"1593 4311\\n4321 2155\\n1... | none | {
"id": "p00195 What is the Most Popular Shop in Tokaichi?",
"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 several queries. Each query consists o... | code | {
"ground_truth": "{\"inputs\": [\"2\\n6 12 10\\n4 3 10\\n\", \"4\\n1 1 2\\n9 36 2\\n4 12 3\\n3 5 4\\n\", \"10\\n10 5 3\\n1 7 10\\n7 5 7\\n4 4 9\\n6 5 2\\n6 7 5\\n9 9 7\\n7 5 5\\n6 6 4\\n10 8 2\\n\", \"10\\n1 3 10\\n6 2 6\\n2 3 9\\n7 8 4\\n5 6 10\\n1 2 7\\n0 3 6\\n9 3 4\\n4 4 9\\n10 9 10\\n\", \"10\\n10 8 5\\n0 6 9\\... | MEDIUM_HARD | {
"id": "taco-train-17982",
"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": "Golorps are mysterious creatures who feed on variabl... | code | {
"ground_truth": "{\"inputs\": [\"?(_-_/___*__):-___>__.\\n\", \"?(__-_+_/_____):-__>__,_____<__.\\n\", \"?(______________________/____+_______*__-_____*______-___):-__<___,___<____,____<_____,_____<______,______<_______.\\n\", \"?(__+___+__-___):-___>__.\\n\", \"?(__*___+_-____):-___>__,____<__.\\n\", \"?(__):-__>_... | VERY_HARD | {
"id": "taco-train-14174",
"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 ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Recently, Masha was presented with a chessboard with... | code | {
"ground_truth": "{\"inputs\": [\"5\\n2 2\\n1 1 2 2\\n1 1 2 2\\n3 4\\n2 2 3 2\\n3 1 4 3\\n1 5\\n1 1 5 1\\n3 1 5 1\\n4 4\\n1 1 4 2\\n1 3 4 4\\n3 4\\n1 2 4 2\\n2 1 3 3\\n\", \"1\\n3456 4567\\n1 234 678 1000\\n346 903 1005 2003\\n\", \"1\\n3456 4567\\n1 234 678 1000\\n346 903 1005 2003\\n\", \"5\\n2 2\\n1 1 2 2\\n1 1 2... | MEDIUM | {
"id": "taco-train-12680",
"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": "Jonas is developing the JUxtaPhone and is tasked wit... | code | {
"ground_truth": "{\"inputs\": [\"315\\n45\\n\", \"180\\n270\\n\", \"45\\n270\\n\"], \"outputs\": [\"90\\n\", \"90\\n\", \"-135\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-2723",
"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": "1) Rama is late to college as usual. As he went on ... | code | {
"ground_truth": "{\"inputs\": [\"20\\n3\\n88 7439 88 \\n5\\n8801 8801 2157 4596 4596 \\n3\\n1377 5701 1377 \\n9\\n1860 1860 4126 72 72 6086 6086 7394 7394 \\n5\\n985 985 9625 1899 1899 \\n7\\n6013 6013 146 146 7606 3026 7606 \\n11\\n3973 3973 4322 4322 7112 7112 6404 6404 1250 814 1250 \\n9\\n9189 9189 5161 5161 20... | none | {
"id": "sock-scramble",
"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": "John, a student who is taking the game development c... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1.00 5.00\\n3.00 3.00\\n4.00 2.00\\n6.00 4.50\\n7.00 1.00\\n\", \"3\\n-1.50 -1.00\\n1.50 -1.00\\n0.00 1.00\\n\", \"2\\n1.00 1.00\\n1.00 1.00\\n\"], \"outputs\": [\"4\\n\", \"3\\n\", \"2\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-7000",
"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 positive integer D. Let's build the ... | code | {
"ground_truth": "{\"inputs\": [\"12\\n3\\n4 4\\n12 1\\n3 4\\n\", \"288807105787200\\n4\\n46 482955026400\\n12556830686400 897\\n414 12556830686400\\n4443186242880 325\\n\", \"1\\n1\\n1 1\\n\", \"17592186044416\\n1\\n17592186044416 1\\n\", \"18\\n36\\n1 1\\n1 2\\n1 3\\n1 6\\n1 9\\n1 18\\n2 1\\n2 2\\n2 3\\n2 6\\n2 9\... | rating_>1900 | {
"id": "1334_E. Divisor Paths",
"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": "Every great chef knows that lucky numbers are positi... | code | {
"ground_truth": "{\"inputs\": [\"5\\n7\\n4\\n11\\n1\\n15\", \"5\\n7\\n4\\n11\\n1\\n28\", \"5\\n7\\n7\\n11\\n1\\n15\", \"5\\n7\\n6\\n11\\n1\\n28\", \"5\\n9\\n11\\n11\\n2\\n15\", \"5\\n11\\n4\\n11\\n1\\n15\", \"5\\n7\\n4\\n17\\n1\\n28\", \"5\\n7\\n6\\n11\\n1\\n23\", \"5\\n7\\n22\\n11\\n1\\n15\", \"5\\n3\\n3\\n11\\n1\... | EASY | {
"id": "taco-train-13428",
"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": "Zookeeper is buying a carton of fruit to feed his pe... | code | {
"ground_truth": "{\"inputs\": [\"7\\n1101001\\n\", \"12\\n011100011100\\n\", \"4\\n0110\\n\", \"100\\n0110110011011111001110000110010010000111111001100001011101101000001011001101100111011111100111101110\\n\", \"1\\n0\\n\", \"100\\n0110110011011111001110000110010010000111111001100001011101101000001011001101100110011... | rating_>1900 | {
"id": "1428_F. Fruit Sequences",
"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": "One Khanate had a lot of roads and very little wood.... | code | {
"ground_truth": "{\"inputs\": [\"2 3\\n3 4 5\\n5 6 7\\n\", \"3 1\\n1 0 0\\n0 1 0\\n1 1 3\\n\", \"3 1\\n1 0 0\\n0 -1 0\\n7 -93 0\\n\", \"2 1\\n2 -1 0\\n1 1 3\\n\", \"10 1\\n53 104 -14918\\n121 -65 2234\\n40 173 -22600\\n123 128 -21018\\n207 -199 14358\\n-99 -97 16194\\n-4 -1 304\\n37 134 -17782\\n-30 37 -3060\\n8 35... | rating_>1900 | {
"id": "568_D. Sign Posts",
"rating": 2800,
"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": "Madoka is a very strange girl, and therefore she sud... | code | {
"ground_truth": "{\"inputs\": [\"6\\n1\\n2\\n3\\n4\\n5\\n100000000\\n\"], \"outputs\": [\"1\\n4\\n7\\n10\\n11\\n266666666\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-21328",
"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 [Mandarin], [Bengali], [R... | code | {
"ground_truth": "{\"inputs\": [\"1\\n3 4 2\\n1 1\\n3 1\\n1 2\\n2 3\\n2 1\\n2 4\\n3 2\\n3 4\\n1 3\\n3 3\\n2 2\\n1 4\\n\"], \"outputs\": [\"Bob\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-7453",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "After making a strategic plan with carriers for expa... | code | {
"ground_truth": "{\"inputs\": [\"10 10 3\\n4 2 2 3 2 3 3 2 3\\n3 3.5 2 4.5 2 4.5 3\\n4 7 8 7.5 8.5 8 8 7.5 9\\n5\\n2 3.5 0.5\\n3.3 2 0.4\\n5 2.5 0.5\\n7.5 8.5 0.5\\n3 7 0.5\\n\", \"10 10 3\\n4 2 2 3 2 3 3 2 3\\n3 3.5 2 4.5 2 4.5 3\\n4 7 8 7.5 8.5 8 8 7.5 9\\n5\\n2 4.481016822762688 0.5\\n3.3 2 0.4\\n5 2.5 0.5\\n7.5... | rating_>1900 | {
"id": "1424_E. 5G Antenna Towers",
"rating": 2700,
"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 provided with marks of N students in Physics,... | code | {
"ground_truth": "{\"inputs\": [\"N = 10\\nphy[] = {4 1 10 4 4 4 1 10 1 10}\\nchem[] = {5 2 9 6 3 10 2 9 14 10}\\nmath[] = {12 3 6 5 2 10 16 32 10 4}\"], \"outputs\": [\"1 14 10\\n1 2 3\\n1 2 16\\n4 10 10\\n4 6 5\\n4 5 12\\n4 3 2\\n10 10 4\\n10 9 6\\n10 9 32\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-20411",
"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": "Two neighbours, Alan and Bob, live in the city, wher... | code | {
"ground_truth": "{\"inputs\": [\"0 2\\n0 0\\n4 0\\n-3 0\", \"0 0\\n0 0\\n2 0\\n1 0\", \"0 2\\n0 0\\n40 0\\n-31 1\", \"100 2\\n0 0\\n4 0\\n-3 0\", \"2 100\\n0 0\\n4 0\\n-3 0\", \"0 0\\n0 0\\n5 0\\n10 0\", \"2 0\\n0 0\\n5 0\\n10 0\", \"0 2\\n0 0\\n5 0\\n10 0\", \"0 0\\n0 0\\n4 0\\n4 3\", \"0 4\\n0 0\\n4 0\\n4 3\", \"... | rating_>1900 | {
"id": "8D",
"rating": 2600,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A robot, a wall, and a goal are installed on the boa... | code | {
"ground_truth": "{\"inputs\": [\"5 7\\n\\n.#g..#\\n.###.#\\ns....#\\n\\n{T{~C^}>}\", \"5 3\\n###\\n#g#\\n#.#\\n#s#\\n###\\n^<^<vv\", \"5 7\\n\\n.#g..#\\n.###.#\\ns....#\\n\\n{T{~C^}<}\", \"5 3\\n\\ng#\\n.#\\ns#\\n\\n^<^<vv\", \"5 11\\n\\n.#g..#\\n.###.#\\ns....#\\n\\n{T{~C^}>}\", \"5 3\\n#$#\\n#g#\\n#.#\\n#s#\\n###... | none | {
"id": "p01755 AI",
"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": "NOTE: It is recommended you complete [Introduction to... | code | {
"ground_truth": "{\"fn_name\": \"interpreter\", \"inputs\": [[\"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++... | EASY | {
"id": "taco-test-482",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Problem Statement\n\nLet's consider operations on mo... | code | {
"ground_truth": "{\"inputs\": [\"00000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000111111111\\n10000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111\\n010101010101010101010... | none | {
"id": "p01711 Idempotent Filter",
"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 a sequence whose $n^{\\text{th}}$ term... | code | {
"ground_truth": "{\"inputs\": [\"3\\n5 3\\n4 2\\n4 1\\n\"], \"outputs\": [\"225\\n30\\n10\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-18145",
"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": "Demiurges Shambambukli and Mazukta love to watch the... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2\\n1 3\\n2 4\\n2 5\", \"6\\n1 2\\n1 3\\n3 4\\n1 5\\n5 6\", \"1\", \"2\\n1 2\", \"3\\n1 2\\n1 3\", \"10\\n1 2\\n1 3\\n3 4\\n3 5\\n4 6\\n1 7\\n3 8\\n2 9\\n6 10\", \"50\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\\n6 7\\n7 8\\n8 9\\n9 10\\n10 11\\n11 12\\n12 13\\n13 14\\n14 15\\n15 16\\n16 17... | rating_>1900 | {
"id": "538E",
"rating": 2200,
"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 classmate, whom you do not like because he is b... | code | {
"ground_truth": "{\"inputs\": [\"5 2\\naaaaa\\naa\\n\", \"2 2\\nab\\nab\\n\", \"5 3\\nabbbc\\nabc\\n\", \"5 5\\nabcdf\\nabcdf\\n\", \"5 2\\nddaca\\nda\\n\", \"5 3\\nbbbbc\\nbbc\\n\", \"99 54\\nfdabegacbffbgcacafcegfaegcacaegdbcabfgaecgbgfgefddggcdgebaaaccbcafdgcceabddfcacgdccfcgebccfffdaccac\\nfdabegabffbgcaafcegfg... | rating_1401-1600 | {
"id": "1492_C. Maximum width",
"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": "A running competition is going to be held soon. The ... | code | {
"ground_truth": "{\"inputs\": [\"3 10 5\\n0 3 5 10\\n6\\n24 30 14 16 18 10\\n\", \"3 10 3\\n0 3 5 10\\n6\\n24 30 14 16 18 10\\n\", \"3 10 3\\n0 3 5 10\\n6\\n24 30 14 16 36 10\\n\", \"3 10 3\\n0 3 5 10\\n6\\n24 30 14 22 36 10\\n\", \"3 10 3\\n0 3 5 10\\n6\\n2 30 14 22 36 10\\n\", \"3 10 5\\n0 3 5 10\\n1\\n24 30 14 1... | rating_>1900 | {
"id": "1398_G. Running Competition",
"rating": 2600,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The History of Magic is perhaps the most boring subj... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1999\\n5055\\n2000\\n\", \"4\\n9999\\n2000\\n3000\\n3011\\n\", \"3\\n1875\\n1936\\n1721\\n\", \"5\\n1901\\n1166\\n1308\\n1037\\n1808\\n\", \"3\\n1095\\n1094\\n1095\\n\", \"10\\n1075\\n1133\\n1393\\n1350\\n1369\\n1403\\n2643\\n1653\\n1756\\n7811\\n\", \"10\\n1501\\n1617\\n1368\\n... | rating_1601-1900 | {
"id": "65_B. Harry Potter and the History of Magic",
"rating": 1700,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "An atom of element X can exist in n distinct states ... | code | {
"ground_truth": "{\"inputs\": [\"10 8\\n10 13 15 16 17 19 20 22 24 25\\n\", \"4 4\\n1 3 5 7\\n\", \"3 1\\n2 5 10\\n\", \"5 3\\n4 6 8 9 10\\n\", \"3 5\\n1 2 10\\n\", \"5 2\\n4 6 8 9 10\\n\", \"5 1000000000\\n1 2 3 999999999 1000000000\\n\", \"30 5\\n102 104 105 107 108 109 110 111 116 118 119 122 127 139 140 142 145... | rating_1401-1600 | {
"id": "957_C. Three-level Laser",
"rating": 1600,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "This task is very simple. Given a string S of length... | code | {
"ground_truth": "{\"inputs\": [\"10 5\\nabacdabcda\\n7 10 0\\n5 8 1\\n1 4 0\\n3 6 0\\n7 10 1\\n\", \"10 1\\nagjucbvdfk\\n1 10 1\\n\", \"13 0\\nokaywearedone\\n\", \"10 5\\nhbtngdflmj\\n1 10 1\\n2 9 0\\n3 8 1\\n4 7 0\\n5 6 1\\n\", \"10 6\\nrmaahmdmuo\\n1 3 1\\n4 6 0\\n5 6 1\\n7 8 0\\n8 10 0\\n8 9 1\\n\", \"10 5\\nhb... | rating_>1900 | {
"id": "558_E. A Simple Task",
"rating": 2300,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Given an array of integers, calculate the ratios of ... | code | {
"ground_truth": "{\"inputs\": [\"6 \\n-4 3 -9 0 4 1\\n\"], \"outputs\": [\"0.500000\\n0.333333\\n0.166667\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-5007",
"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": "At the children's day, the child came to Picks's hou... | code | {
"ground_truth": "{\"inputs\": [\"5 5\\n\", \"4 3\\n\", \"5 1\\n\", \"1 100000\\n\", \"96024 12472\\n\", \"21741 3575\\n\", \"58934 6404\\n\", \"89829 8298\\n\", \"5499 1023\\n\", \"247 3270\\n\", \"58413 1253\\n\", \"100000 1\\n\", \"1 1\\n\", \"100000 14047\\n\", \"62658 10881\\n\", \"66947 17657\\n\", \"1997 508\... | MEDIUM | {
"id": "taco-train-12341",
"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": "There are M job applicants and N jobs. Each applican... | code | {
"ground_truth": "{\"inputs\": [\"G = {{1,1,0,1,1},{0,1,0,0,1},\\n{1,1,0,1,1}}\", \"G = {{1,1},{0,1},{0,1},{0,1},\\n{0,1},{1,0}}\"], \"outputs\": [\"3\", \"2\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-22515",
"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 working as a night watchman in an office bui... | code | {
"ground_truth": "{\"inputs\": [\"1 1 1\\n1\\n2 2 1\\n1 1\\n1 1\\n3 2 1\\n1 0 1\\n0 1 0\\n3 3 1\\n1 0 1\\n0 1 0\\n1 0 1\\n4 4 2\\n1 1 0 1\\n0 0 0 1\\n1 0 1 1\\n1 0 0 0\\n5 5 1\\n1 1 1 0 1\\n0 1 0 1 0\\n1 0 1 0 1\\n0 1 0 1 0\\n1 0 1 0 1\\n5 5 2\\n0 0 0 0 0\\n0 0 0 0 0\\n0 0 1 0 0\\n0 0 0 0 0\\n0 0 0 0 0\\n11 11 3\\n0... | none | {
"id": "p00887 Awkward Lights",
"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 to paint with shades of grey the tiles of a... | code | {
"ground_truth": "{\"inputs\": [\"7\\n315055237 841510063 581663979 148389224 405375301 243686840 882512379\\n683199716 -1 -1 0 0 0 346177625\\n496442279 0 0 0 0 0 815993623\\n223938231 0 0 -1 0 0 16170511\\n44132173 0 -1 0 0 0 130735659\\n212201259 0 0 -1 0 0 166102576\\n123213235 506794677 467013743 410119347 7914... | rating_>1900 | {
"id": "1427_G. One Billion Shades of Grey",
"rating": 3300,
"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": "There are N integers written on a blackboard. The i-... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 6 7\", \"4\\n1 2 4 8\", \"5\\n7 8 8 8 8\", \"3\\n3 9 7\", \"4\\n1 2 1 9\", \"4\\n1 2 1 8\", \"5\\n7 2 8 8 8\", \"3\\n3 9 9\", \"3\\n3 1 9\", \"4\\n1 2 1 13\", \"3\\n1 1 9\", \"4\\n1 2 1 22\", \"3\\n0 1 9\", \"4\\n1 1 1 22\", \"3\\n0 1 5\", \"4\\n0 1 1 22\", \"4\\n0 0 1 22\", \... | none | {
"id": "p03810 AtCoder Grand Contest 010 - Decrementing",
"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": "JAG mock qualifying practice session\n\nThe ACM-ICPC... | code | {
"ground_truth": "{\"inputs\": [\"5 3\\n1 1\\n2 3\\n3 2\\n3 5\\n2 1\\n4 2\\n1 7\\n2 1\\n1 3\\n1 5\\n6 1\\n1 3\\n1 2\\n1 8\\n1 2\\n1 7\\n1 6\\n20 9\\n4 10\\n2 4\\n5 3\\n6 6\\n6 3\\n7 4\\n8 10\\n4 6\\n7 5\\n1 8\\n5 7\\n1 5\\n6 6\\n9 9\\n5 8\\n6 7\\n1 4\\n6 4\\n7 10\\n3 5\\n19 6\\n4 1\\n6 5\\n5 10\\n1 10\\n3 10\\n4 6\\... | none | {
"id": "p01923 JAG Practice Contest",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Consider sequences \\{A_1,...,A_N\\} of length N con... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n\", \"3 200\\n\", \"100000 100000\\n\", \"2 1000\\n\", \"2 100000\\n\", \"2 1\\n\", \"100000 1\\n\", \"100000 2\\n\", \"99991 99989\\n\", \"36 99291\\n\", \"37 99737\\n\", \"59 64993\\n\", \"26 92227\\n\", \"8 56588\\n\", \"7775 25\\n\", \"63982 84\\n\", \"68417 56\\n\", \"319... | MEDIUM | {
"id": "taco-train-50",
"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": "Write a program which reads an integer n and identif... | code | {
"ground_truth": "{\"inputs\": [\"35\\n1\", \"35\\n2\", \"35\\n3\", \"35\\n4\", \"35\\n8\", \"35\\n15\", \"35\\n26\", \"35\\n0\", \"35\\n-1\", \"35\\n13\", \"35\\n6\", \"35\\n29\", \"35\\n22\", \"35\\n5\", \"35\\n9\", \"35\\n12\", \"35\\n11\", \"35\\n16\", \"35\\n19\", \"35\\n18\", \"35\\n35\", \"35\\n-2\", \"35\\n-... | none | {
"id": "p00008 Sum of 4 Integers",
"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": "Finally! Vasya have come of age and that means he ca... | code | {
"ground_truth": "{\"inputs\": [\"10 15 2\\n2\\n10 13\", \"8 17 3\\n4\\n3 4 5 8\", \"7 14 3\\n2\\n1 2\", \"30 70 10\\n3\\n30 32 35\", \"21 56 7\\n5\\n1 2 3 4 5\", \"10 1000000000 25\\n20\\n1 1 5 7 8 10 12 22 44 47 73 77 82 83 89 141 142 168 195 199\", \"30 60 3\\n10\\n1 5 6 10 12 13 18 23 24 25\", \"61 1000000000 13... | rating_>1900 | {
"id": "767B",
"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": "Brio got his house constructed near the National Hig... | code | {
"ground_truth": "{\"inputs\": [\"2\\n5 5 -5 5 \\n4\\n1 2 3 4\\n5\\n\\nSAMPLE\", \"2\\n5 3 -5 5 \\n4\\n1 2 3 4\\n5\\n\\nSAMPLE\", \"2\\n5 4 -5 5 \\n4\\n1 2 0 4\\n5\\n\\nSAMPLE\", \"2\\n5 8 -9 5 \\n1\\n1 2 0 4\\n1\\n\\nSAMPLE\", \"2\\n13 8 -9 5 \\n1\\n0 1 0 6\\n0\\n\\nSAMPLE\", \"2\\n31 1 -1 1 \\n1\\n0 1 1 6\\n0\\n\\... | none | {
"id": "brio-and-house-2-1",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "You have given N cities numbered from 0 to N-1. The d... | code | {
"ground_truth": "{\"inputs\": [\"N = 4, K = 2,\\r\\nMAT[][] = {{0, 10, 7, 6},\\r\\n {10, 0, 8, 5},\\r\\n {7, 8, 0, 12},\\r\\n {6, 5, 12, 0}}\"], \"outputs\": [\"6\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-11882",
"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": "You are given a string *s* consisting of |*s*| small... | code | {
"ground_truth": "{\"inputs\": [\"aacceeggiikkmmooqqssuuwwyy\", \"thereisnoanswer\", \"jqcfvsaveaixhioaaeephbmsmfcgdyawscpyioybkgxlcrhaxs\", \"rtdacjpsjjmjdhcoprjhaenlwuvpfqzurnrswngmpnkdnunaendlpbfuylqgxtndhmhqgbsknsy\", \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\", \"abcdefghijklmnopqrstuvwxxx\", \"abcdefghijk... | rating_1201-1400 | {
"id": "946C",
"rating": 1300,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Sam is playing with an array, $\\mbox{A}$, of $N$ po... | code | {
"ground_truth": "{\"inputs\": [\"2\\n3 2\\n1 2 3 \\n3 1 \\n1 2 3 \\n\"], \"outputs\": [\"3\\n5\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-11828",
"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": "Swapnil is playing a game with his friend.This game ... | code | {
"ground_truth": "{\"inputs\": [\"100\\n886 383\\n501\\nHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGH... | EASY | {
"id": "taco-train-1777",
"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": "Alice and Bob are playing yet another card game. Thi... | code | {
"ground_truth": "{\"inputs\": [\"3\\n-10 6 -15\\n\", \"8\\n5 2 5 3 -30 -30 6 9\\n\", \"5\\n5 -2 10 -1 4\\n\", \"10\\n-3 4 -4 1 1 -4 -5 3 -4 -2\\n\", \"10\\n8 9 -10 -10 -4 -3 5 9 -9 9\\n\", \"6\\n5 -4 2 -1 2 -2\\n\", \"11\\n3 0 1 -2 5 -5 -1 0 3 2 2\\n\", \"10\\n4 -2 -2 -2 2 0 1 0 -4 -1\\n\", \"4\\n2 2 -3 4\\n\", \"1... | rating_>1900 | {
"id": "1359_D. Yet Another Yet Another Task",
"rating": 2000,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "A seminar of Artificial Intelligence is going on,and ... | code | {
"ground_truth": "{\"inputs\": [\"N = 60, M = 84\", \"N = 8, M = 11\"], \"outputs\": [\"12\", \"19\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-7032",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The only difference between easy and hard versions i... | code | {
"ground_truth": "{\"inputs\": [\"7 15\\n1 2 3 4 5 6 7\\n\", \"5 100\\n80 40 40 40 60\\n\", \"1 1\\n1\\n\", \"1 20000000\\n100\\n\", \"1 100\\n100\\n\", \"2 100\\n100 100\\n\", \"2 100\\n1 100\\n\", \"2 100\\n1 99\\n\", \"3 299\\n100 100 100\\n\", \"10 50\\n9 9 9 9 9 9 9 9 9 9\\n\", \"10 50\\n10 10 10 10 10 10 10 10... | MEDIUM_HARD | {
"id": "taco-train-20863",
"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": "Berland has managed to repel the flatlanders' attack... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\n1 2\\n1 3\\n4 2\\n4 3\", \"3 1\\n1 2\", \"8 14\\n1 3\\n1 4\\n1 5\\n1 6\\n1 7\\n1 8\\n2 3\\n2 4\\n2 5\\n2 6\\n2 7\\n2 8\\n5 6\\n6 7\", \"6 9\\n1 4\\n1 5\\n1 6\\n2 4\\n2 5\\n2 6\\n3 4\\n3 5\\n3 6\", \"4 6\\n3 4\\n2 3\\n2 4\\n1 3\\n2 1\\n4 1\", \"4 4\\n2 3\\n1 2\\n3 4\\n1 3\", \"... | rating_>1900 | {
"id": "190E",
"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": "A Boolean expression is given. In the expression, ea... | code | {
"ground_truth": "{\"inputs\": [\"(x1&x2)\", \"(x1&x2)|(x3&x4)|(~(x5|x6)&(x7&x8))\", \"(x1&x3)|(x2&x4)|(~(x5|x6)&(x7&x8))\", \"(x1&x3)\", \"(x1|x2)&(x3&x4)|(~(x5|x6)&(x6&x8))\", \"(x2&x35|(x2&x4)|(~(x)|x8)&(x6&x6))\", \"(x1&x3)|(x2&x4)|(~(x)|x65&(x6&x8))\", \"(x2&x3)|(x2&x4)|(~(x5|x86&(x)&x6))\", \"(x1&x3)|(x2&x4)|(... | none | {
"id": "p01465 Testing Circuits",
"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 string, check if all its characters are the s... | code | {
"ground_truth": "{\"inputs\": [\"s = \\\"geeks\\\"\", \"s = \\\"gggg\\\"\"], \"outputs\": [\"False\", \"True\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-2111",
"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 has arrived in Dagobah to meet with Yoda to stu... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"2 3 2 3\", \"2 2 5 5\"]], \"outputs\": [[\"0.500000\", \"1.000000\"]]}",
"style": "rule"
} | HARD | {
"id": "taco-train-22465",
"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": "Alice and Bob begin their day with a quick game. The... | code | {
"ground_truth": "{\"inputs\": [\"14\", \"20\", \"8192\", \"1000000\", \"959806\", \"1452\", \"4\", \"6\", \"8\", \"9\", \"10\", \"12\", \"15\", \"16\", \"110880\", \"166320\", \"221760\", \"277200\", \"332640\", \"498960\", \"554400\", \"665280\", \"720720\", \"510510\", \"570570\", \"690690\", \"959818\", \"959878... | rating_1601-1900 | {
"id": "923A",
"rating": 1700,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Kolya is very absent-minded. Today his math teacher ... | code | {
"ground_truth": "{\"inputs\": [\"1 2\\n\", \"5 7\\n\", \"6 2\\n\", \"4 4\\n\", \"9 2\\n\", \"2 4\\n\", \"1 2\\n\", \"6 5\\n\", \"1 1\\n\", \"3 2\\n\", \"3 3\\n\", \"8 1\\n\", \"4 4\\n\", \"9 1\\n\", \"9 6\\n\", \"2 9\\n\", \"9 7\\n\", \"8 9\\n\", \"9 8\\n\", \"3 1\\n\", \"9 3\\n\", \"8 8\\n\", \"9 5\\n\", \"7 6\\n\... | rating_<=1200 | {
"id": "1225_A. Forgetting Things",
"rating": 900,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a binary tree, print the bottom view from left ... | code | {
"ground_truth": "{\"inputs\": [\"1\\r\\n / \\\\\\r\\n 3 2\", \"10\\r\\n / \\\\\\r\\n 20 30\\r\\n / \\\\\\r\\n 40 60\"], \"outputs\": [\"3 1 2\", \"40 20 60 30\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-7815",
"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": "There is a grid with N rows and N columns of squares... | code | {
"ground_truth": "{\"inputs\": [\"5 5\\n1 3\\n2 3\\n1 4\\n2 2\\n1 2\", \"200000 0\", \"176527 15\\n1 81279\\n2 22308\\n2 133061\\n1 80744\\n2 44603\\n1 170938\\n2 139754\\n2 15220\\n1 172794\\n1 159290\\n2 156968\\n1 56426\\n2 77429\\n1 97459\\n2 71282\", \"2463 0\", \"176527 15\\n1 81279\\n2 22308\\n2 168987\\n1 80... | none | {
"id": "p02551 AtCoder Beginner Contest 179 - Simplified Reversi",
"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 n lights aligned in a row. These lights ar... | code | {
"ground_truth": "{\"inputs\": [\"3 1\\n1\\n\", \"4 2\\n1 4\\n\", \"11 2\\n4 8\\n\", \"4 2\\n1 3\\n\", \"4 4\\n1 2 3 4\\n\", \"4 2\\n1 3\\n\", \"4 4\\n1 2 3 4\\n\", \"1000 3\\n100 900 10\\n\", \"74 13\\n6 14 19 20 21 24 30 43 58 61 69 70 73\\n\", \"74 13\\n6 14 19 20 21 24 30 43 58 61 69 70 73\\n\", \"74 13\\n6 14 1... | HARD | {
"id": "taco-train-22866",
"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": "*n* people are standing in a line to play table tenn... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n1 2\", \"4 2\\n3 1 2 4\", \"6 2\\n6 5 3 1 2 4\", \"2 10000000000\\n2 1\", \"4 4\\n1 3 4 2\", \"2 2147483648\\n2 1\", \"3 2\\n1 3 2\", \"3 3\\n1 2 3\", \"5 2\\n2 1 3 4 5\", \"10 2\\n7 10 5 8 9 3 4 6 1 2\", \"100 2\\n62 70 29 14 12 87 94 78 39 92 84 91 61 49 60 33 69 37 19 82 42... | rating_<=1200 | {
"id": "879B",
"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": "You are looking for a particular family photo with y... | code | {
"ground_truth": "{\"inputs\": [\"1\\n3\\n2 1 3\\n\", \"4\\n4\\n140 157 160 193\\n5\\n15 24 38 9 30\\n6\\n36 12 24 29 23 15\\n6\\n170 230 320 180 250 210\\n\"], \"outputs\": [\"1\\n1\\n\", \"2\\n2\\n4\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-10657",
"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 story you are about to hear is true\nOur cat, ... | code | {
"ground_truth": "{\"fn_name\": \"peaceful_yard\", \"inputs\": [[[\"------------\", \"------------\", \"-L----------\", \"------------\", \"------------\", \"------------\"], 10], [[\"------------\", \"---M--------\", \"------------\", \"------------\", \"-------R----\", \"------------\"], 6], [[\"-----------L\", \"... | EASY | {
"id": "taco-train-21359",
"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": "Metro roams in a city of 20 stations, Starting from S... | code | {
"ground_truth": "{\"inputs\": [\"n = 0, c = U\", \"n = 12, c = D\"], \"outputs\": [\"11\", \"1\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-7418",
"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": "Meikyokan University is very famous for its research... | code | {
"ground_truth": "{\"inputs\": [\"8\\n2\\nomura\\ntoshio\\nraku\\ntanaka\\nimura\\nyoshoi\\nhayashi\\nmiura\\n3\\n1\\ntasaka\\nnakata\\ntanaka\\n1\\n1\\nfoo\\n5\\n2\\npsqt\\nabcdef\\nabzdefa\\npqrst\\nabdxcef\\n0\", \"8\\n2\\nomura\\ntoshio\\nraku\\ntanaka\\ninura\\nyoshoi\\nhayashi\\nmiura\\n3\\n1\\ntasaka\\nnakata... | none | {
"id": "p00831 Confusing Login Names",
"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": "A never-ending, fast-changing and dream-like world u... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\n\", \"31 8\\n\", \"3 2\\n\", \"7 3\\n\", \"6 1\\n\", \"50 33\\n\", \"48 20\\n\", \"3 1\\n\", \"3 4\\n\", \"4 1\\n\", \"50 50\\n\", \"6 6\\n\", \"8 5\\n\", \"3 3\\n\", \"10 4\\n\", \"6 7\\n\", \"1 2\\n\", \"4 2\\n\", \"7 5\\n\", \"7 6\\n\", \"2 2\\n\", \"50 2\\n\", \"4 5\\n\", ... | rating_>1900 | {
"id": "848_D. Shake It!",
"rating": 2900,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.