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 given array a with n elements and the number... | code | {
"ground_truth": "{\"inputs\": [\"7 8\\n6 2 9 2 7 2 3\\n\", \"6 4\\n2 2 2 3 3 3\\n\", \"10 50\\n39 22 60 88 11 65 41 85 65 100\\n\", \"100 343\\n999 284 486 785 176 742 856 415 992 601 600 122 460 214 338 92 627 913 376 835 384 914 335 179 409 957 96 784 531 43 584 206 971 799 592 801 870 978 437 517 466 952 1 327 7... | HARD | {
"id": "taco-train-11944",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There is a war going on between two countries and th... | code | {
"ground_truth": "{\"inputs\": [\"AC\\nAD\\nAE\\nCE\\nCF\\nED\\nGF\\nBG\\nHB\\nGH\\nEND\"], \"outputs\": [\"CF\\nGF\"]}",
"style": "rule"
} | none | {
"id": "qcj2",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an undirected graph with V nodes and E edges. T... | code | {
"ground_truth": "{\"inputs\": [\"\", \"\"], \"outputs\": [\"1\", \"0\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-5250",
"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": "Inna and Dima bought a table of size n × m in the sh... | code | {
"ground_truth": "{\"inputs\": [\"1 2\\nDI\\n\", \"2 2\\nMA\\nID\\n\", \"5 5\\nDIMAD\\nDIMAI\\nDIMAM\\nDDMAA\\nAAMID\\n\", \"1 1\\nI\\n\", \"5 5\\nDIMAD\\nADDDI\\nMDDDM\\nIDDDA\\nDAMID\\n\", \"5 5\\nAAAAA\\nAAAAA\\nAAAAA\\nAAAAA\\nAAAAA\\n\", \"1 1\\nD\\n\", \"1 4\\nDIMA\\n\", \"4 1\\nD\\nI\\nM\\nA\\n\", \"2 2\\nDI\... | HARD | {
"id": "taco-train-17064",
"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 two strings a and b consisting of lowercase cha... | code | {
"ground_truth": "{\"inputs\": [\"a = geeksforgeeks, b = forgeeksgeeks\", \"a = allergy, b = allergic\"], \"outputs\": [\"YES\", \"NO\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-21377",
"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 and Ru... | code | {
"ground_truth": "{\"inputs\": [\"3\\n10\\n2 1 3 8 1\\n0\\n10\\n2 1 3 8 5\\n0\\n10\\n2 2 3 8 5\\n3 1 2 1 4 3 2 9 1 1\", \"3\\n10\\n2 1 3 8 1\\n0\\n10\\n2 1 3 8 5\\n0\\n10\\n2 2 3 8 3\\n3 1 2 1 4 3 2 9 1 1\", \"3\\n10\\n2 1 3 8 1\\n0\\n10\\n2 1 3 8 5\\n0\\n10\\n2 2 1 8 5\\n3 1 2 1 4 3 2 9 1 1\", \"3\\n10\\n2 1 3 8 1\... | HARD | {
"id": "taco-train-3242",
"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 an integer array arr of size n, you need to sum... | code | {
"ground_truth": "{\"fn_name\": \"sumElement\", \"inputs\": [\"n = 3\\narr[] = {3 2 1}\", \"n = 4\\narr[] = {1 2 3 4}\"], \"outputs\": [\"6\", \"10\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-14810",
"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": "Martian scientists explore Ganymede, one of Jupiter'... | code | {
"ground_truth": "{\"inputs\": [\"7\\n3 5\\n18 9 21\\n3 5\\n18 18 18\\n1 1\\n1\\n5 30\\n1 2 3 4 5\\n6 10\\n99 35 85 46 78 55\\n2 1\\n0 1\\n8 8\\n5 16 42 15 83 65 78 42\\n\"], \"outputs\": [\"17\\n18\\n1\\n1\\n39\\n0\\n2\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-3617",
"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": "Euler’s number (you may know it better as just $e$) ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n\", \"15\\n\"], \"outputs\": [\"2.6666666666666665\\n\", \"2.718281828458995\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-1074",
"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": "Harsh is thinking of starting his own business.He ha... | code | {
"ground_truth": "{\"inputs\": [\"2 \\n3 \\n1 2 3 \\n3 3 3 \\n5 \\n1 2 3 4 5 \\n2 3 4 5 6 \\n\\nSAMPLE\", \"2 \\n3 \\n1 2 3 \\n3 6 3 \\n5 \\n1 2 3 4 5 \\n2 3 4 5 6 \\n\\nSAMPLE\", \"2 \\n3 \\n1 2 3 \\n3 6 3 \\n5 \\n1 2 3 4 5 \\n2 5 4 5 6 \\n\\nSAMPLE\", \"2 \\n3 \\n1 4 0 \\n6 6 3 \\n5 \\n1 2 4 3 5 \\n2 5 4 5 6 \\n\\... | none | {
"id": "rooms-1",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "We say an infinite sequence $a_{0}, a_{1}, a_2, \\ld... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2 2 0\\n\", \"10\\n12 11 8 8 6 6 6 5 3 2 1\\n\", \"1\\n0 0\\n\", \"1\\n160484 157682\\n\"], \"outputs\": [\"5\", \"2596\", \"0\", \"432045803\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-9244",
"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": "This is a follow-up from my previous Kata which can b... | code | {
"ground_truth": "{\"fn_name\": \"get_function\", \"inputs\": [[[1, 2, 4, 7, 11]], [[0, 1, 2, 3, 100000]], [[0, 1, 2, 100000, 4]], [[0, 1, 100000, 3, 4]], [[0, 100000, 2, 3, 4]]], \"outputs\": [[\"Non-linear sequence\"], [\"Non-linear sequence\"], [\"Non-linear sequence\"], [\"Non-linear sequence\"], [\"Non-linear s... | EASY | {
"id": "taco-train-14584",
"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": "In a dream Marco met an elderly man with a pair of b... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2 4 6 12\\n\", \"2\\n2 3\\n\", \"2\\n999996 1000000\\n\", \"3\\n250000 750000 1000000\\n\", \"2\\n99997 399988\\n\", \"4\\n2 4 6 12\\n\", \"12\\n8 9 10 11 12 13 14 15 16 17 18 19\\n\", \"6\\n111111 222222 333333 666666 777777 999999\\n\", \"4\\n19997 339949 539919 719892\\n\", \... | rating_1601-1900 | {
"id": "894_C. Marco and GCD Sequence",
"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": "Bob is playing a game of Spaceship Solitaire. The go... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2 3\\n5\\n2 1 1\\n2 2 1\\n1 1 1\\n2 1 2\\n2 2 0\\n\", \"2\\n4 4\\n9\\n1 1 1\\n1 2 1\\n1 3 1\\n2 1 2\\n2 2 2\\n2 3 2\\n2 3 1\\n2 2 1\\n2 1 1\\n\", \"3\\n2 1 1\\n4\\n1 1 1\\n1 1 2\\n1 1 3\\n1 1 0\\n\", \"3\\n3 1 1\\n6\\n1 1 1\\n1 2 1\\n1 2 2\\n1 1 2\\n1 1 3\\n1 2 3\\n\", \"1\\n30\... | HARD | {
"id": "taco-train-15461",
"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": "Cirno gave AquaMoon a chessboard of size 1 × n. Its ... | code | {
"ground_truth": "{\"inputs\": [\"6\\n4\\n0110\\n6\\n011011\\n5\\n01010\\n20\\n10001111110110111000\\n20\\n00110110100110111101\\n20\\n11101111011000100010\\n\", \"2\\n3\\n011\\n2\\n11\\n\", \"6\\n4\\n0110\\n6\\n011011\\n5\\n01011\\n20\\n10001111110110111000\\n20\\n00110110100110111101\\n20\\n11101111011000100010\\n... | rating_1601-1900 | {
"id": "1545_B. AquaMoon and Chess",
"rating": 1900,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "When Masha came to math classes today, she saw two i... | code | {
"ground_truth": "{\"inputs\": [\"4\\n3 3 2\\n1 2 0\\n\", \"3\\n1 3\\n3 2\\n\", \"2\\n2\\n0\\n\", \"50\\n3 1 2 2 3 1 1 1 3 3 1 0 2 0 1 1 0 0 1 2 2 0 0 0 2 3 0 3 1 2 0 3 0 0 1 0 3 3 1 3 1 1 2 3 1 3 2 1 3\\n2 1 1 1 1 0 2 2 0 1 2 3 0 1 0 1 1 1 0 0 3 1 3 3 1 0 0 1 1 2 0 2 1 1 2 0 0 0 0 2 3 3 0 1 1 1 0 2 0\\n\", \"2\\n2\... | rating_1401-1600 | {
"id": "1031_B. Curiosity Has No Limits",
"rating": 1500,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A soldier wants to buy *w* bananas in the shop. He h... | code | {
"ground_truth": "{\"inputs\": [\"3 17 4\", \"1 2 1\", \"1 1 1\", \"1 5 6\", \"1 1000000000 1\", \"1000 0 1000\", \"859 453892 543\", \"1000 1000000000 1000\", \"1000 500500000 1000\", \"1000 500500001 1000\", \"1000 500499999 1000\", \"634 87973 214\", \"432 10000 241\", \"111 111111111 111\", \"20 43 3\"], \"outpu... | rating_<=1200 | {
"id": "546A",
"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": "Milly loves chocolates very much. She is at the land... | code | {
"ground_truth": "{\"inputs\": [\"1\\n3 2\\n1 KITKAT\\n2 FIVESTAR KITKAT\\n2 KITKAT PERK\\n\\nSAMPLE\", \"3\\n10 40\\n10 ggl fhklnkh addejhpo igkknigiq c egfhh egfhh edhdhholl fhklnkh ahg\\n10 chj di bhfmgmj edgjhoo djkdgh chj heek djkdgh ggl ahg\\n10 gjkegonh hbgjlk edhdhholl chj chj ecgielp c edhdhholl fjkghilnj a... | none | {
"id": "milly-and-chocolates-iii-2",
"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\": [\"1\\n5\\n5 2 4 6 7\"], \"outputs\": [\"5 5\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-23989",
"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": "Per is obsessed with factorials. He likes to calcula... | code | {
"ground_truth": "{\"inputs\": [\"5\\n\", \"14\\n\"], \"outputs\": [\"12\\n\", \"912\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-2294",
"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": "Given a matrix (H × W) which contains only 1 and 0, ... | code | {
"ground_truth": "{\"inputs\": [\"4 5\\n0 0 1 0 0\\n1 0 0 0 0\\n0 0 0 1 0\\n0 0 0 1 0\", \"4 5\\n0 0 1 0 0\\n1 0 0 0 0\\n0 0 0 0 0\\n0 0 0 1 0\", \"4 5\\n0 0 1 0 0\\n1 0 0 0 0\\n0 0 0 0 1\\n0 0 0 1 0\", \"1 5\\n0 0 1 0 0\\n1 0 0 0 1\\n0 0 0 1 0\\n0 0 0 1 0\", \"0 5\\n0 0 1 -1 0\\n1 0 0 0 0\\n0 0 0 0 0\\n0 0 0 1 0\",... | none | {
"id": "p02327 Largest Rectangle",
"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 [Russian] and [Mandarin C... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 0\\n4 1\\n100 0\\n20 5\\n\"], \"outputs\": [\"1\\n2\\n4\\n3\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-3608",
"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": "City X consists of n vertical and n horizontal infin... | code | {
"ground_truth": "{\"inputs\": [\"1\\n1 1\\n\", \"2\\n1 1\\n1 2\\n2 1\\n2 2\\n\", \"2\\n1 2\\n2 2\\n2 1\\n1 1\\n\", \"2\\n1 1\\n2 2\\n1 2\\n2 1\\n\", \"3\\n2 2\\n1 2\\n3 2\\n3 3\\n1 1\\n2 3\\n1 3\\n3 1\\n2 1\\n\", \"9\\n4 5\\n2 3\\n8 3\\n5 6\\n9 3\\n4 4\\n5 4\\n4 7\\n1 7\\n8 4\\n1 4\\n1 5\\n5 7\\n7 8\\n7 1\\n9 9\\n8... | rating_<=1200 | {
"id": "583_A. Asphalting Roads",
"rating": 1000,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Ted has a pineapple. This pineapple is able to bark ... | code | {
"ground_truth": "{\"inputs\": [\"3 10 4\\n\", \"3 10 3\\n\", \"3 8 51\\n\", \"3 8 52\\n\", \"456947336 740144 45\\n\", \"33 232603 599417964\\n\", \"4363010 696782227 701145238\\n\", \"9295078 2 6\\n\", \"76079 281367 119938421\\n\", \"93647 7 451664565\\n\", \"5 18553 10908\\n\", \"6 52 30\\n\", \"6431 855039 3526... | EASY | {
"id": "taco-train-16472",
"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": "Nathan O. Davis is challenging a kind of shooter gam... | code | {
"ground_truth": "{\"inputs\": [\"100 100 1 1\\n50 0 50 100 50\\n640 480 1 1\\n0 0 640 480 100\\n0 0 0 0\", \"100 100 1 1\\n50 0 50 100 50\\n640 480 1 2\\n0 0 640 480 100\\n0 0 0 0\", \"100 100 1 1\\n62 0 50 100 50\\n640 480 1 1\\n0 0 640 480 100\\n0 0 0 0\", \"100 100 1 1\\n50 0 50 100 50\\n640 480 1 2\\n0 0 640 48... | none | {
"id": "p01297 Safe Area",
"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": "Student A and student B are giving each other test an... | code | {
"ground_truth": "{\"fn_name\": \"decipher_message\", \"inputs\": [[\"ArNran u rstm5twob e ePb\"], [\"ArNran u rstm8twob e ePc\"], [\"92287a76 585a2y0\"], [\" a29068686a275y5\"], [\"8a 55y0y0y5a7 78\"], [\"9y98a877a95976a758726a89a5659957ya y\"], [\"aa297625 88a02670997 86ya880 00a9067\"], [\"826a976a508a9a 687600... | EASY | {
"id": "taco-train-7185",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given two integers l and r (l ≤ r). Your tas... | code | {
"ground_truth": "{\"inputs\": [\"10 50 2\\n\", \"1 2345 10\\n\", \"101 154 2\\n\", \"99999999999999999 999999999999999999 6\\n\", \"94010733142571570 227078148960766697 9\\n\", \"1 999999999999999999 7\\n\", \"772 1991 8\\n\", \"2115 5821 2\\n\", \"2001 3111 10\\n\", \"267367244641009867 267367244641757963 2\\n\", ... | rating_>1900 | {
"id": "1073_E. Segment Sum",
"rating": 2300,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "For a positive integer n, we denote the integer obta... | code | {
"ground_truth": "{\"inputs\": [\"63\", \"864197532\", \"75\", \"70\", \"27\", \"9\", \"28269\", \"729\", \"-18\", \"-45\", \"-63\", \"-54\", \"-36\", \"-495\", \"72\", \"-90\", \"99\", \"-396\", \"180\", \"198\", \"6200730\", \"-450\", \"-279\", \"-270\", \"-297\", \"-369\", \"540\", \"1663355059\", \"76\", \"120\"... | none | {
"id": "p03704 AtCoder Regular Contest 075 - Mirrored",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There are $n$ big cities in Italy, and there are $m$... | code | {
"ground_truth": "{\"inputs\": [\"2\\n5 9\\n1 2\\n1 3\\n1 4\\n1 5\\n2 3\\n2 4\\n2 5\\n3 4\\n3 5\\n3 3\\n1 2\\n3 1\\n2 3\\n\"], \"outputs\": [\"2\\n1 1 2 1 1 2 1 2 1 \\n3\\n3 2 1 \\n\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-10504",
"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": "Anton and Artur are old friends. Today they practice... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 1\\n1 3\\n100 500\\n\\nSAMPLE\", \"3\\n1 2\\n1 3\\n100 500\\n\\nSAMPLE\", \"3\\n1 1\\n1 1\\n100 500\\n\\nSAMPLE\", \"3\\n2 2\\n1 3\\n100 500\\n\\nSAMPME\", \"3\\n1 2\\n1 1\\n100 818\\n\\nEAPMLS\", \"3\\n1 2\\n1 6\\n100 100\\n\\nSAMPLE\", \"3\\n1 2\\n1 3\\n100 500\\n\\nSAMPME\"... | none | {
"id": "strings-1",
"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": "Although Inzane successfully found his beloved bone,... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 5\\n1 2\\n2 3\\n3 4\\n4 5\", \"7\\n38 -29 87 93 39 28 -55\\n1 2\\n2 5\\n3 2\\n2 4\\n1 7\\n7 6\", \"5\\n1 2 7 6 7\\n1 5\\n5 3\\n3 4\\n2 4\", \"3\\n2 2 2\\n3 2\\n1 2\", \"3\\n999397 999397 999397\\n2 3\\n2 1\", \"5\\n1000000000 0 1000000000 0 1000000000\\n1 2\\n2 3\\n3 4\\... | rating_1601-1900 | {
"id": "796C",
"rating": 1900,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Today is Chef's birthday. His mom has surprised him ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 4 1\\n5 2 1\\n3 4 3\", \"3\\n3 4 1\\n5 2 2\\n3 4 3\", \"3\\n3 4 1\\n5 0 2\\n3 4 3\", \"3\\n3 0 1\\n5 0 2\\n1 4 3\", \"3\\n3 0 1\\n7 0 2\\n1 4 3\", \"3\\n3 1 1\\n7 0 2\\n1 4 3\", \"3\\n0 1 1\\n7 0 2\\n1 4 3\", \"3\\n0 1 1\\n0 0 2\\n1 4 3\", \"3\\n0 1 0\\n0 0 2\\n1 4 4\", \"3\\n... | none | {
"id": "fruits",
"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": "Assume that you have k one-dimensional segments s_1,... | code | {
"ground_truth": "{\"inputs\": [\"1\\n10\\n1 2\\n1 3\\n1 4\\n2 5\\n2 6\\n3 7\\n3 8\\n4 9\\n4 10\\n\", \"1\\n10\\n1 2\\n1 3\\n1 4\\n2 5\\n2 6\\n3 7\\n3 8\\n4 9\\n7 10\\n\", \"1\\n10\\n1 2\\n1 3\\n2 4\\n2 5\\n2 6\\n3 7\\n3 8\\n4 9\\n4 10\\n\", \"1\\n10\\n1 2\\n1 3\\n4 4\\n2 5\\n2 6\\n3 7\\n3 8\\n6 9\\n4 10\\n\", \"1\\... | rating_>1900 | {
"id": "1238_F. The Maximum Subtree",
"rating": 2200,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a string S.\n\nTakahashi can insert th... | code | {
"ground_truth": "{\"inputs\": [\"AKIBAHARA\", \"KIHBR\", \"AAKIAHBAARA\", \"AKIBAAARH\", \"JIHBR\", \"ARAABHAIKAA\", \"HRAAABIKA\", \"RBHIJ\", \"AR@ABHAIKAA\", \"HRAAABHKA\", \"QBHIJ\", \"AR@ABHAIJAA\", \"AKHBAAARH\", \"PBHIJ\", \"AAJIAHBA@RA\", \"ALHBAAARH\", \"JIHBP\", \"AAIJAHBA@RA\", \"HRAAABHLA\", \"PBHIK\", \... | none | {
"id": "p03523 CODE FESTIVAL 2017 Final - AKIBA",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given two positive integers n and k. Print t... | code | {
"ground_truth": "{\"inputs\": [\"6\\n3 7\\n4 12\\n2 1000000000\\n7 97\\n1000000000 1000000000\\n2 1\\n\", \"7\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n\", \"1\\n841 4832526\\n\", \"1\\n870 4832526\\n\", \"6\\n2 7\\n4 12\\n2 1000000000\\n7 97\\n1000000000 1000000000\\n2 1\\n\", \"1\\n1718 4832526\\n\", \"6\\n2 7\... | rating_<=1200 | {
"id": "1352_C. K-th Not Divisible by n",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Zero AND Subsets\n\nGiven a multiset of nonnegative ... | code | {
"ground_truth": "{\"inputs\": [\"6\\n8 6 9 1 2 1\", \"6\\n13 6 9 1 2 1\", \"6\\n13 10 9 1 2 1\", \"6\\n13 9 9 1 2 1\", \"6\\n13 8 9 1 2 1\", \"6\\n4 12 5 1 2 1\", \"6\\n4 12 6 1 2 1\", \"6\\n5 12 6 2 2 1\", \"6\\n5 12 6 0 1 2\", \"6\\n5 12 6 0 1 0\", \"6\\n13 10 9 0 2 1\", \"6\\n13 12 9 1 4 1\", \"6\\n4 12 5 0 2 1\... | none | {
"id": "p02194 Zero AND Subsets",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "In Chile, land are partitioned into a one large grid... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n19 19 -12\\n5 8 -14\\n-12 -11 9\\n2 2\\n-18 -12\\n-10 -7\\n\"], \"outputs\": [\"937\\n2 2\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-6412",
"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": "Igor has fallen in love with Tanya. Now Igor wants t... | code | {
"ground_truth": "{\"inputs\": [\"0\\n1 1 1 1 1 1 1 1 1\\n\", \"2\\n9 11 1 12 5 8 9 10 6\\n\", \"5\\n5 4 3 2 1 2 3 4 5\\n\", \"898207\\n99745 99746 99748 99752 99760 99776 99808 99872 100000\\n\", \"26531\\n64 93 48 49 86 57 93 60 96\\n\", \"22\\n405 343 489 474 385 23 100 94 276\\n\", \"95\\n22076 12056 63350 12443... | rating_1601-1900 | {
"id": "349_B. Color the Fence",
"rating": 1700,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are at home and about to drive to work. The road... | code | {
"ground_truth": "{\"inputs\": [\"1\\n\", \"2\\n50 45 45\\n\", \"2\\n25 45 45\\n\"], \"outputs\": [\"44.72135955\\n\", \"68.52419365\\n\", \"63.2455532\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-22649",
"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": "Your company, [Congo Pizza](http://interesting-africa... | code | {
"ground_truth": "{\"fn_name\": \"box_capacity\", \"inputs\": [[32, 64, 16], [20, 20, 20], [80, 40, 20], [70, 60, 15], [90, 7, 5], [53, 21, 13]], \"outputs\": [[13824], [3375], [27000], [25740], [1005], [5265]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-12935",
"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 string S consisting of only opening and closi... | code | {
"ground_truth": "{\"fn_name\": \"countRev\", \"inputs\": [\"S = \\\"}{{}}{{{\\\"\", \"S = \\\"{{}{{{}{{}}{{\\\"\"], \"outputs\": [\"3\", \"-1\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-23734",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are looking for a place to park your car on a wa... | code | {
"ground_truth": "{\"inputs\": [\"3\\n---B--S-D--S--\\nDDBDDBDDBDD\\n--S--S--S--S--\\n\\nSAMPLE\", \"46\\n---B--S-D--S--\\nDDBDDBDDBDD\\n--S--S--S--S--\\nSSD-B---BD-DDSB-----S-S--------S-B----BSB-S--B-S-D\\n-SB---S----DD-D-DS---B--BD-S-SD---D----D-B---B-SDD\\n------BB-----D--------S--D-BSSS-----B---S-S-SSS---\\n----... | none | {
"id": "car-parking-4",
"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": "Marina loves Sasha. But she keeps wondering whether ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n5 6 7\\n\", \"1\\n2\\n\", \"1\\n1\\n\", \"99\\n86 16 38 20 68 60 84 16 28 88 60 48 80 28 4 92 70 60 46 46 20 34 12 100 76 2 40 10 8 86 6 80 50 66 12 34 14 28 26 70 46 64 34 96 10 90 98 96 56 88 49 73 69 93 1 93 23 65 67 45 21 29 5 9 63 31 87 13 97 99 63 57 49 17 49 49 7 37 7 15 ... | rating_<=1200 | {
"id": "59_B. Fortune Telling",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given two positive integers – A and B. You h... | code | {
"ground_truth": "{\"inputs\": [\"3\\n120 75\\n128 16\\n7 8\", \"3\\n120 75\\n128 16\\n7 11\", \"3\\n120 137\\n128 16\\n7 11\", \"3\\n53 136\\n128 16\\n0 11\", \"3\\n120 16\\n128 4\\n4 4\", \"3\\n215 16\\n128 12\\n6 4\", \"3\\n82 199\\n339 16\\n1 5\", \"3\\n120 75\\n184 5\\n16 18\", \"3\\n120 75\\n171 16\\n0 11\", \... | none | {
"id": "chapd",
"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": "Dio Brando has set a goal for himself of becoming t... | code | {
"ground_truth": "{\"inputs\": [[\"6\", \"abcdfgh\", \"urdrdrav\", \"jojojojoj\", \"bbbbaaa\", \"cddfsccs\", \"tttttttttttt\"]], \"outputs\": [[\"1234678\", \"2118418418122\", \"1015\", \"21\", \"46193\", \"20\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-19527",
"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": "Now Fox Ciel becomes a commander of Tree Land. Tree ... | code | {
"ground_truth": "{\"inputs\": [\"10\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\\n6 7\\n7 8\\n8 9\\n9 10\\n\", \"4\\n1 2\\n1 3\\n1 4\\n\", \"30\\n12 8\\n22 8\\n26 8\\n19 8\\n24 8\\n30 8\\n5 8\\n27 8\\n28 8\\n9 8\\n18 8\\n2 8\\n7 8\\n25 8\\n21 8\\n11 8\\n15 8\\n13 8\\n20 8\\n3 8\\n14 8\\n4 8\\n1 8\\n29 8\\n16 8\\n17 8\\n23 8\\n6 ... | rating_>1900 | {
"id": "321_C. Ciel the Commander",
"rating": 2100,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an array p[] of length n used to denote the dim... | code | {
"ground_truth": "{\"inputs\": [\"n = 5\\r\\np[] = {1, 2, 3, 4, 5}\", \"n = 3\\r\\np = {3, 3, 3}\"], \"outputs\": [\"(((AB)C)D)\", \"(AB)\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-5601",
"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": "# Task\n You are given two strings s and t of the sam... | code | {
"ground_truth": "{\"fn_name\": \"create_anagram\", \"inputs\": [[\"AABAA\", \"BBAAA\"], [\"OVGHK\", \"RPGUC\"], [\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAB\", \"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAC\"]], \"outputs\": [[1], [4], [1]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-4284",
"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": "This problem differs from the previous one only in t... | code | {
"ground_truth": "{\"inputs\": [\"3\\n12 3 45\\n\", \"2\\n123 456\\n\", \"20\\n80 9 55 1 98 29 81 10 96 100 70 87 86 12 58 82 10 22 59 13\\n\", \"100\\n3615 1436 2205 5695 9684 7621 391 1579 557 420 1756 5265 247 5494 3509 6089 2931 7372 4939 8030 2901 1150 5389 7168 6213 2723 4301 7250 3857 9178 4723 1932 1161 1412... | MEDIUM_HARD | {
"id": "taco-train-3406",
"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": "Read problem statements in [Hindi], [Bengali], [Mand... | code | {
"ground_truth": "{\"inputs\": [\"1\\n4 2\\n3 2 4 1\"], \"outputs\": [\"1\\n1 3 4\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-23945",
"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": "Read problems statements in Mandarin Chinese, Russia... | code | {
"ground_truth": "{\"inputs\": [\"7\\n2 2\\nWW\\nBB\\n2 3\\nBWB\\nBBB\\n2 3\\nAWA\\nBBB\\n2 3\\nBAA\\nABB\\n3 5\\nBWAAB\\nBWBWB\\nBBBBB\\n3 3\\nBBB\\nBAB\\nBBB\\n3 3\\nBBB\\nBWB\\nBBB\"], \"outputs\": [\"no\\nyes\\nno\\nno\\nno\\nno\\nno\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-12622",
"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": "Iahub got lost in a very big desert. The desert can ... | code | {
"ground_truth": "{\"inputs\": [\"4 2\\n1 3\\n1 4\\n\", \"7 8\\n1 6\\n2 6\\n3 5\\n3 6\\n4 3\\n5 1\\n5 2\\n5 3\\n\", \"2 2\\n1 2\\n2 1\\n\", \"1000000000 9\\n1 2\\n3 1\\n3 2\\n999999998 999999999\\n999999998 1000000000\\n999999999 999999999\\n999999999 999999997\\n1000000000 999999996\\n1000000000 999999997\\n\", \"1... | VERY_HARD | {
"id": "taco-train-13818",
"rating": null,
"split": "confidence_train",
"sub_source": "VERY_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "# A History Lesson\n\nThe Pony Express was a mail ser... | code | {
"ground_truth": "{\"fn_name\": \"riders\", \"inputs\": [[[18, 15]], [[43, 23, 40, 13]], [[33, 8, 16, 47, 30, 30, 46]], [[6, 24, 6, 8, 28, 8, 23, 47, 17, 29, 37, 18, 40, 49]], [[50, 50]], [[50, 50, 25, 50, 24]], [[50, 50, 25, 50, 25]], [[50, 50, 25, 50, 26]], [[90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,... | EASY | {
"id": "taco-train-12994",
"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": "Hacker Zhorik wants to decipher two secret messages ... | code | {
"ground_truth": "{\"inputs\": [\"7 6\\n2 5 3 1 11 4 4\\n7 8 2 4 1 8\\n\", \"3 3\\n1 10 100\\n1 100 10\\n\", \"1 4\\n4\\n1 1 1 1\\n\", \"1 1\\n1000000\\n1000000\\n\", \"3 5\\n2 2 9\\n2 1 4 2 4\\n\", \"5 3\\n1 1 4 1 2\\n1 4 4\\n\", \"30 50\\n3 3 1 3 1 2 4 3 4 1 3 2 3 3 2 3 2 1 3 4 2 1 1 3 2 2 1 3 1 60\\n4 4 1 2 2 2 3... | EASY | {
"id": "taco-train-23078",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a permutation p of integers from 1 to ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2 1\\n\", \"4\\n3 4 1 2\\n\", \"6\\n2 5 3 1 4 6\\n\", \"10\\n6 1 2 9 3 5 4 10 7 8\\n\", \"100\\n47 54 37 8 33 97 74 80 35 96 55 39 15 67 85 92 49 50 1 25 70 53 48 19 86 16 14 68 60 41 40 87 29 27 34 94 26 42 17 38 45 4 22 13 31 57 23 99 73 90 44 88 3 63 59 93 52 30 20 21 18 7 12... | rating_1601-1900 | {
"id": "1148_C. Crazy Diamond",
"rating": 1700,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Anmol gained a lot of weight last semester. So this ... | code | {
"ground_truth": "{\"inputs\": [[\"3\", \"5 1\", \"1 5 10 12 14\", \"5\", \"5 2\", \"5 8 13 16 21\", \"3 5\", \"5 3\", \"2 6 8 11 16\", \"2 3 5\"]], \"outputs\": [[\"1\", \"2\", \"1\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-5066",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "After their adventure with the magic mirror Kay and ... | code | {
"ground_truth": "{\"inputs\": [\"5 7\\n+ 5\\n- 10\\n- 20\\n+ 40\\n- 20\", \"5 17\\n- 16\\n- 2\\n- 98\\n+ 100\\n- 98\", \"6 1000000000\\n+ 1000000000\\n+ 1000000000\\n+ 1000000000\\n+ 1000000000\\n+ 1000000000\\n+ 1000000000\", \"5 12\\n- 12\\n+ 7\\n- 6\\n- 1\\n+ 46\", \"11 1000\\n- 100\\n+ 100\\n+ 100\\n+ 100\\n+ 1... | rating_<=1200 | {
"id": "686A",
"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": "Yesterday was a fair in a supermarket's grocery sect... | code | {
"ground_truth": "{\"inputs\": [\"6\\n3 5 6 1 2 4\\n\", \"14\\n9 13 11 3 10 7 12 14 1 5 4 6 8 2\\n\", \"44\\n20 33 40 3 11 14 13 15 24 6 32 7 30 44 19 4 28 10 12 34 25 29 37 38 8 35 16 23 41 31 21 2 5 9 17 22 42 27 1 39 26 36 18 43\\n\", \"9\\n2 3 4 5 6 7 8 9 1\\n\", \"35\\n28 16 24 10 4 32 9 5 23 8 12 31 30 20 25 3... | rating_>1900 | {
"id": "91_D. Grocer's Problem",
"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": "Turbulent times are coming, so you decided to buy su... | code | {
"ground_truth": "{\"inputs\": [\"4\\n3 7\\n2 1 2\\n5 9\\n10 20 30 40 50\\n1 1\\n1\\n2 1000\\n1 1\\n\", \"1\\n1 1000000\\n228228\\n\", \"1\\n1 228228228\\n228228228\\n\", \"1\\n1 1000000000\\n1\\n\", \"1\\n1 1\\n2\\n\", \"1\\n100 37\\n29 33 45 64 95 33 45 76 86 5 52 16 27 24 80 5 44 19 96 8 77 67 21 17 22 56 28 3 84... | EASY | {
"id": "taco-train-6957",
"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": "_Friday 13th or Black Friday is considered as unlucky... | code | {
"ground_truth": "{\"fn_name\": \"unlucky_days\", \"inputs\": [[1634], [2873], [1586]], \"outputs\": [[2], [2], [1]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-20956",
"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": "Spring is the time for school trips. The University ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4\\n1 2 10\\n2 2 5\\n1 3 20\\n2 3 10\\n10\\n3\\n2\\n1 2 5\\n0 3 4\\n3\\n10 11 100\\n2 12 2\\n12 12 3\\n10\\n0\", \"2\\n4\\n1 2 10\\n2 2 5\\n1 3 20\\n2 3 10\\n10\\n3\\n2\\n1 2 5\\n0 3 4\\n3\\n10 11 100\\n4 12 2\\n12 12 3\\n10\\n0\", \"2\\n4\\n1 2 10\\n2 2 5\\n0 3 20\\n2 3 10\\n3\... | none | {
"id": "p00673 School Excursion",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "In the middle of a nightmare, Maxine suddenly finds ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 3 5\\n2 3 8\\n2 1 31\\n1\\n1 2 13\\n\"], \"outputs\": [\"12\\n\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-20504",
"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 arrival and departure times of all trains that ... | code | {
"ground_truth": "{\"inputs\": [\"n = 6 \\r\\narr[] = {0900, 0940, 0950, 1100, 1500, 1800}\\r\\ndep[] = {0910, 1200, 1120, 1130, 1900, 2000}\", \"n = 3\\r\\narr[] = {0900, 1100, 1235}\\r\\ndep[] = {1000, 1200, 1240}\"], \"outputs\": [\"3\", \"1\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-7083",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "One warm and sunny day king Copa decided to visit th... | code | {
"ground_truth": "{\"inputs\": [\"1\\n0 0 0 0.5\", \"2\\n0 0 0 0.6\\n5 0 5 0.7\", \"1\\n-5 2 3 0.886986\", \"4\\n10 -7 14 0.926305\\n-7 -8 12 0.121809\\n-7 7 14 0.413446\\n3 -8 6 0.859061\", \"5\\n-2 -2 34 0.127276\\n5 -5 4 0.459998\\n10 3 15 0.293766\\n1 -3 7 0.089869\\n-4 -7 11 0.772515\", \"5\\n2 5 1 0.955925\\n9... | rating_1601-1900 | {
"id": "30C",
"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": "Barney is standing in a bar and starring at a pretty... | code | {
"ground_truth": "{\"inputs\": [\"8.549e2\\n\", \"8.549e3\\n\", \"0.33e0\\n\", \"1.31e1\\n\", \"1.038e0\\n\", \"8.25983e5\\n\", \"8.77056e6\\n\", \"4.28522890224373996236468418851564462623381500262405e30\\n\", \"4.09336275522154223604344399571355118601483591618747e85\\n\", \"2.062909480759549113230626474704224392848... | MEDIUM | {
"id": "taco-train-12297",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given $n$ points on the plane. The polygon f... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2 4\\n4 3\\n3 0\\n1 3\\n\", \"3\\n0 0\\n0 2\\n2 0\\n\", \"8\\n0 3\\n2 2\\n3 0\\n2 -2\\n0 -3\\n-2 -2\\n-3 0\\n-2 2\\n\", \"4\\n-100000000 -100000000\\n-100000000 100000000\\n100000000 100000000\\n100000000 -100000000\\n\", \"4\\n0 0\\n10 10\\n10 9\\n1 0\\n\", \"4\\n12345678 99999... | HARD | {
"id": "taco-train-9392",
"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": "Time Limit: 8 sec / Memory Limit: 64 MB\n\n\n\n\n\nE... | code | {
"ground_truth": "{\"inputs\": [\"eggchickenegg\", \"egichgckenegg\", \"egechmilfgcgg\", \"egichnckegegg\", \"egechickgnegg\", \"egichgbkenegg\", \"egickgbhenegg\", \"eghchickenegg\", \"egichnckfgegg\", \"egickgbhemegg\", \"egibkgbhemegg\", \"eggchickemegg\", \"egechnckigegg\", \"egihcgbkenegg\", \"egickfbhenegg\", ... | none | {
"id": "p01479 Chicken or the Egg",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given two circles. Find the area of their in... | code | {
"ground_truth": "{\"inputs\": [\"0 0 4\\n6 0 4\\n\", \"0 0 5\\n11 0 5\\n\", \"100 10 10\\n100 20 10\\n\", \"0 1000000000 1\\n0 0 1000000000\\n\", \"-13563 -6901 22958\\n-19316 -16534 18514\\n\", \"44721 999999999 400000000\\n0 0 600000000\\n\", \"0 0 2\\n2 2 2\\n\", \"-999999999 0 1000000000\\n999999999 0 100000000... | rating_>1900 | {
"id": "600_D. Area of Two Circles' Intersection",
"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": "Ivan wants to play a game with you. He picked some s... | code | {
"ground_truth": "{\"inputs\": [\"5\\nba\\na\\nabab\\na\\naba\\nbaba\\nab\\naba\\n\", \"3\\na\\naa\\naa\\na\\n\", \"2\\na\\nc\\n\", \"2\\nz\\nz\\n\", \"5\\nba\\na\\nbaba\\na\\naba\\nabab\\nab\\naba\\n\", \"5\\nb\\nb\\nba\\nab\\nbab\\nbab\\nabab\\nbaba\\n\", \"5\\nc\\ncd\\ncdc\\ncdcc\\nb\\ncb\\nccb\\ndccb\\n\", \"3\\... | MEDIUM_HARD | {
"id": "taco-train-8572",
"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": "Little girl Alyona is in a shop to buy some copybook... | code | {
"ground_truth": "{\"inputs\": [\"1 1 3 4\\n\", \"6 2 1 1\\n\", \"4 4 4 4\\n\", \"999999999 1000000000 1000000000 1000000000\\n\", \"1016 3 2 1\\n\", \"17 100 100 1\\n\", \"17 2 3 100\\n\", \"18 1 3 3\\n\", \"19 1 1 1\\n\", \"999999997 999999990 1000000000 1000000000\\n\", \"999999998 1000000000 999999990 1000000000... | EASY | {
"id": "taco-train-1716",
"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": "E869120 found a chest which is likely to contain tre... | code | {
"ground_truth": "{\"inputs\": [\"?tc????\\ncoder\\n\", \"??p??d??\\nabc\\n\", \"?tc??@?\\ncoder\", \">q???d?>\\n_ba\", \"d>>>???q\\na`a\", \"d>>>???q\\naaa\", \"??p??d??\\nabb\", \"?tc??@?\\ncnder\", \"??p??d??\\n`bb\", \"?tc??@?\\nendcr\", \"??p??d??\\n`ab\", \"@tc??@?\\nendcr\", \"??p??d??\\nba`\", \"@tc??@?\\nen... | EASY | {
"id": "taco-train-15909",
"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": "Leha like all kinds of strange things. Recently he l... | code | {
"ground_truth": "{\"inputs\": [\"5\\n7 3 5 3 4\\n2 1 3 2 3\\n\", \"7\\n4 6 5 8 8 2 6\\n2 1 2 2 1 1 2\\n\", \"5\\n7 3 5 3 4\\n2 1 3 2 0\\n\", \"7\\n4 6 5 8 8 2 6\\n2 1 2 3 1 1 2\\n\", \"5\\n7 3 5 3 4\\n2 0 3 2 0\\n\", \"7\\n4 6 5 8 8 2 0\\n2 1 2 3 1 1 2\\n\", \"5\\n7 3 5 3 8\\n2 0 3 2 0\\n\", \"7\\n2 6 5 8 8 2 0\\n2... | rating_1201-1400 | {
"id": "840_A. Leha and Function",
"rating": 1300,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given two integers $x$ and $y$ (it is guaran... | code | {
"ground_truth": "{\"inputs\": [\"4\\n100 98\\n42 32\\n1000000000000000000 1\\n41 40\\n\", \"1\\n1383 1382\\n\", \"1\\n3049 3047\\n\", \"69\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2... | EASY | {
"id": "taco-train-3892",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Chef Po has given an online advertisement to provide... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4\\n1 2 100\\n2 3 200\\n3 4 1600\\n1 3 2100\\n3\\n1 10 2000\\n2 5 100\\n6 9 400\"], \"outputs\": [\"3700\\n2000\"]}",
"style": "rule"
} | none | {
"id": "maxcomp",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a circular interger array arr of size N (i.e .,... | code | {
"ground_truth": "{\"inputs\": [\"N = 3\\r\\narr[ ] = {1, 2, 1}\", \"N = 5\\r\\narr[ ] = {5, 4, 3, 2, 1}\"], \"outputs\": [\"{2, -1, 2}\", \"{-1, 5, 5, 5, 5}\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-24421",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a sequence $b_1, b_2, \\ldots, b_n$. F... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1\\n1\\n2\\n4 1\\n3\\n4 1 3\\n4\\n2 3 4 5\\n5\\n1 5 7 2 8\\n\", \"33\\n3\\n1 2 3\\n3\\n1 2 4\\n3\\n1 2 5\\n3\\n1 2 6\\n3\\n1 3 2\\n3\\n1 3 4\\n3\\n1 3 5\\n3\\n1 3 6\\n3\\n1 4 2\\n3\\n1 4 3\\n3\\n1 4 5\\n3\\n1 4 6\\n3\\n1 5 2\\n3\\n1 5 3\\n3\\n1 5 4\\n3\\n1 5 6\\n3\\n1 6 2\\n3\\n... | EASY | {
"id": "taco-train-11486",
"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've got a 5 × 5 matrix, consisting of 24 zeroes a... | code | {
"ground_truth": "{\"inputs\": [\"0 0 0 0 0\\n0 0 0 0 1\\n0 0 0 0 0\\n0 0 0 0 0\\n0 0 0 0 0\\n\", \"0 0 0 0 0\\n0 0 0 0 0\\n0 1 0 0 0\\n0 0 0 0 0\\n0 0 0 0 0\\n\", \"0 0 0 0 0\\n0 0 0 0 0\\n0 0 1 0 0\\n0 0 0 0 0\\n0 0 0 0 0\\n\", \"0 0 0 0 0\\n0 0 0 0 0\\n0 0 0 0 0\\n0 0 0 0 0\\n0 0 0 0 1\\n\", \"0 1 0 0 0\\n0 0 0 0... | EASY | {
"id": "taco-train-9298",
"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": "Acacius is studying strings theory. Today he came wi... | code | {
"ground_truth": "{\"inputs\": [\"6\\n7\\nabacaba\\n7\\n???????\\n11\\naba?abacaba\\n11\\nabacaba?aba\\n15\\nasdf???f???qwer\\n11\\nabacabacaba\\n\", \"1\\n13\\nabacab?bacaba\\n\", \"1\\n13\\nabacab?bacab`\\n\", \"6\\n7\\nabacaba\\n7\\n???????\\n11\\naba?abacaba\\n11\\nabacaba>aba\\n15\\nasdf???f???qwer\\n11\\nabaca... | MEDIUM | {
"id": "taco-train-13506",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given two integers $n$ and $m$. Calculate th... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n\", \"10 1\\n\", \"723 9\\n\", \"1000 10\\n\", \"1000 1\\n\", \"1 1\\n\", \"1 10\\n\", \"1000 2\\n\", \"1 2\\n\", \"678 7\\n\", \"398 8\\n\", \"526 2\\n\", \"1 2\\n\", \"678 7\\n\", \"1 10\\n\", \"398 8\\n\", \"526 2\\n\", \"1 1\\n\", \"1000 2\\n\", \"1000 1\\n\", \"1000 10\\n... | MEDIUM_HARD | {
"id": "taco-train-18503",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You can find anything whatsoever in our Galaxy! A cu... | code | {
"ground_truth": "{\"inputs\": [\"0 0 0\\n0 1 0\", \"1 1 0\\n0 1 0\", \"0 0 0\\n1 1 1\", \"0 0 0\\n1 0 0\", \"0 0 0\\n0 1 0\", \"0 0 0\\n1 1 0\", \"0 0 0\\n0 0 1\", \"0 0 0\\n1 0 1\", \"0 0 0\\n0 1 1\", \"0 0 0\\n1 1 1\", \"1 0 0\\n0 0 0\", \"1 0 0\\n0 1 0\", \"1 0 0\\n1 1 0\", \"1 0 0\\n0 0 1\", \"1 0 0\\n1 0 1\", ... | rating_<=1200 | {
"id": "39D",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "In the year 2120 there is a vast subway network unde... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n1 2 5 1\\n2 3 3 1\\n3 1 ? 0\\n\", \"4 3\\n1 2 ? 1\\n1 3 ? 1\\n2 4 ? 1\\n\"], \"outputs\": [\"5\\n\", \"1\\n1\\n1\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-23691",
"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 game of billiards involves two players knocking ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n140 82\\n89 134\\n90 110\\n112 106\\n88 90\", \"5\\n140 82\\n89 134\\n90 110\\n177 106\\n88 90\", \"5\\n140 82\\n89 134\\n90 110\\n289 106\\n88 90\", \"5\\n140 82\\n89 134\\n90 110\\n289 50\\n88 90\", \"5\\n140 82\\n89 134\\n107 110\\n289 50\\n88 90\", \"5\\n140 82\\n89 134\\n10... | none | {
"id": "tlg",
"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 working on a new operating system called... | code | {
"ground_truth": "{\"inputs\": [\"4\\ntest\\ncontests\\ntest.\\n.test\\n6\\nts\\n.\\nst.\\n.test\\ncontes.\\nst\\n\", \"4\\ntest\\ncontests\\ntest.\\n.test\\n6\\nts\\n.\\nst.\\n.test\\ncontes.\\nst\\n\", \"8\\na\\nab\\naba\\nabacaba\\nabacabad\\nabac\\nabaca\\nabacab\\n13\\na\\nb\\nc\\naa\\nab\\nba\\nac\\nca\\nbc\\n... | rating_1401-1600 | {
"id": "1070_H. BerOS File Suggestion",
"rating": 1500,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Cyael is a teacher at a very famous school in Bytela... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"10 2\", \"100 3\"], \"2\\n10 2\\n101 3\", \"2\\n10 0\\n101 3\", \"2\\n18 0\\n101 3\", \"2\\n18 0\\n111 3\", \"2\\n18 0\\n110 3\", \"2\\n25 0\\n110 3\", \"2\\n25 0\\n010 3\", \"2\\n25 0\\n000 3\", \"2\\n16 0\\n000 2\", \"2\\n2 0\\n000 0\", \"2\\n1 0\\n000 0\", \"2\\n10 1\\n10... | EASY | {
"id": "taco-train-8133",
"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": "Local authorities have heard a lot about combinatori... | code | {
"ground_truth": "{\"inputs\": [\"4 2 1\\n1 4 2 3\\n\", \"2 1 1\\n1 5\\n\", \"3 1 2\\n1 2 3\\n\", \"69 6 63\\n53475 22876 79144 6335 33763 79104 65441 45527 65847 94406 74670 43529 75330 19403 67629 56187 57949 23071 64910 54409 55348 18056 855 24961 50565 6622 26467 33989 22660 79469 41246 13965 79706 14422 16075 9... | rating_<=1200 | {
"id": "735_B. Urbanization",
"rating": 1100,
"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": "If an integer *a* is divisible by another integer *b... | code | {
"ground_truth": "{\"inputs\": [\"10\", \"20\", \"1\", \"27\", \"100\", \"1000\", \"10000\", \"100000\", \"1000000\", \"100000000\", \"1000000000\", \"10000000000\", \"100000000000\", \"353964\", \"437388\", \"553516\", \"636940\", \"753068\", \"803788\", \"24403439\", \"907519567\", \"790635695\", \"968719119\", \"... | rating_>1900 | {
"id": "665F",
"rating": 2400,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an integer array bloomDay, an integer m and an ... | code | {
"ground_truth": "{\"fn_name\": \"minDays\", \"inputs\": [[[1, 10, 3, 10, 2], 3, 1]], \"outputs\": [3]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-10455",
"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": "Recently, Mike was very busy with studying for exams... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 2 3\\n\", \"5\\n1 2 3 4 5\\n\", \"7\\n4 4 4 4 7 7 7\\n\", \"98\\n17 17 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 87 87 87 87 87 87 87 87 87 87 87 87 87 87 87 87 87 87 87 87 87 90 90 90 90 90 90 90 90 90 90 90 92 92 92 92 92 92 92... | MEDIUM_HARD | {
"id": "taco-test-82",
"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": "There is a long plate s containing n digits. Iahub w... | code | {
"ground_truth": "{\"inputs\": [\"1256\\n1\\n\", \"13990\\n2\\n\", \"555\\n2\\n\", \"14\\n178\\n\", \"27755776656210607832788619414635535178188775623838313967013958143619017005079991285469853503718562504927535176713879737569375166451462839457844835806559098448980069427607\\n151\\n\", \"205831218776360805549796263726... | MEDIUM_HARD | {
"id": "taco-train-11157",
"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 talked to Polycarp and asked him a question. You... | code | {
"ground_truth": "{\"inputs\": [\"12\\nYES\\nesYes\\ncodeforces\\nes\\nse\\nYesY\\nesYesYesYesYesYesYe\\nseY\\nYess\\nsY\\no\\nYes\\n\", \"1\\nesY\\n\", \"1\\nYesYesYesYesYesYesa\\n\", \"1\\nali\\n\", \"1\\nsYesYesYesYesYesYesYesYesYesYesYesYesYesYesYesYesY\\n\", \"1\\nccf\\n\"], \"outputs\": [\"NO\\nYES\\nNO\\nYES\... | EASY | {
"id": "taco-train-18589",
"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": "John Doe has an n × m table. John Doe can paint poin... | code | {
"ground_truth": "{\"inputs\": [\"5 6 1\\n\", \"80 500000000000000000 3200\\n\", \"15 1033532424 1\\n\", \"37 1877886816 1\\n\", \"17 65579254 1\\n\", \"8 703528038 1\\n\", \"83 253746842 3200\\n\", \"5 37 24\\n\", \"19 1146762197 1\\n\", \"100 1000000000000000000 1221\\n\", \"32 504681835 1\\n\", \"9 402260913 1\\n... | rating_1601-1900 | {
"id": "232_B. Table",
"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": "Read problem statements in [Russian]\n\nChef has a s... | code | {
"ground_truth": "{\"inputs\": [\"4\\n4\\n7 3 5 1\\n5\\n4 2 7 8 10\\n2\\n9 9\\n3\\n1 1 1\"], \"outputs\": [\"0\\n1\\n0\\n-1\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-19872",
"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 binary array, find the maximum number of cons... | code | {
"ground_truth": "{\"fn_name\": \"findMaxConsecutiveOnes\", \"inputs\": [[[1, 0, 1, 1, 0, 1]]], \"outputs\": [2]}",
"style": "rule"
} | EASY | {
"id": "taco-train-6708",
"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": "Write function alternateCase which switch every lette... | code | {
"ground_truth": "{\"fn_name\": \"alternateCase\", \"inputs\": [[\"ABC\"], [\"\"], [\" \"], [\"Hello World\"], [\"cODEwARS\"], [\"i LIKE MAKING KATAS VERY MUCH\"], [\"HuMpTy DuMpTy SaT On A WaLl\"], [\"aBracaDabRa\"], [\"Hickory DICKORY dock\"], [\"Jack JUMPED over THE CaNdLeStIcK\"]], \"outputs\": [[\"abc\"], [\"\"... | EASY | {
"id": "taco-train-3922",
"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 decimal number m. Convert it into a binary st... | code | {
"ground_truth": "{\"inputs\": [\"m = 5, n = 2, k = 5\", \"m = 5, n = 2, k = 1\"], \"outputs\": [\"0\", \"1\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-17445",
"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": "Your are given N pairs of alphabets and a string S of... | code | {
"ground_truth": "{\"inputs\": [\"N = 3\\nArr[] = {('A','G'),('d','i'),('P','o')}\\nM = 5\\nS = \\\"APiod\\\"\", \"N = 1\\nArr[] = {('r','e')}\\nM = 3\\nS= \\\"ghe\\\"\"], \"outputs\": [\"2\", \"0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-17610",
"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 workers in a company, each of them has a... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n2 0 2\\n\", \"5 3\\n1 0 0 4 1\\n\", \"1 1\\n0\\n\", \"2 1\\n0 0\\n\", \"2 1\\n0 1\\n\", \"2 1\\n1 0\\n\", \"2 1\\n1 1\\n\", \"2 2\\n0 0\\n\", \"2 2\\n0 1\\n\", \"9 1\\n0 1 1 1 1 1 6 7 8\\n\", \"9 1\\n0 1 1 1 1 5 6 7 8\\n\", \"6 1\\n0 1 2 2 0 0\\n\", \"2 2\\n1 1\\n\", \"2 2\\n1... | HARD | {
"id": "taco-train-10683",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Write\n```python\nword_pattern(pattern, string)\n```\... | code | {
"ground_truth": "{\"fn_name\": \"word_pattern\", \"inputs\": [[\"abab\", \"apple banana apple banana\"], [\"abba\", \"car truck truck car\"], [\"abab\", \"apple banana banana apple\"], [\"aaaa\", \"cat cat cat cat\"], [\"aaaa\", \"cat cat dog cat\"], [\"bbbabcb\", \"c# c# c# javascript c# python c#\"], [\"abcdef\",... | EASY | {
"id": "taco-train-9062",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given an integer sequence $a_1, a_2, \\dots,... | code | {
"ground_truth": "{\"inputs\": [\"5 4\\n1 4 5 60 4\", \"3 1\\n1 1 1\", \"15 2\\n1 2 3 1 2 3 1 2 3 1 2 3 1 2 3\", \"1 1\\n1\", \"2 1\\n1 2\", \"2 1\\n2 1\", \"2 2\\n1 2\", \"2 2\\n2 1\", \"3 1\\n1 2 3\", \"3 1\\n1 3 2\", \"3 1\\n2 1 3\", \"3 1\\n2 3 1\", \"3 1\\n3 1 2\", \"3 1\\n3 2 1\", \"2 2\\n1 1\", \"3 2\\n1 1 2\... | rating_>1900 | {
"id": "1005E2",
"rating": 2400,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "In Disgaea as in most role-playing games, characters... | code | {
"ground_truth": "{\"inputs\": [\"5 4 0.75\\naxe 350\\nimpaler 300\\nionize 80\\nmegafire 120\\nmagicboost 220\\nheal\\nmegafire\\nshield\\nmagicboost\\n\", \"5 4 0.30\\naxe 350\\nimpaler 9000\\nionize 80\\nmegafire 120\\nmagicboost 220\\nheal\\nmegafire\\nshield\\nmagicboost\\n\", \"3 3 0.10\\naa 900\\nbb 990\\ncc ... | rating_1601-1900 | {
"id": "105_A. Transmigration",
"rating": 1700,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.