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": "You are hosting a fancy party for fancy friends. And... | code | {
"ground_truth": "{\"inputs\": [\"3 3 2\\n1 30 2 50\\n2 70 3 10\\n3 20 1 80\\n\", \"3 3 1\\n1 30 2 50\\n2 70 3 10\\n3 20 1 80\\n\"], \"outputs\": [\"60\\n\", \"-1\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-18724",
"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": "Takaki Tono is a Computer Programmer in Tokyo. His b... | code | {
"ground_truth": "{\"inputs\": [[\"5\", \"1 2 7 4 5\", \"1 2\", \"2 3\", \"2 4\", \"2 5\", \"7\", \"C 1 5\", \"F 1 5\", \"C 2 4\", \"C 1 2\", \"F 1 3\", \"F 3 4\", \"F 2 4\"]], \"outputs\": [[\"1\", \"4\", \"2\", \"1\", \"6\", \"5\", \"2\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-9636",
"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 an array arr of integers, check if there exists... | code | {
"ground_truth": "{\"fn_name\": \"checkIfExist\", \"inputs\": [[[10, 2, 5, 3]]], \"outputs\": [true]}",
"style": "rule"
} | EASY | {
"id": "taco-train-2752",
"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": "There is a special square room with mirrors on each o... | code | {
"ground_truth": "{\"fn_name\": \"mirrorReflection\", \"inputs\": [[2, 1]], \"outputs\": [2]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-14528",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "For a given polygon g, print \"1\" if g is a convex ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n0 0\\n2 0\\n1 1\\n2 2\\n0 2\", \"4\\n0 0\\n3 1\\n2 3\\n0 3\", \"5\\n0 0\\n2 1\\n1 1\\n2 2\\n0 2\", \"4\\n0 0\\n3 0\\n2 1\\n0 3\", \"4\\n0 0\\n3 1\\n2 1\\n0 3\", \"5\\n0 0\\n3 1\\n1 1\\n2 2\\n0 2\", \"5\\n0 0\\n3 1\\n1 1\\n3 2\\n0 2\", \"4\\n0 0\\n3 0\\n2 0\\n0 3\", \"5\\n0 0\\n3... | none | {
"id": "p02298 Is-Convex",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "As you might already know, space has always been a p... | code | {
"ground_truth": "{\"inputs\": [\"2\\n5 5\\n3 4\\n\", \"2\\n2 5\\n4 3\\n\", \"3\\n10 1\\n9 8\\n7 6\\n\"], \"outputs\": [\"\\n12.5\\n\", \"\\n8.0\\n\", \"\\n42.0\\n\"]}",
"style": "rule"
} | rating_1601-1900 | {
"id": "1252_H. Twin Buildings",
"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": "JJ found a balanced parenthesis sequence. He does no... | code | {
"ground_truth": "{\"inputs\": [\"4\\n()\\n(())\\n()()\\n((()))(())\\n\"], \"outputs\": [\"1\\n2\\n1\\n2\\n\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-22389",
"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": "Cities on a map are connected by a number of roads. ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n3\\n1 3\\n4\\n2 2 2\\n\"], \"outputs\": [\"3\\n8\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-21248",
"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 n elements, initially all a... | code | {
"ground_truth": "{\"inputs\": [\"N=3, Q=2\\r\\nU=[[1, 3, 1],\\r\\n [1, 3, 2]]\", \"N=3, Q=2\\r\\nU=[[1, 2, 1],\\r\\n [3, 3, 2]]\"], \"outputs\": [\"a[]={3,3,3}\", \"a[]={1,1,2}\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-6286",
"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": "Ruben and Albert are what you can call abnormally sm... | code | {
"ground_truth": "{\"inputs\": [\"RUBEN\\n1\\n4 1 7\\n\", \"ALBERT\\n2\\n4 4 4\\n2 2 2\\n\", \"ALBERT\\n3\\n6 3 7\\n18 1 9\\n7 5 8\\n\"], \"outputs\": [\"RUBEN\\n\", \"RUBEN\\n\", \"ALBERT\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-18551",
"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 a sequence of integers $... | code | {
"ground_truth": "{\"inputs\": [\"8\\n1 2 3 4 5 6 7 8\\n2\\n1 6\\n3 8\", \"8\\n1 2 3 4 5 6 7 8\\n2\\n1 6\\n1 8\", \"8\\n1 1 3 4 5 6 7 8\\n2\\n1 6\\n1 8\", \"8\\n1 1 3 4 5 5 7 8\\n2\\n1 6\\n1 8\", \"8\\n1 4 3 4 5 6 7 8\\n2\\n1 6\\n3 8\", \"8\\n1 2 3 4 5 0 7 8\\n2\\n1 6\\n1 8\", \"8\\n1 1 4 4 5 6 7 8\\n2\\n1 6\\n1 8\"... | none | {
"id": "p02443 Reverse",
"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 line of $n$ colored squares in a row... | code | {
"ground_truth": "{\"inputs\": [\"4\\n5 2 2 1\\n\", \"8\\n4 5 2 2 1 3 5 5\\n\", \"1\\n4\\n\", \"4\\n4 4 4 4\\n\", \"2\\n3166 2658\\n\", \"19\\n26 26 26 26 26 26 26 26 26 26 26 63 63 68 68 68 81 81 81\\n\", \"29\\n4763 4743 4742 4752 4739 4740 4753 4738 4744 4741 4746 4737 4757 4764 4750 4745 4755 4761 4749 4759 4747... | HARD | {
"id": "taco-train-6300",
"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": "Description\n\nSince the cubic equation: ax ^ 3 + bx... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 3 3 1\\n-10 0 0 0\", \"2\\n1 3 3 1\\n-10 0 0 1\", \"2\\n1 4 3 1\\n-14 0 0 1\", \"2\\n1 3 5 1\\n-10 0 0 0\", \"2\\n1 3 9 1\\n-10 0 1 0\", \"2\\n1 4 3 0\\n-1 0 1 1\", \"2\\n1 1 3 1\\n-10 -1 0 0\", \"2\\n1 4 3 0\\n-1 -1 1 1\", \"2\\n1 4 3 0\\n-1 0 0 0\", \"2\\n1 4 3 0\\n-1 0 1 0\... | none | {
"id": "p01337 The Number of the Real Roots of a Cubic Equation",
"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": "Polycarp is an introvert person. In fact he is so mu... | code | {
"ground_truth": "{\"inputs\": [\"8 3\\n8 2\\n1 3\\n4 9\\n0 3 -5 0 -5 -4 -1 0\\n\", \"1 1\\n1 1\\n0\\n\", \"8 3\\n1 15\\n5 10\\n8 1\\n0 -5 -5 -5 0 -5 -5 0\\n\", \"3 2\\n1 1\\n3 1\\n0 -5000 0\\n\", \"4 2\\n1 1\\n4 1\\n0 -2 1 0\\n\", \"5 2\\n1 1\\n5 1\\n0 1 -3 1 0\\n\", \"10 2\\n1 1\\n10 1\\n0 1 1 1 1 1 1 1 -8 0\\n\",... | rating_>1900 | {
"id": "1070_G. Monsters and Potions",
"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 the start time st and end time et of a race in ... | code | {
"ground_truth": "{\"inputs\": [\"st = 13:50:45\\net = 14:55:50\", \"st = 12:00:00\\net = 24:00:00\"], \"outputs\": [\"01:05:05\", \"12:00:00\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-12383",
"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": "“Sabotage!” exclaimed J.R. Diddly, president and fou... | code | {
"ground_truth": "{\"inputs\": [\"0\\n\", \"009990001\\n\", \"29998\\n\", \"610\\n\", \"981\\n\", \"9084194700940903797191718247801197019268\\n\"], \"outputs\": [\"0\\n\", \"3\\n\", \"5\\n\", \"4\\n\", \"2\\n\", \"54\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-17623",
"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": "You are given a permutation $a_1,a_2,\\ldots,a_n$ of... | code | {
"ground_truth": "{\"inputs\": [\"5\\n5\\n4 0 3 2 1\\n1\\n0\\n4\\n0 1 2 3\\n6\\n1 2 4 0 5 3\\n8\\n1 3 7 2 5 0 6 4\\n\"], \"outputs\": [\"2\\n1\\n1\\n4\\n72\\n\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-5241",
"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": "Imp is watching a documentary about cave painting.\n... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\n\", \"5 3\\n\", \"232435556779345919 19\\n\", \"518264351335130399 37\\n\", \"442762254977842799 30\\n\", \"1 2\\n\", \"755804560577415016 17\\n\", \"2 1\\n\", \"310113769227703889 3\\n\", \"731457367464667229 118809129279134971\\n\", \"649549020631327471 41923378183538525\\n\... | rating_1401-1600 | {
"id": "922_C. Cave Painting",
"rating": 1600,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Read problems statements [Mandarin] , [Bengali] , [H... | code | {
"ground_truth": "{\"inputs\": [\"2\\n6\\n010001\\n11\\n00101010000\"], \"outputs\": [\"1\\n3\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-19569",
"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": "Gunnar and Emma play a lot of board games at home, s... | code | {
"ground_truth": "{\"inputs\": [\"1 4 1 4\\n1 6 1 6\\n\", \"1 8 1 8\\n1 10 2 5\\n\", \"2 5 2 7\\n1 5 2 5\\n\"], \"outputs\": [\"Emma\\n\", \"Tie\\n\", \"Gunnar\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-13069",
"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 S sheep and W wolves.\n\nIf the number of ... | code | {
"ground_truth": "{\"inputs\": [\"4 5\", \"100 2\", \"10 10\", \"1 5\", \"101 2\", \"5 10\", \"1 6\", \"111 2\", \"8 10\", \"0 6\", \"111 0\", \"11 10\", \"-1 6\", \"111 -1\", \"6 10\", \"-1 9\", \"101 -1\", \"3 10\", \"-1 7\", \"001 -1\", \"5 14\", \"0 7\", \"001 0\", \"1 14\", \"0 10\", \"101 0\", \"1 19\", \"0 8\... | none | {
"id": "p02699 AtCoder Beginner Contest 164 - Sheep and Wolves",
"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 have located a major supply line that the enemy ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n-100 1\\n100 -1\\n\", \"3\\n-100 1\\n100 -1\\n101 -1\\n\", \"3\\n-100 -1\\n0 0\\n100 1\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"200\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-12922",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a string S consisting of upper/lower-case alpha... | code | {
"ground_truth": "{\"inputs\": [\"S = \\\"Geeks for Geeks\\\"\", \"S = \\\"Start Coding Here \\\"\"], \"outputs\": [\"5\", \"4\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-24593",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "problem\n\nOne day, Taro, who lives in JOI town, dec... | code | {
"ground_truth": "{\"inputs\": [\"3 4 3\\n1 0 1 1\\n0 1 0 0\\n1 0 1 0\\n0 0 0\", \"3 4 3\\n1 0 1 1\\n0 1 0 0\\n1 0 1 1\\n0 0 0\", \"3 4 6\\n1 0 1 1\\n0 1 0 0\\n1 0 1 1\\n0 0 0\", \"3 4 8\\n1 0 1 1\\n0 1 0 0\\n1 0 1 1\\n0 0 0\", \"3 4 8\\n1 0 1 1\\n0 0 0 0\\n1 0 1 1\\n0 0 0\", \"3 4 4\\n1 0 1 1\\n0 1 0 0\\n1 0 1 1\\n... | none | {
"id": "p00464 Walk",
"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 chainword is a special type of crossword. As most ... | code | {
"ground_truth": "{\"inputs\": [\"3 5\\nababa\\nab\\na\\n\", \"2 4\\nab\\ncd\\n\", \"5 100\\na\\naa\\naaa\\naaaa\\naaaaa\\n\", \"8 1000000000\\nbabba\\nb\\nbb\\nbbaaa\\naaaba\\nabaab\\naabaa\\nbaaba\\n\", \"8 1000000\\nks\\nmbha\\nbyn\\ncz\\ng\\nmv\\nnct\\nbty\\n\", \"8 3\\nba\\nbbb\\nbb\\naba\\naab\\nbaa\\nb\\na\\n... | rating_>1900 | {
"id": "1511_F. Chainword",
"rating": 2700,
"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": "Polycarp plays a (yet another!) strategic computer g... | code | {
"ground_truth": "{\"inputs\": [\"3 0\\n1 1\\n2 3\\n1 3\\n\", \"3 1\\n1 1\\n2 3\\n1 3\\n2 3\\n\", \"1 0\\n1 1\\n\", \"2 1\\n1 2\\n1 2\\n1 2\\n\", \"10 20\\n2 7\\n6 6\\n8 9\\n3 6\\n6 10\\n8 9\\n1 1\\n7 10\\n1 7\\n5 10\\n6 7\\n7 9\\n4 9\\n1 2\\n9 10\\n5 9\\n1 6\\n6 9\\n2 7\\n4 5\\n2 6\\n5 10\\n4 6\\n1 10\\n3 6\\n4 7\\... | rating_>1900 | {
"id": "1400_G. Mercenaries",
"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": "Given a set of N jobs where each job_{i} has a deadli... | code | {
"ground_truth": "{\"inputs\": [\"N = 4\\nJobs = {(1,4,20),(2,1,10),(3,1,40),(4,1,30)}\", \"N = 5\\nJobs = {(1,2,100),(2,1,19),(3,2,27),\\n (4,1,25),(5,1,15)}\"], \"outputs\": [\"2 60\", \"2 127\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-8932",
"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": "One day, Vogons wanted to build a new hyperspace hig... | code | {
"ground_truth": "{\"inputs\": [\"4\\n10 1\\n2 1 4 5 2 4 5 5 1 2\\n5 2\\n3 2 1 2 2\\n2 2\\n1 1\\n2 2\\n1 2\\n\", \"1\\n1 100\\n1\\n\", \"1\\n49 2\\n1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1\\n\"], \"outputs\": [\"4\\n4\\n2\\n2\\n\", \"1\\n\", \"2\\n\"]}",
"st... | EASY | {
"id": "taco-train-13195",
"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": "Young Teodor enjoys drawing. His favourite hobby is ... | code | {
"ground_truth": "{\"inputs\": [\"2 4\\n1 2\\n3 4\\n\", \"4 6\\n1 3\\n2 3\\n4 6\\n5 6\\n\", \"11 3\\n1 1\\n1 1\\n1 1\\n1 1\\n2 2\\n2 2\\n2 2\\n3 3\\n3 3\\n3 3\\n3 3\\n\", \"43 1319\\n750 1030\\n857 946\\n941 1203\\n407 1034\\n947 1290\\n546 585\\n630 1201\\n72 342\\n693 1315\\n34 719\\n176 1097\\n36 931\\n198 973\\n... | rating_1601-1900 | {
"id": "930_C. Teodor is not a liar!",
"rating": 1900,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There is unrest in the Galactic Senate. Several thou... | code | {
"ground_truth": "{\"inputs\": [\"5 2\\n1 1 2 2 1\\n1 2\\n\", \"1 1\\n1\\n1\\n\", \"2 1\\n1 1\\n1\\n\", \"2 1\\n1 1\\n2\\n\", \"2 2\\n1 2\\n1 1\\n\", \"3 3\\n1 1 3\\n0 1 2\\n\", \"4 4\\n2 3 3 2\\n0 0 1 0\\n\", \"2 2\\n2 2\\n0 2\\n\", \"3 3\\n1 1 3\\n0 1 1\\n\", \"4 4\\n2 4 4 3\\n1 1 1 1\\n\", \"2 2\\n2 1\\n0 1\\n\",... | MEDIUM | {
"id": "taco-train-5166",
"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": "Equilateral Triangular Fence\n\nMs. Misumi owns an o... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1\\n0 1\\n1 2\\n-1 2\\n2 1\\n4\\n1\\n1 1\\n2 2\\n1 3\\n1 4\\n4\\n1\\n1 1\\n2 2\\n3 1\\n4 1\\n4\\n1\\n1 2\\n2 1\\n3 2\\n4 2\\n5\\n2\\n0 1\\n0 2\\n0 3\\n0 4\\n0 5\\n6\\n3\\n0 2\\n2 2\\n1 1\\n0 3\\n2 3\\n1 4\\n0\", \"4\\n1\\n0 1\\n1 2\\n-1 2\\n2 1\\n4\\n1\\n1 1\\n2 2\\n1 3\\n1 4\\n... | none | {
"id": "p01114 Equilateral Triangular Fence",
"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": "Pia is getting ready for her flight to the NWERC 201... | code | {
"ground_truth": "{\"inputs\": [\"5 2 3\\n2 3 5\\n\", \"7 4 2\\n2 7\\n\"], \"outputs\": [\"00010\\n\", \"0010110\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-5267",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an array of non-negative integers arr, you are ... | code | {
"ground_truth": "{\"fn_name\": \"canReach\", \"inputs\": [[[4, 2, 3, 0, 3, 1, 2], 5]], \"outputs\": [true]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-16958",
"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": "Queen of westeros is known for her dragons and magic... | code | {
"ground_truth": "{\"inputs\": [\"10\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa... | EASY | {
"id": "taco-train-7729",
"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 number $S$ is called the mean of two numbers $R_... | code | {
"ground_truth": "{\"inputs\": [\"11 15\\n\", \"4 3\\n\"], \"outputs\": [\"19\\n\", \"2\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-20763",
"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 undirected connected graph with N v... | code | {
"ground_truth": "{\"inputs\": [\"7 7\\n1 3\\n2 7\\n3 4\\n4 5\\n4 6\\n5 6\\n6 7\\n\", \"3 3\\n1 2\\n1 3\\n2 3\\n\", \"6 5\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\\n\", \"3 2\\n1 2\\n1 3\\n2 3\", \"6 5\\n1 2\\n2 3\\n3 4\\n3 5\\n5 6\", \"3 0\\n2 2\\n1 3\\n3 3\", \"6 1\\n2 1\\n1 1\\n1 3\", \"3 2\\n2 2\\n1 3\\n2 3\", \"3 2\\n2 1\... | EASY | {
"id": "taco-train-19385",
"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 need to hire some people to paint a fence. The f... | code | {
"ground_truth": "{\"inputs\": [\"2\\nBLUE 1 5000\\nRED 5001 10000\\n\", \"3\\nBLUE 1 6000\\nRED 2000 8000\\nWHITE 7000 10000\\n\", \"4\\nBLUE 1 3000\\nRED 2000 5000\\nORANGE 4000 8000\\nGREEN 7000 10000\\n\", \"2\\nBLUE 1 4000\\nRED 4002 10000\\n\", \"3\\nBLUE 1 6000\\nRED 4000 10000\\nORANGE 3000 8000\\n\"], \"out... | HARD | {
"id": "taco-train-4172",
"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": "Adobe wants to play a game. He is given a number N. H... | code | {
"ground_truth": "{\"fn_name\": \"pallan\", \"inputs\": [\"N = 61\", \"N = 1998\"], \"outputs\": [\"YES\", \"NO\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-7973",
"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 permutation P of length N.\n\nYou ca... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3\\n1 3 2\\n4\\n1 2 3 4\\n4\\n2 1 4 3\\n\"], \"outputs\": [\"1\\n1\\n2 3\\n0\\n0\\n2\\n2\\n1 2\\n3 4\\n\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-1919",
"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": "Mr. Krabs loves money. He enters a bank and sees tha... | code | {
"ground_truth": "{\"inputs\": [[\"7\", \"1 2 3 4 5 6 1\", \"3\"]], \"outputs\": [[\"12\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-18321",
"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": "Fast Forwarding\n\nMr. Anderson frequently rents vid... | code | {
"ground_truth": "{\"inputs\": [\"19\", \"0\", \"26\", \"25\", \"23\", \"5\", \"4\", \"1\", \"8\", \"38\", \"47\", \"48\", \"75\", \"138\", \"149\", \"132\", \"374\", \"315\", \"933\", \"945\", \"456\", \"942\", \"2139\", \"1374\", \"3723\", \"18\", \"14\", \"7\", \"2\", \"3\", \"12\", \"15\", \"16\", \"17\", \"6\",... | none | {
"id": "p00979 Fast Forwarding",
"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\": [\"2\\n2\\n1 2\\n6\\n1 2\\n1 3\\n3 4\\n3 5\\n3 6\"], \"outputs\": [\"1\\n1\\n2\\n2\\n1 3 5\\n2 4 6\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-4770",
"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": "In this problem we consider a special type of an auc... | code | {
"ground_truth": "{\"inputs\": [\"2\\n5 7\", \"3\\n10 2 8\", \"6\\n3 8 2 9 4 14\", \"4\\n4707 7586 4221 5842\", \"5\\n3304 4227 4869 6937 6002\", \"6\\n5083 3289 7708 5362 9031 7458\", \"7\\n9038 6222 3392 1706 3778 1807 2657\", \"8\\n7062 2194 4481 3864 7470 1814 8091 733\", \"9\\n2678 5659 9199 2628 7906 7496 4524... | rating_<=1200 | {
"id": "386A",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are playing the following game. There are n poin... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2 3 4\\n*aba\\na*ab\\nba*b\\nabb*\\n\", \"4\\n2 3 4\\n*abc\\na*ab\\nba*b\\ncbb*\\n\", \"3\\n1 2 3\\n*aa\\na*a\\naa*\\n\", \"10\\n9 8 6\\n*abbbababb\\na*babbaaaa\\nbb*bbaabab\\nbab*bbbaab\\nbbbb*baaab\\nababb*baaa\\nbaabab*bba\\naabaaab*ab\\nbaaaaaba*a\\nbabbbaaba*\\n\", \"10\\n3... | HARD | {
"id": "taco-train-23461",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "You are given an n x m binary matrix grid, where 0 re... | code | {
"ground_truth": "{\"inputs\": [\"grid[][] = {{0, 0, 0, 0},\\r\\n {1, 0, 1, 0},\\r\\n {0, 1, 1, 0},\\r\\n {0, 0, 0, 0}}\", \"grid[][] = {{0, 0, 0, 1},\\r\\n {0, 1, 1, 0},\\r\\n {0, 1, 1, 0},\\r\\n {0, 0, 0, 1},\\r\\n {0, 1, 1, 0}}\"], \"out... | MEDIUM | {
"id": "taco-train-21671",
"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": "We say that a odd number N is similar to 2017 when b... | code | {
"ground_truth": "{\"inputs\": [\"1\\n3 7\", \"4\\n13 13\\n7 11\\n7 11\\n2017 2017\", \"6\\n1 53\\n13 91\\n37 55\\n19 51\\n73 91\\n13 49\", \"1\\n3 9\", \"1\\n5 9\", \"1\\n9 9\", \"4\\n13 13\\n7 0\\n7 11\\n2017 2017\", \"6\\n1 53\\n7 91\\n37 55\\n19 51\\n73 91\\n13 49\", \"4\\n11 13\\n7 1\\n7 13\\n2017 2017\", \"6\\... | none | {
"id": "p03476 AtCoder Beginner Contest 084 - 2017-like Number",
"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 are given two arrays A and B of unique elements o... | code | {
"ground_truth": "{\"inputs\": [\"N = 3\\r\\nA = {1,2,3}\\r\\nB = {2,1,3}\", \"N = 3\\r\\nA = {1,2,3}\\r\\nB = {3,1,2}\"], \"outputs\": [\"1\", \"0\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-14220",
"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": "At first, let's define function $f(x)$ as follows: $... | code | {
"ground_truth": "{\"inputs\": [\"11 3\\n\", \"11 6\\n\", \"20 20\\n\", \"14 5\\n\", \"1000000 100\\n\", \"1 1\\n\", \"2 1\\n\", \"100 4\\n\", \"502333439 2047\\n\", \"773014587697599 31\\n\", \"946338791423 262143\\n\", \"1000000000 4\\n\", \"13 2\\n\", \"1073741821 2\\n\", \"1000000000 100\\n\", \"1000000000 10000... | HARD | {
"id": "taco-train-8802",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given inorder and level-order traversals of a Binary ... | code | {
"ground_truth": "{\"inputs\": [\"2\\r\\n\\n3\\r\\n\\n1 0 2 \\r\\n\\n0 1 2 \\r\\n\\n7\\r\\n\\n3 1 4 0 5 2 6 \\r\\n\\n0 1 2 3 4 5 6\"], \"outputs\": [\"0 1 2\\n0 1 3 4 2 5 6\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-16250",
"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": "After learning about polynomial hashing, Heidi decid... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1010\\n\", \"4\\n0000\\n\", \"111\\n001101111000100111111000010101011110011000010101010001001011000111100111111101000110000011110110100111000100101\\n\", \"4\\n0011\\n\", \"10\\n1010100001\\n\", \"4\\n1011\\n\", \"2\\n00\\n\", \"3\\n111\\n\", \"2\\n01\\n\", \"4\\n0111\\n\", \"4\... | rating_>1900 | {
"id": "1184_A2. Heidi Learns Hashing (Medium)",
"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": "The \"Western calendar\" is a concept imported from ... | code | {
"ground_truth": "{\"inputs\": [\"0 2015\", \"0 1912\", \"4 28\", \"2 1\", \"4 2\", \"3 1\", \"1 28\", \"2 0\", \"3 2\", \"4 1\", \"1 42\", \"1 0\", \"3 0\", \"4 0\", \"1 81\", \"2 -1\", \"3 -1\", \"4 -1\", \"1 125\", \"1 -1\", \"4 -2\", \"1 68\", \"1 -2\", \"4 -4\", \"1 36\", \"1 -3\", \"2 36\", \"1 -4\", \"2 45\",... | none | {
"id": "p00332 Japanese Calendar",
"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": "Bob received an assignment from his school: he has t... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 2 3\\n4 5 9\\n2 3 6\"], \"outputs\": [\"YES\\nYES\\nNO\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-17408",
"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": "A knockout tournament is going on. A total of N numbe... | code | {
"ground_truth": "{\"inputs\": [\"N = 5\\nA[] = {7, 1, 5, 3, 9}\", \"N = 6\\nA[] = {8, 4, 3, 5, 2, 6}\"], \"outputs\": [\"3 1 2 1 1\", \"3 1 1 2 1 2 \"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-14774",
"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: Find the difference\n\nproblem\n\nGiven rectangul... | code | {
"ground_truth": "{\"inputs\": [\"2 3\\n..#\\n##.\\n.##\\n#..\", \"2 3\\n..\\\"\\n##.\\n.##\\n#..\", \"2 3\\n..\\\"\\n.##\\n.##\\n#..\", \"2 3\\n..#\\n#\\\".\\n.##\\n$./\", \"2 1\\n..\\\"\\n.##\\n.##\\n#./\", \"2 3\\n..#\\n#\\\".\\n##.\\n$./\", \"0 3\\n..#\\n.\\\"#\\n##.\\n$./\", \"3 3\\n#..\\n.#\\\"\\n##.\\n$./\", ... | none | {
"id": "p02182 Spot The Difference",
"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": "Mark and his crew are sailing across the sea of Aeol... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n5 2 15\\nM S S\\nS S S\\nS S P\\nS W N N N N N N N N N N N N N\\n2 1 0\\n1 2 0\\n\", \"5 5\\n4 1 15\\nM S S S S\\nS S S S L\\nS S S L L\\nS S S S S\\nS S S S P\\nC C C C S S E E C C C C C C C\\n0 1 4\\n\", \"3 3\\n5 2 15\\nM S S\\nS S S\\nS S P\\nS E N N N N N N N N N N N N N\... | rating_>1900 | {
"id": "1424_D. Does anyone else hate the wind?",
"rating": 3100,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The statement of this problem is the same as the sta... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3\\n5\\n199\\n\", \"99\\n3\\n5\\n7\\n9\\n11\\n13\\n15\\n17\\n19\\n21\\n23\\n25\\n27\\n29\\n31\\n33\\n35\\n37\\n39\\n41\\n43\\n45\\n47\\n49\\n51\\n53\\n55\\n57\\n59\\n61\\n63\\n65\\n67\\n69\\n71\\n73\\n75\\n77\\n79\\n81\\n83\\n85\\n87\\n89\\n91\\n93\\n95\\n97\\n99\\n101\\n103\\n1... | rating_>1900 | {
"id": "1354_C2. Not So Simple Polygon Embedding",
"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": "Given a collection of numbers that might contain dupl... | code | {
"ground_truth": "{\"fn_name\": \"permuteUnique\", \"inputs\": [[[1, 1, 2]], [[1, 2, 3]]], \"outputs\": [[[1, 1, 2], [1, 2, 1], [2, 1, 1]], [[1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3, 2, 1]]]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-19606",
"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": "Emuskald is an avid horticulturist and owns the worl... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n2 1\\n1 2.0\\n1 3.100\", \"3 3\\n1 5.0\\n2 5.5\\n3 6.0\", \"6 3\\n1 14.284235\\n2 17.921382\\n1 20.328172\\n3 20.842331\\n1 25.790145\\n1 27.204125\", \"1 1\\n1 0\", \"8 2\\n1 0.000000\\n1 1.000000\\n1 2.000000\\n2 2.000001\\n1 999999997.000000\\n2 999999998.000000\\n2 9999999... | rating_1601-1900 | {
"id": "269B",
"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": "John has some amount of money of which he wants to de... | code | {
"ground_truth": "{\"fn_name\": \"fortune\", \"inputs\": [[100000, 1, 2000, 15, 1], [100000, 1, 9185, 12, 1], [100000000, 1, 100000, 50, 1], [100000000, 1.5, 10000000, 50, 1], [100000000, 5, 1000000, 50, 1], [9999, 61.8161, 10000.0, 3, 0], [9998.5, 61.8155, 10000.0, 3, 0], [10000.0, 0, 10000.0, 2, 0], [999.5, 61.87,... | EASY | {
"id": "taco-train-12807",
"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": "Rahul is a geek. Head is the lucky call for him. You ... | code | {
"ground_truth": "{\"inputs\": [\"5\\nH T H T H\", \"3\\nH H H\"], \"outputs\": [\"2\\n2 3\", \"0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-19168",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You have a bag of balls of n different colors. You h... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 1\\n\", \"3\\n1 2 3\\n\", \"21\\n29 151 30 219 100 47 99 27 230 78 194 334 70 243 14 27 59 34 65 73 82\\n\", \"2\\n97908 99449\\n\", \"2\\n9837 17379\\n\", \"21\\n815 1197 783 4063 1400 96 926 867 1948 1027 213 611 2099 247 127 731 305 776 1818 383 604\\n\", \"15\\n91295 60606... | rating_>1900 | {
"id": "850_F. Rainbow Balls",
"rating": 2800,
"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": "Berlanders like to eat cones after a hard day. Misha... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n-1 0\\n1 0\\n0 -1\\n0 1\\n\", \"4 4\\n1 0\\n0 1\\n-1 0\\n0 -1\\n1 1\\n-1 1\\n-1 -1\\n1 -1\\n\", \"3 4\\n-9998 -10000\\n-10000 -9998\\n-9999 -9999\\n-9997 9996\\n-9996 9997\\n-9998 9995\\n-9995 9998\\n\", \"1 2\\n8961 -7819\\n-3068 -3093\\n-742 4108\\n\", \"2 1\\n-7087 5671\\n7... | rating_>1900 | {
"id": "549_E. Sasha Circle",
"rating": 2700,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given n integers. You need to choose a subse... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 1 1 1 1\\n\", \"12\\n3 1 4 1 5 9 2 6 5 3 5 8\\n\", \"13\\n16 18 5 17 11 12 4 11 3 16 17 2 3\\n\", \"7\\n2 1 3 3 2 3 3\\n\", \"12\\n3 1 4 1 5 9 2 6 5 3 5 8\\n\", \"11\\n19 22 18 22 21 21 19 13 21 21 16\\n\", \"15\\n6 7 11 8 13 11 4 20 17 12 9 15 18 13 9\\n\", \"1\\n1000000000\\... | rating_>1900 | {
"id": "1277_F. Beautiful Rectangle",
"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": "In this problem the input will consist of a number o... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"This is a sample piece of text to illustrate this \", \"problem. If you are smart you will solve this right.\", \"\"]], \"outputs\": [[\"right this solve will you smart are you If problem\", \"this illustrate to text of piece sample a is This\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-2347",
"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": "The academic year has just begun, but lessons and ol... | code | {
"ground_truth": "{\"inputs\": [\"3\\nUUD\\n\", \"10\\nUUDUDUUDDU\\n\", \"1\\nD\\n\", \"10\\nDUDDUUDUDD\\n\", \"50\\nUUUUUUUUUUUUUUUUUUUUUUUUUDDDDDDDDDDDDDDDDDDDDDDDDD\\n\", \"2\\nDU\\n\", \"4\\nDDDU\\n\", \"50\\nDDDDDDDDDDDDDDDDDDDDDDDDDUUUUUUUUUUUUUUUUUUUUUUUUU\\n\", \"5\\nDDDUD\\n\", \"3\\nDUU\\n\", \"1\\nU\\n\",... | rating_>1900 | {
"id": "733_E. Sleep in Class",
"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": "After studying the beacons Mister B decided to visit... | code | {
"ground_truth": "{\"inputs\": [\"4 2\\n2 3\\n\", \"5 4\\n1 1 1 1\\n\", \"18 13\\n9 2 6 6 5 1 3 1 10 3 6 4 4\\n\", \"9 18\\n5 6 6 7 1 5 10 3 9 1 9 6 1 2 3 10 1 2\\n\", \"10 20\\n10 15 23 1 4 1 2 1 1 24 7 5 2 1 1 4 76 1 2 25\\n\", \"10 24\\n10 4 1 3 4 12 1 1 1 2 1 1 1 1 3 8 1 1 5 2 6 3 7 1\\n\", \"10 10\\n1 1 6 1 1 1... | rating_>1900 | {
"id": "819_D. Mister B and Astronomers",
"rating": 2900,
"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 bustling town of Siruseri has just one sports st... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2 5\\n9 7\\n15 6\\n9 3\"], \"outputs\": [\"3\"]}",
"style": "rule"
} | none | {
"id": "stadium",
"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": "Rachel has a date and tells everyone she is not mad ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n4 2 2\\n1 7 7 5\\n1 8 1 2\\n5 1 3\\n9 8 7 2 5\\n5 4 1 8 9\\n3 3 0\\n2 3 4\\n2 3 4\\n\"], \"outputs\": [\"YES\\nNO\\nYES\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-9366",
"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 2013, the writers of Berland State University sho... | code | {
"ground_truth": "{\"inputs\": [\"2\\n5 23 1 2\\n3 13 2 3\\n\", \"3\\n12 9 2 1\\n12 8 1 3\\n12 8 2 2\\n\", \"1\\n1 10 1 13\\n\", \"3\\n3 16 25 1\\n3 15 9 34\\n3 14 90 87\\n\", \"4\\n2 15 52 53\\n2 15 35 81\\n2 15 39 96\\n2 14 87 7\\n\", \"5\\n3 6 40 89\\n3 4 24 64\\n2 28 83 1\\n3 3 15 32\\n3 8 54 28\\n\", \"10\\n8 8... | MEDIUM | {
"id": "taco-train-24829",
"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": "In ChefLand, human brain speed is measured in bits p... | code | {
"ground_truth": "{\"inputs\": [\"7 9\\n\", \"6 6\\n\", \"31 53\\n\", \"53 8\\n\"], \"outputs\": [\"YES\", \"NO\", \"YES\\n\", \"NO\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-20496",
"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 Famil Door’s birthday is coming, some of his frie... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\n(())\\n\", \"4 1\\n(\\n\", \"4 3\\n(((\\n\", \"2 2\\n)(\\n\", \"2 2\\n))\\n\", \"1542 282\\n())())()((()(()))()((())()))((())(()))))(()()))(())((()))()((()())())()))((())(((()(())((()()())((((())))((()((((()(()()))))(()(()()(())()((())())())))))()()())))(()((((()))(()(()(()(()... | rating_>1900 | {
"id": "629_C. Famil Door and Brackets",
"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": "Alice is the leader of the State Refactoring Party, ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n100 50 50\\n\", \"3\\n80 60 60\\n\", \"2\\n6 5\\n\", \"4\\n51 25 99 25\\n\", \"100\\n2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ... | EASY | {
"id": "taco-train-17795",
"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": "One of the most well-known and classic methods of en... | code | {
"ground_truth": "{\"inputs\": [\"CPMCRYY\\nALBERTA\\n\", \"TDLIVA\\nOILERS\\n\"], \"outputs\": [\"CALGARY\\n\", \"FLAMES\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-11476",
"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$ of length $n$, which init... | code | {
"ground_truth": "{\"inputs\": [\"4\\n3\\n1 2 3\\n4\\n3 1 2 4\\n3\\n2 3 1\\n6\\n2 4 6 1 3 5\\n\", \"4\\n3\\n1 2 3\\n4\\n3 1 2 4\\n3\\n2 3 1\\n6\\n2 4 12 1 3 5\\n\", \"4\\n3\\n1 2 3\\n4\\n3 1 2 2\\n3\\n2 1 1\\n6\\n2 4 7 1 6 10\\n\", \"4\\n3\\n1 0 4\\n4\\n3 1 2 4\\n3\\n2 3 1\\n6\\n2 4 6 1 5 1\\n\", \"4\\n3\\n1 2 3\\n4... | MEDIUM | {
"id": "taco-train-20471",
"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": "Mahmoud and Ehab solved Dr. Evil's questions so he g... | code | {
"ground_truth": "{\"inputs\": [\"5 9\\nmahmoud mahmoudbadawy drmahmoud drevil mahmoud\\n1 1 5\\n1 1 2\\n1 2 3\\n2 3 mahmoud\\n2 4 mahmoud\\n2 2 mahmouu\\n1 1 5\\n1 2 3\\n1 1 1\\n\", \"10 20\\nvgxgp vgxgpuamkx vgxgpua vgxgpuamk v v vgxgpu vgxgpuamkx vgx vgx\\n1 4 10\\n1 2 10\\n2 7 vgx\\n2 3 vgx\\n2 10 v\\n2 3 vgx\\n... | rating_>1900 | {
"id": "862_F. Mahmoud and Ehab and the final stage",
"rating": 2900,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a chessboard of size 1 × n. It is guar... | code | {
"ground_truth": "{\"inputs\": [\"10\\n1 2 3 4 5\\n\", \"6\\n1 2 6\\n\", \"10\\n9 8 7 6 5\\n\", \"100\\n41 13 29 11 25 15 6 23 28 50 48 17 3 9 44 24 5 19 34 22 33 32 20 16 35 37 4 10 46 2 39 40 47 49 36 42 1 30 43 21 14 7 18 45 31 8 12 26 27 38\\n\", \"10\\n10 9 8 1 5\\n\", \"6\\n3 5 6\\n\", \"6\\n1 4 5\\n\", \"100\... | rating_<=1200 | {
"id": "985_A. Chess Placing",
"rating": 1100,
"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": "Suppose there is a X x Y x Z 3D matrix A of numbers ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n3 1 1\\n1 \\n8 \\n22 \\n1 2 3\\n0 9 13 \\n18 45 51\"], \"outputs\": [\"1 \\n7 \\n14 \\n0 9 4 \\n18 18 2\"]}",
"style": "rule"
} | none | {
"id": "cubesum",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There is an array A with N elements. Each element of... | code | {
"ground_truth": "{\"inputs\": [\"6\\n5\\n1 3 2 3 7\\nNNSNS\\n2\\n2 1\\nSS\\n3\\n1 8 12\\nSNS\\n3\\n3 2 1\\nNSN\\n5\\n1 2 3 5 4\\nNSNSN\\n5\\n1 1 2 2 1\\nSNSNN\\n\"], \"outputs\": [\"1\\n-1\\n0\\n2\\n1\\n1\\n\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-1023",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "This is the hard version of the problem. The differe... | code | {
"ground_truth": "{\"inputs\": [\"3\\n14 1\\n+--++---++-++-\\n1 14\\n14 3\\n+--++---+++---\\n1 14\\n6 12\\n3 10\\n4 10\\n+-+-\\n1 1\\n1 2\\n1 3\\n1 4\\n2 2\\n2 3\\n2 4\\n3 3\\n3 4\\n4 4\\n\", \"3\\n14 1\\n+--++---++-++-\\n1 14\\n14 3\\n+--++---+++---\\n1 14\\n6 12\\n3 10\\n4 10\\n+-+-\\n1 1\\n1 2\\n1 3\\n1 4\\n2 2\\... | rating_>1900 | {
"id": "1562_D2. Two Hundred Twenty One (hard version)",
"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 board with an H \\times W grid.\nEach squa... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n..#\\n##.\\n.#.\\n\", \"4 4\\n....\\n....\\n....\\n....\\n\", \"10 8\\n##...#.#\\n##...#.#\\n..###.#.\\n#.##.#.#\\n.#..#.#.\\n..##.#.#\\n##.#.#..\\n...#.#..\\n###.#.##\\n###..###\\n\", \"3 3\\n..\\\"\\n.\\n.#.\", \"10 8\\n...#.#\\n...#.#\\n..###.#.\\n.##.$.#\\n.#..#.#.\\n..##.... | VERY_HARD | {
"id": "taco-train-9096",
"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": "A Martian boy is named s — he has got this name quit... | code | {
"ground_truth": "{\"inputs\": [\"aba\\nbaobababbah\\n\", \"mars\\nsunvenusearthmarsjupitersaturnuranusneptune\\n\", \"rry\\nsorrymercuryismissedabove\\n\", \"a\\naaaaaaaaaaaaaa\\n\", \"abcaba\\nabcabaabcabaabcabaabcaba\\n\", \"lol\\nlol\\n\", \"aaaaaaaaaaaa\\naaaaaa\\n\", \"a\\na\\n\", \"a\\na\\n\", \"a\\naaaaaaaaa... | MEDIUM | {
"id": "taco-train-6526",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A tree is an undirected connected graph without cycl... | code | {
"ground_truth": "{\"inputs\": [\"6 2\\n1 2\\n1 3\\n2 4\\n2 5\\n4 6\\n\", \"13 3\\n1 2\\n3 2\\n4 2\\n5 2\\n3 6\\n10 6\\n6 7\\n6 13\\n5 8\\n5 9\\n9 11\\n11 12\\n\", \"3 5\\n2 1\\n3 1\\n\", \"2 1\\n1 2\\n\", \"2 5\\n2 1\\n\", \"15 1\\n12 9\\n13 7\\n1 3\\n10 4\\n9 2\\n2 15\\n11 4\\n2 14\\n10 8\\n6 7\\n12 5\\n8 7\\n3 10... | HARD | {
"id": "taco-train-21200",
"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": "Everyone knows that long ago on the territory of pre... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2 4 5 3\\n\", \"3\\n2118 2118 2118\\n\", \"5\\n763 763 763 763 763\\n\", \"10\\n5938 4836 5938 5938 4836 4836 2780 2780 1495 4836\\n\", \"10\\n4972 4972 4972 4858 4858 4972 4972 4972 4858 4972\\n\", \"5\\n3581 3581 305 305 3581\\n\", \"4\\n2440 2440 2440 2440\\n\", \"10\\n8097... | rating_>1900 | {
"id": "5_E. Bindian Signalizing",
"rating": 2400,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Read problem statements in [Hindi], [Bengali], [Mand... | code | {
"ground_truth": "{\"inputs\": [\"1\\n2\"], \"outputs\": [\"1 2\\n4 3\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-15112",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a Binary Tree (BT), convert it to a Doubly Link... | 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 \\r\\n2 1 3\", \"40 20 60 10 30 \\r\\n30 10 60 20 40\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-7725",
"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 complete undirected graph. For each ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n0 1 1\\n1 0 4\\n1 4 0\\n\", \"4\\n0 1 2 3\\n1 0 4 5\\n2 4 0 6\\n3 5 6 0\\n\", \"10\\n0 16 67 7 82 44 25 13 25 42\\n16 0 24 37 63 20 19 87 55 99\\n67 24 0 81 19 71 35 6 20 91\\n7 37 81 0 82 89 34 80 7 32\\n82 63 19 82 0 42 66 96 42 99\\n44 20 71 89 42 0 65 94 24 45\\n25 19 35 34 ... | HARD | {
"id": "taco-train-15739",
"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": "You are given an array a consisting of n integers, a... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\n5 2 4 1\\n\", \"3 20\\n199 41 299\\n\", \"5 10\\n47 100 49 2 56\\n\", \"5 1000\\n38361 75847 14913 11499 8297\\n\", \"10 10\\n48 33 96 77 67 59 35 15 14 86\\n\", \"10 1000\\n16140 63909 7177 99953 35627 40994 29288 7324 44476 36738\\n\", \"30 10\\n99 44 42 36 43 82 99 99 10 79... | MEDIUM_HARD | {
"id": "taco-test-530",
"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": "Kicker (table football) is a board game based on foo... | code | {
"ground_truth": "{\"inputs\": [\"1 100\\n100 1\\n99 99\\n99 99\\n\", \"1 1\\n2 2\\n3 3\\n2 2\\n\", \"3 3\\n2 2\\n1 1\\n2 2\\n\", \"80 79\\n79 30\\n80 81\\n40 80\\n\", \"10 10\\n4 9\\n8 9\\n7 6\\n\", \"10 2\\n9 3\\n3 1\\n9 4\\n\", \"6 3\\n6 10\\n2 5\\n4 4\\n\", \"8 7\\n1 5\\n7 4\\n8 8\\n\", \"2 7\\n8 4\\n4 6\\n10 8\... | MEDIUM_HARD | {
"id": "taco-train-17647",
"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 came to a cash & carry store, put n items into h... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2 10\\n0 20\\n1 5\\n1 3\\n\", \"3\\n0 1\\n0 10\\n0 100\\n\", \"5\\n0 968804136\\n0 736567537\\n2 343136264\\n0 259899572\\n1 425744418\\n\", \"5\\n0 51690939\\n0 62436494\\n0 39009053\\n0 70426298\\n0 631569476\\n\", \"5\\n5 491957578\\n4 747764103\\n3 446810728\\n4 896625835\\n... | rating_1601-1900 | {
"id": "19_B. Checkout Assistant",
"rating": 1900,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Alice and Bob play a game. They have a binary string... | code | {
"ground_truth": "{\"inputs\": [\"5\\n01111001\\n0000\\n111111\\n101010101\\n011011110111\\n\", \"5\\n01111101\\n0000\\n111111\\n101010101\\n011011110111\\n\", \"5\\n01111101\\n0000\\n111111\\n101010101\\n011001110111\\n\", \"5\\n01111101\\n0000\\n111111\\n101010101\\n011001111111\\n\", \"5\\n11111101\\n0000\\n11111... | EASY | {
"id": "taco-train-22825",
"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 just bought an “artistic” aquarium tank that has... | code | {
"ground_truth": "{\"inputs\": [\"4\\n30 50\\n20 0\\n100 0\\n100 40\\n20 40\\n\", \"9\\n30 70\\n110 70\\n100 80\\n80 80\\n-10 60\\n-40 30\\n-40 25\\n20 0\\n100 0\\n120 10\\n\"], \"outputs\": [\"20.83\\n\", \"19.74\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-1878",
"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": "Chef has $K$ chocolates and he wants to distribute t... | code | {
"ground_truth": "{\"inputs\": [[\"1\", \"3\", \"2\"]], \"outputs\": [[\"2\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-19400",
"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": "To plan for Final Day attack on the city of Lanka Su... | code | {
"ground_truth": "{\"inputs\": [\"50\\n13 18\\n3 1 85\\n5 8 95\\n7 8 5\\n1 5 14\\n13 1 24\\n11 2 34\\n13 8 44\\n1 8 54\\n7 1 63\\n12 9 73\\n7 6 9\\n1 7 19\\n8 1 29\\n2 7 48\\n8 11 58\\n2 8 68\\n2 10 84\\n3 10 94\\n\\n15 97\\n11 13 7\\n1 14 16\\n1 13 26\\n11 14 36\\n11 10 46\\n4 11 56\\n7 10 65\\n5 11 75\\n12 10 85\\... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-9731",
"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": "Due to the success of TWICE, JYP Entertainment has e... | code | {
"ground_truth": "{\"inputs\": [\"8\\n7F\\n3F\\n1F\\n0C\\n06\\n03\\n11\\n18\\n\", \"4\\n7\\n2\\n1\\n4\\n\", \"12\\n410\\n000\\nD1F\\nC17\\nF5F\\nF1F\\nFDF\\n400\\nD17\\nC13\\nC11\\nC10\\n\", \"12\\n092\\n899\\nD6D\\nC2D\\n366\\nD2D\\nC1D\\n3C2\\n893\\nC19\\n764\\n892\\n\", \"12\\n1C6\\nA5B\\n85B\\n68D\\n619\\n186\\n... | rating_>1900 | {
"id": "1338_E. JYPnation",
"rating": 3500,
"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": "Vera is an astronomer studying locality of nearby st... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 0 0\\n1 1 0\\n0 0 0\\n0 0 1\\n\", \"4\\n-100 0 0\\n10 0 10\\n-10 -10 -10\\n0 0 0\\n\", \"7\\n10 20 30\\n0 0 0\\n-100 1000 -20\\n100 -20 33\\n8 -7 900\\n-100 -223 -23\\n3 0 3\\n\"], \"outputs\": [\"1.57079633\\n\", \"41938.65135885\\n\", \"298192571.11934924\\n\"]}",
"style":... | HARD | {
"id": "taco-train-3558",
"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 length of the longest common prefix of two strin... | code | {
"ground_truth": "{\"inputs\": [\"bbaaa\\n5\\n2 4\\n1 5\\n1 5\\n3 3\\n1 2\\n\", \"abbd\\n4\\n2 3\\n1 3\\n3 3\\n1 4\\n\", \"bbbaaaabbaaabbababaababaabababbbaabaaaabbbbaaabaay\\n50\\n4 48\\n11 36\\n3 3\\n6 14\\n1 37\\n23 26\\n17 42\\n18 27\\n19 40\\n10 26\\n2 28\\n12 13\\n16 34\\n8 44\\n43 49\\n5 9\\n2 40\\n4 27\\n19 ... | rating_>1900 | {
"id": "1098_F. Ж-function",
"rating": 3500,
"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": "Construct an N-gon that satisfies the following cond... | code | {
"ground_truth": "{\"inputs\": [\"8\\n90\\n90\\n270\\n90\\n90\\n90\\n270\\n90\", \"3\\n90\\n90\\n90\", \"3\\n90\\n9\\n90\", \"3\\n90\\n9\\n160\", \"3\\n90\\n3\\n160\", \"3\\n42\\n3\\n160\", \"3\\n42\\n5\\n160\", \"3\\n28\\n5\\n160\", \"3\\n28\\n4\\n160\", \"3\\n12\\n4\\n160\", \"3\\n12\\n0\\n160\", \"3\\n12\\n1\\n16... | none | {
"id": "p03886 CODE FESTIVAL 2016 Grand Final(Parallel) - 90 and 270",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Little Petya very much likes rectangular tables that... | code | {
"ground_truth": "{\"inputs\": [\"7 7\\n1111111\\n1000101\\n1000101\\n1000101\\n1000111\\n1000001\\n1111111\\n\", \"5 5\\n11111\\n10001\\n10101\\n10001\\n11111\\n\", \"3 3\\n111\\n101\\n111\\n\", \"5 5\\n01010\\n10101\\n01010\\n10101\\n01010\\n\", \"4 3\\n111\\n111\\n111\\n000\\n\", \"4 2\\n11\\n11\\n11\\n11\\n\", \... | rating_>1900 | {
"id": "135_D. Cycle",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a natural number n, calculate sum of all its pr... | code | {
"ground_truth": "{\"inputs\": [\"n = 10\", \"n = 6\"], \"outputs\": [\"8\", \"6\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-21260",
"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": "Stanley and Megan decided to shop in the \"Crossmark... | code | {
"ground_truth": "{\"inputs\": [\"7\\n7 5\\n5 7\\n1 1\\n100000 100000\\n57 228\\n1 5\\n5 1\\n\", \"1\\n2 2\\n\", \"4\\n1 1\\n1 2\\n2 1\\n2 2\\n\"], \"outputs\": [\"15\\n15\\n0\\n299998\\n340\\n5\\n5\\n\", \"4\\n\", \"0\\n2\\n2\\n4\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-3702",
"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.