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": "Consider some set of distinct characters $A$ and som...
code
{ "ground_truth": "{\"inputs\": [\"3 1 2\\n1\\n\", \"9 2 26\\n2 3\\n\", \"12 3 1\\n2 5 6\\n\", \"2 1 1\\n1\\n\", \"2 1 234\\n1\\n\", \"6 2 5\\n1 3\\n\", \"2 1 1000000000\\n1\\n\", \"1000000000 1 1\\n1\\n\", \"1000000000 2 2\\n1 500000000\\n\", \"8 1 8\\n2\\n\", \"1000000000 1 1\\n1\\n\", \"1000000000 2 2\\n1 50000000...
HARD
{ "id": "taco-train-4865", "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": "Shohag has an integer sequence $a_1, a_2, \\ldots, a...
code
{ "ground_truth": "{\"inputs\": [\"4\\n3\\n1 3 4\\n5\\n1 2 5 7 4\\n1\\n1\\n3\\n69 6969 696969\\n\", \"1\\n39\\n481199252 336470888 634074578 642802746 740396295 773386884 579721198 396628655 503722503 971207868 202647942 2087506 268792718 46761498 443917727 16843338 125908043 691952768 717268783 787375312 150414369 6...
EASY
{ "id": "taco-train-21318", "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": "Jeff's got n cards, each card contains either digit ...
code
{ "ground_truth": "{\"inputs\": [\"4\\n5 0 5 0\\n\", \"11\\n5 5 5 5 5 5 5 5 0 5 5\\n\", \"7\\n5 5 5 5 5 5 5\\n\", \"1\\n5\\n\", \"1\\n0\\n\", \"11\\n5 0 5 5 5 0 0 5 5 5 5\\n\", \"23\\n5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 0 0 0 0 0\\n\", \"9\\n5 5 5 5 5 5 5 5 5\\n\", \"24\\n5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 0 0 0 0...
EASY
{ "id": "taco-train-1447", "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": "Duff is in love with lovely numbers! A positive inte...
code
{ "ground_truth": "{\"inputs\": [\"10\\n\", \"12\\n\", \"1\\n\", \"2\\n\", \"4\\n\", \"8\\n\", \"3\\n\", \"31\\n\", \"97\\n\", \"1000000000000\\n\", \"15\\n\", \"894\\n\", \"271\\n\", \"2457\\n\", \"2829\\n\", \"5000\\n\", \"20\\n\", \"68\\n\", \"3096\\n\", \"1024\\n\", \"1048576\\n\", \"413933789280\\n\", \"81763415...
EASY
{ "id": "taco-train-20465", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problems statements in Mandarin chinese, Russia...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3 6\\n10 15 30\\n3 4\\n5 10 20\"], \"outputs\": [\"YES\\nNO\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-21503", "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": "ACM University holds its sports day in every July. T...
code
{ "ground_truth": "{\"inputs\": [\"2\\n-40 -40 100 30\\n-100 -100 -50 -30 1\\n30 -70 90 -30 10\\n2\\n-4 -4 10 3\\n-10 -10 -5 -3 1\\n3 -7 9 -3 1\\n2\\n-40 -40 100 30\\n-100 -100 -50 -30 3\\n30 -70 90 -30 10\\n2\\n-400 -400 1000 300\\n-800 -800 -500 -300 7\\n300 -700 900 -300 20\\n3\\n20 70 150 70\\n0 0 50 50 4\\n40 10...
none
{ "id": "p00738 Roll-A-Big-Ball", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Harry, Ron and Hermonie are in their third year at H...
code
{ "ground_truth": "{\"inputs\": [\"100\\n1 12\\n2 9\\n2 10\\n2 11\\n2 12\\n3 9\\n3 10\\n3 11\\n3 12\\n4 1\\n4 2\\n5 14\\n6 12\\n7 1\\n7 2\\n7 3\\n7 4\\n8 3\\n8 4\\n8 5\\n8 6\\n9 11\\n9 12\\n5 2\\n1 15\\n9 10\\n8 15\\n10 7\\n5 14\\n3 15\\n10 6\\n10 10\\n3 2\\n4 14\\n7 4\\n7 10\\n2 5\\n2 9\\n5 10\\n6 5\\n2 1\\n10 10\\n...
UNKNOWN_DIFFICULTY
{ "id": "taco-train-25146", "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": "Two players are playing a game on a $15\\times15$ ch...
code
{ "ground_truth": "{\"inputs\": [\"3\\n5 2\\n5 3\\n8 8\\n\"], \"outputs\": [\"Second\\nFirst\\nFirst\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-6134", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Valera has got a rectangle table consisting of *n* r...
code
{ "ground_truth": "{\"inputs\": [\"3 3 3\", \"2 3 1\", \"2 3 1\", \"300 300 2\", \"300 300 150\", \"300 299 299\", \"300 300 45000\", \"300 299 44850\", \"2 2 2\", \"2 3 3\", \"3 3 4\", \"5 5 12\", \"7 5 17\", \"135 91 4352\", \"32 27 153\", \"74 83 2667\", \"296 218 5275\", \"89 82 2330\", \"15 68 212\", \"95 4 177\...
rating_1401-1600
{ "id": "441C", "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": "Kyoya Ootori is selling photobooks of the Ouran High...
code
{ "ground_truth": "{\"inputs\": [\"hi\\n\", \"a\\n\", \"lpfpndmjfvqejdgf\\n\", \"jgv\\n\", \"fykkiubdkt\\n\", \"ydzpjhsidipricw\\n\", \"gggggggggggggggggggg\\n\", \"kgan\\n\", \"lllllllllllllll\\n\", \"e\\n\", \"ofkvparuvjtggnmab\\n\", \"zv\\n\", \"xxncfutrtxcwdzwbgs\\n\", \"kskkskkkssksssk\\n\", \"coccoooogogcgocccm...
rating_<=1200
{ "id": "554_A. Kyoya and Photobooks", "rating": 900, "split": "confidence_train", "sub_source": "rating_<=1200" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Sam has been teaching Jon the Game of Stones to shar...
code
{ "ground_truth": "{\"inputs\": [\"1\\n5\\n\", \"2\\n1\\n2\\n\", \"2\\n34\\n44\\n\", \"3\\n34\\n44\\n21\\n\", \"6\\n34\\n44\\n21\\n55\\n1\\n36\\n\", \"124\\n34\\n44\\n21\\n55\\n1\\n36\\n53\\n31\\n58\\n59\\n11\\n40\\n20\\n32\\n43\\n48\\n16\\n5\\n35\\n20\\n21\\n36\\n15\\n2\\n11\\n56\\n58\\n2\\n40\\n47\\n29\\n21\\n4\\n2...
rating_>1900
{ "id": "768_E. Game of Stones", "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": "Game field is represented by a line of n square cell...
code
{ "ground_truth": "{\"inputs\": [\"8\\n*...P..*\\n\", \"6\\n*.P*P*\\n\", \"6\\n*.PP..\\n\", \"12\\nP**.*P*P*P**\\n\", \"2\\n*P\\n\", \"100\\nPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP*PPPPPPPPPPPPP\\n\", \"6\\n.**P**\\n\", \"100\\nP***PP*P*PP*PPPPPP**P****P***PP*****PPPPP**...
rating_>1900
{ "id": "883_D. Packmen Strike Back", "rating": 2500, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Rakesh has built a model rocket and wants to test ho...
code
{ "ground_truth": "{\"inputs\": [[\"1\", \"10 12 4 5 3\"]], \"outputs\": [[\"0\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-24517", "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": "Write a function that checks the braces status in a s...
code
{ "ground_truth": "{\"fn_name\": \"braces_status\", \"inputs\": [[\"[()]\"], [\"{[]}\"], [\"{[()]}\"], [\"([)]\"], [\"([[some](){text}here]...)\"], [\"}\"], [\"[()]]\"], [\"[()]{(\"], [\"()[]{}()\"], [\"[[[[\"]], \"outputs\": [[true], [true], [true], [false], [true], [false], [false], [false], [true], [false]]}", "...
EASY
{ "id": "taco-train-25228", "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": "Greg is a beginner bodybuilder. Today the gym coach ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n5 1 10\\n\", \"7\\n3 3 2 7 9 6 8\\n\", \"2\\n2 8\\n\", \"1\\n10\\n\", \"1\\n19\\n\", \"5\\n4 24 1 9 19\\n\", \"8\\n5 16 8 9 17 16 14 7\\n\", \"3\\n18 18 23\\n\", \"4\\n5 6 6 2\\n\", \"2\\n15 3\\n\", \"10\\n4 9 8 5 3 8 8 10 4 2\\n\", \"17\\n7 22 9 22 8 7 20 22 23 5 12 11 1 24 17 ...
rating_<=1200
{ "id": "255_A. Greg's Workout", "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": "A robot is initially at $(0,0)$ on the cartesian pla...
code
{ "ground_truth": "{\"inputs\": [[\"5\", \"1\", \"2\", \"3\", \"50\", \"12233443\"]], \"outputs\": [[\"0 1\", \"-1 1\", \"-1 0\", \"2 4\", \"-1749 812\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-5197", "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": "Ryouko is an extremely forgetful girl, she could eve...
code
{ "ground_truth": "{\"inputs\": [\"10 5\\n9 4 3 8 8\\n\", \"4 6\\n1 2 3 4 3 2\\n\", \"10 10\\n8 8 8 7 7 7 6 1 1 1\\n\", \"100000 50\\n43104 45692 17950 43454 99127 33540 80887 7990 116 79790 66870 61322 5479 24876 7182 99165 81535 3498 54340 7460 43666 921 1905 68827 79308 59965 8437 13422 40523 59605 39474 22019 657...
rating_1601-1900
{ "id": "433_C. Ryouko's Memory Note", "rating": 1800, "split": "confidence_train", "sub_source": "rating_1601-1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The United Federation of Planets is an alliance of N...
code
{ "ground_truth": "{\"inputs\": [\"3 1\\n1 2\\n2 3\\n\"], \"outputs\": [\"\\n4\\n\"]}", "style": "rule" }
rating_>1900
{ "id": "1402_C. Star Trek", "rating": 2600, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Not so long ago, Vlad came up with an interesting fu...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1 4 3\\n5 8 4\\n6 10 6\\n1 1000000000 1000000000\\n10 12 8\\n\", \"1\\n87 95 696969\\n\", \"1\\n6 999998 9\\n\", \"1\\n1 100 55\\n\", \"3\\n1 100 54\\n1 100 55\\n1 100 56\\n\"], \"outputs\": [\"2\\n4\\n5\\n999999999\\n5\\n\", \"95\\n\", \"111118\\n\", \"54\\n\", \"53\\n54\\n55\\...
EASY
{ "id": "taco-train-17820", "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": "There are $N$ lines. Each line has an index between ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n-1 3\\n-2 -4\\n3\\n1 2 0 0\\n1 1 0 0\\n2 2 0 0\\n\"], \"outputs\": [\"YES\\nYES\\nNO\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-16034", "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": "Kulyash has given you an array A of size N. \n\nHe d...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2\\n1 2\\n4\\n1 2 3 4\\n2\\n7 7\\n\"], \"outputs\": [\"0\\n1\\n3\\n\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-19416", "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 a seasoned Fight Club member who recently st...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\nx..\\n.x.\\nx.x\\n\", \"3 4\\n.xx.\\nx...\\nx..x\\n\"], \"outputs\": [\"2\\n\", \"3\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-18580", "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": "Spike is competing in the Gauntlet of Fire for the t...
code
{ "ground_truth": "{\"inputs\": [\"5 5\\n1 2 3\\n1 4 8\\n2 3 12\\n3 5 4\\n4 5 2\\n\", \"7 6\\n1 2 8\\n1 3 15\\n1 4 10\\n3 5 40\\n3 6 3\\n5 7 60\\n\"], \"outputs\": [\"35 39 36 27 29\\n\", \"221 261 206 271 326 221 626\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-8086", "rating": null, "split": "confidence_train", "sub_source": "HARD" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a rectangle of dimensions L x B find the minimu...
code
{ "ground_truth": "{\"inputs\": [\"L = 2, B = 4\", \"L = 6, B = 3\"], \"outputs\": [\"N = 2, K = 2\", \" N = 2, K = 3\"]}", "style": "rule" }
EASY
{ "id": "taco-train-1749", "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 wants to organize a contest. Predicting difficu...
code
{ "ground_truth": "{\"inputs\": [[\"6\", \"3 100\", \"10 1 100\", \"3 100\", \"11 1 100\", \"3 100\", \"10 1 10\", \"3 100\", \"10 1 50\", \"4 100\", \"50 50 50 50\", \"4 100\", \"1 1 1 1\"]], \"outputs\": [[\"yes\", \"no\", \"no\", \"yes\", \"no\", \"no\"]]}", "style": "rule" }
EASY
{ "id": "taco-train-22611", "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 string S. The task is to count the num...
code
{ "ground_truth": "{\"inputs\": [\"N = 4\\nS = 1111\", \"N = 5\\nS = 01101\"], \"outputs\": [\"6\", \"3\"]}", "style": "rule" }
EASY
{ "id": "taco-train-7960", "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": "Amicable numbers are two different numbers so related...
code
{ "ground_truth": "{\"inputs\": [\"A = 220 , B = 284\", \"A = 4 , B = 8\"], \"outputs\": [\"1\", \"0\"]}", "style": "rule" }
EASY
{ "id": "taco-train-13530", "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": "What-The-Fatherland is a strange country! All phone ...
code
{ "ground_truth": "{\"inputs\": [\"5 5\\na\\nab\\nabab\\nababab\\nb\\n1 5 1\\n3 5 1\\n1 5 2\\n1 5 3\\n1 4 5\\n\", \"1 3\\nf\\n1 1 1\\n1 1 1\\n1 1 1\\n\", \"3 1\\na\\nb\\nab\\n1 2 3\\n\", \"1 1\\na\\n1 1 1\\n\", \"2 6\\nab\\nab\\n1 2 1\\n1 2 2\\n1 1 1\\n1 1 2\\n2 2 1\\n2 2 2\\n\", \"5 10\\nudo\\nwzb\\nlt\\ny\\ns\\n3 4...
rating_>1900
{ "id": "547_E. Mike and Friends", "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": "Chef likes problems which using some math. Now he as...
code
{ "ground_truth": "{\"inputs\": [[\"3\", \"1 2 0 3\", \"1 2 4 -1\", \"1 2 3 4\"]], \"outputs\": [[\"Yes\", \"Yes\", \"No\"]]}", "style": "rule" }
EASY
{ "id": "taco-train-24038", "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 of positive integers. While t...
code
{ "ground_truth": "{\"inputs\": [\"7\\n3 4 1 2 2 1 1\\n\", \"5\\n1 1 3 1 1\\n\", \"5\\n10 40 20 50 30\\n\", \"100\\n10 10 15 12 15 13 15 12 10 10 15 11 13 14 13 14 10 13 12 10 14 12 13 11 14 15 12 11 11 15 12 12 11 14 14 14 15 10 10 15 15 13 13 15 10 12 14 10 12 13 11 15 11 13 14 12 10 12 11 14 13 15 13 15 13 14 14 1...
MEDIUM_HARD
{ "id": "taco-train-10640", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM_HARD" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a Binary Tree of size N , where each node can h...
code
{ "ground_truth": "{\"inputs\": [\"10\\\\n / \\\\\\\\n -2 6\\\\n / \\\\\\\\ / \\\\\\\\n 8 -4 7 5\"], \"outputs\": [\" 20\\\\n / \\\\\\\\n 4 12\\\\n / \\\\ / \\\\\\\\n 0 0 0 0\\\\n\"]}", "style": "rule...
EASY
{ "id": "taco-train-11497", "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 19th century German mathematician Hermann Minkow...
code
{ "ground_truth": "{\"inputs\": [\"1\\n\", \"21\\n\", \"42\\n\"], \"outputs\": [\"3.141593\\n2.000000\\n\", \"1385.442360\\n882.000000\\n\", \"5541.769441\\n3528.000000\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-18238", "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": "Sachin wants to give a love letter to his girlfriend...
code
{ "ground_truth": "{\"inputs\": [\"1234\"], \"outputs\": [\"4781385\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-22436", "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": "Currently Tiny is learning Computational Geometry. W...
code
{ "ground_truth": "{\"inputs\": [\"4 3\", \"2 100\", \"5 6\", \"8 20\", \"6 15\", \"1808 505823289\", \"1850 507001807\", \"1892 948371814\", \"1788 94774524\", \"1947 944738707\", \"1989 367830\", \"1885 1096142\", \"1854 631695\", \"1750 215129\", \"1792 341122\", \"1834 1680860\", \"1657 1371995\", \"1699 1442450\...
rating_1201-1400
{ "id": "311A", "rating": 1300, "split": "confidence_train", "sub_source": "rating_1201-1400" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Toshizo is the manager of a convenience store chain ...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\n? ? 70 105\\n? 50 ? 150\\n30 60 90 180\\n45 150 240 435\\n\\n2 2\\n? ? 40\\n? ? 40\\n40 40 80\\n\\n2 3\\n? 30 40 90\\n50 60 70 180\\n70 90 110 270\\n\\n0\", \"3 3\\n? ? 70 105\\n? 50 ? 150\\n30 60 90 180\\n45 150 240 435\\n\\n2 2\\n? ? 40\\n? ? 40\\n40 40 80\\n\\n2 3\\n? 30 40...
none
{ "id": "p00698 Missing Numbers", "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 new set of desks just arrived, and it's about time...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1 5\\n5 2\\n3 7\\n7 3\\n\", \"5\\n1 10\\n2 10\\n3 10\\n4 10\\n5 5\\n\", \"1\\n1 2\\n\", \"30\\n22 37\\n12 37\\n37 58\\n29 57\\n43 57\\n57 58\\n58 53\\n45 4\\n1 4\\n4 51\\n35 31\\n21 31\\n31 51\\n51 53\\n53 48\\n60 55\\n52 55\\n55 33\\n36 9\\n10 9\\n9 33\\n33 19\\n5 23\\n47 23\\n...
rating_>1900
{ "id": "859_E. Desk Disorder", "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": "Problem\n\nN people with IDs from 1 to N are about t...
code
{ "ground_truth": "{\"inputs\": [\"5\\n3 3 4 4 5\", \"5\\n1 2 3 4 5\", \"5\\n2 2 3 4 5\", \"5\\n2 2 1 4 5\", \"5\\n3 2 1 4 5\", \"5\\n3 4 1 4 5\", \"5\\n1 4 3 4 5\", \"5\\n4 2 1 4 5\", \"5\\n3 4 1 5 5\", \"5\\n1 4 4 4 5\", \"5\\n4 2 1 4 2\", \"5\\n1 4 4 5 5\", \"5\\n5 2 1 4 2\", \"5\\n2 2 5 4 5\", \"5\\n5 4 1 4 5\", ...
none
{ "id": "p02104 Chairs", "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 girl Tanya climbs the stairs inside a multi-s...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1 1 1 1\\n\", \"5\\n1 2 3 4 5\\n\", \"7\\n1 2 3 1 2 3 4\\n\", \"5\\n1 2 1 2 1\\n\", \"48\\n1 2 3 4 1 2 3 1 1 2 3 1 2 3 4 1 1 2 3 4 1 2 3 4 1 2 3 4 1 1 2 1 2 1 2 1 1 2 1 2 1 2 3 1 2 1 2 1\\n\", \"2\\n1 2\\n\", \"3\\n1 1 2\\n\", \"4\\n1 1 2 3\\n\", \"8\\n1 2 3 1 2 3 4 5\\n\", \"5\...
rating_<=1200
{ "id": "1005_A. Tanya and Stairways", "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": "Welcome to PC Koshien, players. At PC Koshien, compe...
code
{ "ground_truth": "{\"inputs\": [\"10 10 20\", \"100 0 0\", \"1000 1000 1000\", \"20 10 20\", \"100 0 1\", \"0000 1000 1000\", \"5 10 20\", \"110 0 1\", \"0000 0000 1000\", \"6 10 20\", \"110 -1 1\", \"0001 0000 1000\", \"6 10 15\", \"110 0 2\", \"0101 0000 1000\", \"010 0 2\", \"0100 0000 1000\", \"9 15 15\", \"0100...
none
{ "id": "p00310 The Number of Participants", "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": "Snuke's mother gave Snuke an undirected graph consis...
code
{ "ground_truth": "{\"inputs\": [\"4 4 3\\n0 1 0\\n1 2 1\\n2 3 0\", \"10 9 9\\n7 6 0\\n4 5 1\\n9 7 0\\n2 9 0\\n2 3 0\\n4 1 0\\n8 0 0\\n9 1 0\\n3 0 0\", \"5 5 3\\n0 1 0\\n1 2 1\\n2 3 0\", \"4 4 3\\n0 1 0\\n1 2 1\\n1 3 0\", \"5 5 3\\n0 1 0\\n1 4 1\\n2 3 0\", \"10 9 9\\n7 6 0\\n4 5 1\\n9 7 0\\n2 9 0\\n2 3 0\\n4 1 0\\n10...
none
{ "id": "p02906 AtCoder Grand Contest 038 - Unique Path", "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": "Mahmoud wants to send a message to his friend Ehab. ...
code
{ "ground_truth": "{\"inputs\": [\"5 4 4\\ni loser am the second\\n100 1 1 5 10\\n1 1\\n1 3\\n2 2 5\\n1 4\\ni am the second\", \"5 4 4\\ni loser am the second\\n100 20 1 5 10\\n1 1\\n1 3\\n2 2 5\\n1 4\\ni am the second\", \"1 1 1\\na\\n1000000000\\n1 1\\na\", \"1 1 10\\na\\n1000000000\\n1 1\\na a a a a a a a a a\"], ...
rating_<=1200
{ "id": "959B", "rating": 1200, "split": "confidence_train", "sub_source": "rating_<=1200" }
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": "— I experienced so many great things.\n\n— You gave ...
code
{ "ground_truth": "{\"inputs\": [\"2 100\", \"5 30\", \"42147 412393322\", \"77809 868097296\", \"5105 443422097\", \"75615 376679484\", \"22951 23793302\", \"12785 993582106\", \"60276 428978808\", \"84776 104860385\", \"41984 653766991\", \"100000 1000000000\", \"41163 472310076\", \"6983 765352180\", \"33493 96772...
rating_1201-1400
{ "id": "897B", "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": "The enchanted forest got its name from the magical m...
code
{ "ground_truth": "{\"inputs\": [\"4\\n5 2\\n5 6 1 2 3\\n5 7\\n5 6 1 2 3\\n1 2\\n999999\\n5 70000\\n1000000000 1000000000 1000000000 1000000000 1000000000\\n\"], \"outputs\": [\"12\\n37\\n1000000\\n5000349985\\n\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-20541", "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": "Problem\n\nGhosts line up in a straight line from le...
code
{ "ground_truth": "{\"inputs\": [\"3 1\\nRRL\\n5 5 1\\n3 1 10\", \"5 5\\nRLRLL\\n9 5 1 3 10\\n1 3 5\\n2 4 9\\n4 2 16\\n1 5 2\\n3 5 10\", \"3 1\\nRRL\\n5 5 1\\n3 1 3\", \"5 5\\nRLRLL\\n9 5 1 3 10\\n1 3 5\\n2 4 9\\n4 2 7\\n1 5 2\\n3 5 10\", \"5 5\\nRLRLL\\n9 5 1 3 10\\n1 4 5\\n2 4 9\\n2 2 7\\n1 5 2\\n3 5 10\", \"5 5\\n...
none
{ "id": "p02156 Ghost", "rating": 0, "split": "confidence_train", "sub_source": "none" }