data_source stringclasses 3
values | prompt listlengths 2 2 | ability stringclasses 1
value | reward_model dict | sub_source stringclasses 12
values | extra_info dict |
|---|---|---|---|---|---|
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Innocentius has a problem — his computer monitor has... | code | {
"ground_truth": "{\"inputs\": [\"4 8\\n..w..w..\\n........\\n........\\n..w..w..\\n\", \"5 6\\n......\\n.w....\\n......\\n..w...\\n......\\n\", \"2 4\\n....\\n.w..\\n\", \"2 6\\nw..w.w\\n...w..\\n\", \"1 3\\n.w.\\n\", \"8 10\\n..........\\n..........\\n.....w....\\n.w........\\n..........\\n....w.....\\n..........\... | rating_>1900 | {
"id": "370_D. Broken Monitor",
"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 ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Adilbek's house is located on a street which can be ... | code | {
"ground_truth": "{\"inputs\": [\"6 2 3\\n1 3\\n1 2 3\\n\", \"4 3 4\\n1 2 3\\n1 10 100 1000\\n\", \"5 1 5\\n0\\n3 3 3 3 3\\n\", \"7 4 3\\n2 4 5 6\\n3 14 15\\n\", \"1 0 1\\n\\n1000000\\n\", \"1 1 1\\n0\\n1000\\n\", \"3 2 3\\n1 2\\n1 1 1000000\\n\", \"3 0 3\\n\\n333 500 1001\\n\", \"3 0 3\\n\\n334 500 1001\\n\", \"6 2... | HARD | {
"id": "taco-train-20684",
"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 is a string S consisting of `L` and `R`.\n\nLe... | code | {
"ground_truth": "{\"inputs\": [\"RRLLLLRLRRLL\", \"RRRLLRLLRRRLLLLL\", \"RRLRL\", \"RRLLRLRLLRLL\", \"RLRLLRLRRRRLLLLL\", \"RRLLLLRLRLRL\", \"RRRLLRLLRRLRLLLL\", \"RRLRLLRLLLRL\", \"RRLRLLRLLRLL\", \"RRLLLLRRLRLL\", \"RRRLLRLLLRRLLRLL\", \"RRLRRLLLLLRL\", \"RRRLLRLLRLRLLRLL\", \"RRLRLLLRLLRL\", \"RRLLLLRLLRRL\", \"... | none | {
"id": "p02954 AtCoder Beginner Contest 136 - Gathering Children",
"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": "Gerald bought two very rare paintings at the Sotheby... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n1 3\\n2 1\\n\", \"5 5\\n3 3\\n3 3\\n\", \"4 2\\n2 3\\n1 2\\n\", \"62 70\\n48 12\\n75 51\\n\", \"90 75\\n38 2\\n100 61\\n\", \"965 1000\\n606 895\\n533 394\\n\", \"958 1000\\n326 461\\n836 674\\n\", \"903 694\\n104 488\\n567 898\\n\", \"28 65\\n66 27\\n5 72\\n\", \"10 10\\n9 10... | rating_<=1200 | {
"id": "560_B. Gerald is into Art",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A squarer is a simple and convenient device. You giv... | code | {
"ground_truth": "{\"inputs\": [[\"3\", \"1 4\", \"3 6\", \"3 5\"]], \"outputs\": [[\"139\", \"40079781\", \"32745632\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-24754",
"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": "Like other girlfriends Chintu's girlfriend is also v... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\nabcde\\naabaa\\nasdba\\n\\nSAMPLE\", \"46 2\\nymivskswbowdlmyctckjfnmagbhvoucvtfjxbhyymxbfju\\naxasehtiojbldsutdlgsblytjflcqqdcwgou\\nituvqxeukxkpufrijyaerhhgu\\nybitfkyuvfsrthawrgvjkoitdugua\\nklaaprrnbrfjiwjawcfwxeexdubtvutjwplscuovbhtbjcytbxnvjauu\\nnfouyprrydhuehcbemulvbmd... | none | {
"id": "chintu-and-his-girlfriend",
"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": "Pasha has a wooden stick of some positive integer le... | code | {
"ground_truth": "{\"inputs\": [\"6\\n\", \"20\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"2000000000\\n\", \"1924704072\\n\", \"73740586\\n\", \"1925088820\\n\", \"593070992\\n\", \"1925473570\\n\", \"629490186\\n\", \"1980649112\\n\", \"36661322\\n\", \"1943590793\\n\", \"71207034\\n\", \"1757577394\\n\", \"16... | EASY | {
"id": "taco-test-600",
"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": "Vasiliy is fond of solving different tasks. Today he... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 2\\nba\\nac\\n\", \"3\\n1 3 1\\naa\\nba\\nac\\n\", \"2\\n5 5\\nbbb\\naaa\\n\", \"2\\n3 3\\naaa\\naa\\n\", \"4\\n0 0 8 6\\nbi\\nqp\\nbt\\nya\\n\", \"5\\n8 0 4 8 2\\nac\\ncl\\ngg\\ngm\\nfs\\n\", \"10\\n7 7 0 0 0 1 6 6 7 3\\ndv\\ngb\\nvg\\nxg\\nkt\\nml\\nqm\\nnq\\nrt\\nxn\\n\", \... | MEDIUM_HARD | {
"id": "taco-train-3036",
"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 description.\nChris brown and Rihanna are in... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4\\n1 1 3 3 \\n4\\n1 1 1 3\"], \"outputs\": [\"1\\n2\"]}",
"style": "rule"
} | none | {
"id": "cc1",
"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": "Iroha is very particular about numbers. There are K ... | code | {
"ground_truth": "{\"inputs\": [\"1000 8\\n1 3 4 5 6 7 8 9\", \"9999 1\\n0\", \"67 1\\n0\", \"34 1\\n0\", \"3 1\\n0\", \"6 1\\n0\", \"10 1\\n0\", \"5 1\\n0\", \"39 1\\n0\", \"10 1\\n1\", \"4 1\\n1\", \"56 1\\n0\", \"12 1\\n0\", \"8 1\\n0\", \"2 1\\n0\", \"0 1\\n-1\", \"1001 8\\n1 3 4 5 6 7 8 9\", \"9999 1\\n-1\", \"... | none | {
"id": "p04039 AtCoder Regular Contest 058 - Iroha's Obsession",
"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": "Some-one(as if, you care about the name) is tired of... | code | {
"ground_truth": "{\"inputs\": [\"100\\n6 1 5 7 10 10 2 7 3 7 2 10 7 6 3 5 5 5 3 7 2 4 2 7 7 4 2 8 2 10 4 7 9 1 1 7 9 7 1 10 10 9 5 6 10 1 7 5 8 1 1 5 3 10 2 4 3 5 2 7 4 9 5 10 1 3 7 6 6 9 3 6 6 10 1 10 6 1 10 3 4 1 7 9 2 7 8 9 3 3 2 4 6 6 1 2 9 4 1 2\", \"5\\n3 3 4 5 4\", \"10\\n1 1 1 1 1 1 2 3 4 4\", \"5\\n5 3 5 3... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-4186",
"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": "You are working for the Gryzzl company, headquartere... | code | {
"ground_truth": "{\"inputs\": [\"3\\n0 0\\n0 1\\n1 0\\n1\\n1 1 2\\n\", \"4\\n0 0\\n0 1\\n1 0\\n1 1\\n2\\n0 1 1 2\\n2 5 5 8\\n\", \"3\\n0 0\\n1 1\\n1 0\\n1\\n1 1 2\\n\", \"3\\n0 0\\n2 1\\n1 0\\n1\\n1 1 2\\n\", \"3\\n0 0\\n2 1\\n1 0\\n1\\n1 2 2\\n\", \"3\\n0 -1\\n2 1\\n0 0\\n1\\n1 2 2\\n\", \"4\\n0 0\\n0 1\\n1 0\\n1 ... | rating_>1900 | {
"id": "1220_G. Geolocation",
"rating": 3400,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Let us consider a grid of squares with 10^9 rows and... | code | {
"ground_truth": "{\"inputs\": [\"9\\n2 3 5 4 1 2 4 2 1\", \"2\\n2 2\", \"9\\n27 18 28 18 28 45 90 45 23\", \"5\\n2 1 2 1 2\", \"9\\n3 3 5 4 1 2 4 2 1\", \"9\\n21 18 28 18 28 45 90 45 23\", \"9\\n2 3 7 4 1 2 4 2 1\", \"9\\n21 18 3 18 28 45 90 45 23\", \"9\\n2 3 4 4 1 2 4 2 1\", \"9\\n21 18 3 18 46 45 90 45 23\", \"9... | none | {
"id": "p03299 AtCoder Grand Contest 026 - Histogram Coloring",
"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": "About Tutorial Challenges \n\nMany of the challenges... | code | {
"ground_truth": "{\"inputs\": [\"4\\n6\\n1 4 5 7 9 12\\n\"], \"outputs\": [\"1\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-6149",
"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 stream of incoming numbers, find average or m... | code | {
"ground_truth": "{\"inputs\": [\"n = 5\\narr[] = {10, 20, 30, 40, 50}\", \"n = 2\\narr[] = {12, 2}\"], \"outputs\": [\"10.00 15.00 20.00 25.00 30.00\", \"12.00 7.00\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-6793",
"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": "Andrzej was given a task:\nThere are n jars with pill... | code | {
"ground_truth": "{\"fn_name\": \"friends\", \"inputs\": [[0], [1], [2], [4], [3], [16]], \"outputs\": [[0], [0], [0], [1], [1], [3]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-3948",
"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": "# Longest Palindromic Substring (Linear)\n\nA palindr... | code | {
"ground_truth": "{\"fn_name\": \"longest_palindrome\", \"inputs\": [[\"babad\"], [\"madam\"], [\"dde\"], [\"ababbab\"], [\"abababa\"], [\"banana\"], [\"abba\"], [\"cbbd\"], [\"zz\"], [\"dddd\"], [\"\"], [\"abcdefghijklmnopqrstuvwxyz\"], [\"ttaaftffftfaafatf\"], [\"bbaaacc\"], [\"m\"]], \"outputs\": [[\"bab\"], [\"m... | MEDIUM | {
"id": "taco-train-10208",
"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": "Chouti was doing a competitive programming competiti... | code | {
"ground_truth": "{\"inputs\": [\"8\\n\", \"1\\n\", \"4\\n\", \"3\\n\", \"158260522\\n\", \"2\\n\", \"1000000000\\n\", \"5\\n\", \"7\\n\", \"9\\n\", \"10\\n\", \"11\\n\", \"12\\n\", \"13\\n\", \"641009859\\n\", \"802593587\\n\", \"819819\\n\", \"524125987\\n\", \"959461493\\n\", \"33313246\\n\", \"702209411\\n\", \"... | EASY | {
"id": "taco-train-11481",
"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": "While the Chicago Cubs were ecstatic with their 2016... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 0 2\\n\", \"3\\n1 -1 4\\n\", \"11\\n-1 -1 -1 -1 0 0 0 0 0 0 1\\n\"], \"outputs\": [\"1.6666666666666667\\n\", \"2.5\\n\", \"0.14285714285714285\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-5957",
"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": "Takahashi is organizing a party.\n\nAt the party, ea... | code | {
"ground_truth": "{\"inputs\": [\"100000 99999\", \"123 456\", \"2 3\", \"110000 99999\", \"123 179\", \"2 1\", \"110001 99999\", \"108 179\", \"3 1\", \"110001 118998\", \"50 179\", \"1 1\", \"110001 52132\", \"50 306\", \"2 0\", \"110000 52132\", \"50 267\", \"100000 52132\", \"50 243\", \"100000 3119\", \"50 30\"... | none | {
"id": "p02831 AtCoder Beginner Contest 148 - Snack",
"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 string b is a subsequence of a string a if b can b... | code | {
"ground_truth": "{\"inputs\": [\"3\\n11\\nantontrygub\\n15\\nbestcoordinator\\n19\\ntrywatchinggurabruh\\n\", \"1\\n200\\ntbyrguruybtgtybugryrtbugbrgyutruygbtyrgtubrtgybubguytrbtyrugtyugrbuygrtbtrguybybrutgtbgurybygrtugytubrtuyrbgytbugrtrgyburtbygubygtrurbugyttuygbrutbgyrubgrtytugybrytbgurugrbtygtybrurbygutrtgbyubu... | rating_<=1200 | {
"id": "1450_A. Avoid Trygub",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "# Task\n Alireza and Ali have a `3×3 table` and playi... | code | {
"ground_truth": "{\"fn_name\": \"table_game\", \"inputs\": [[[[1, 2, 1], [2, 4, 2], [1, 2, 1]]], [[[3, 7, 4], [5, 16, 11], [2, 9, 7]]], [[[1, 4, 2], [5, 10, 5], [4, 7, 3]]], [[[2, 4, 2], [4, 6, 4], [2, 4, 2]]], [[[1, 2, 1], [1, 2, 1], [1, 2, 1]]], [[[2, 4, 2], [4, 8, 4], [2, 4, 2]]], [[[1, 3, 2], [5, 10, 5], [4, 7,... | EASY | {
"id": "taco-train-19259",
"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 a function that accepts a square matrix (`N x N... | code | {
"ground_truth": "{\"fn_name\": \"determinant\", \"inputs\": [[[[5]]]], \"outputs\": [[5]]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-10073",
"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": "In a array A of size 2N, there are N+1 unique element... | code | {
"ground_truth": "{\"fn_name\": \"repeatedNTimes\", \"inputs\": [[[1, 2, 3, 3]]], \"outputs\": [3]}",
"style": "rule"
} | EASY | {
"id": "taco-train-18709",
"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": "Petya is a big fan of mathematics, especially its pa... | code | {
"ground_truth": "{\"inputs\": [\"12\\n\", \"4\\n\", \"3\\n\", \"998\\n\", \"69\\n\", \"9\\n\", \"1000\\n\", \"5\\n\", \"10\\n\", \"8\\n\", \"994\\n\", \"100\\n\", \"423\\n\", \"999\\n\", \"997\\n\", \"57\\n\", \"34\\n\", \"13\\n\", \"6\\n\", \"876\\n\", \"995\\n\", \"29\\n\", \"24\\n\", \"11\\n\", \"996\\n\", \"17\... | rating_<=1200 | {
"id": "854_A. Fraction",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You have an array $a$ of length $n$. You can exactly... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3\\n2 2 1\\n4\\n3 1 2 1\\n5\\n1 2 2 4 4\\n\", \"1\\n4\\n1 3 2 4\\n\", \"1\\n7\\n1 2 3 5 4 6 7\\n\"], \"outputs\": [\"YES\\nYES\\nNO\\n\", \"YES\\n\", \"YES\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-16322",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There was a big old mansion in one place, and one ca... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\n0 0\\n1 0\\n1 1\\n0 1\\n1 2\\n1 4\\n2 3\\n3 4\\n12 22\\n2 0\\n4 0\\n8 0\\n4 2\\n6 2\\n8 2\\n2 4\\n4 4\\n6 4\\n0 6\\n8 6\\n0 8\\n1 2\\n2 3\\n1 4\\n1 7\\n1 10\\n2 4\\n2 5\\n3 5\\n3 6\\n4 5\\n4 8\\n5 6\\n5 9\\n6 9\\n6 11\\n7 10\\n7 8\\n8 9\\n9 11\\n10 11\\n10 12\\n11 12\\n0 0\", ... | none | {
"id": "p00268 Cats Going Straight II",
"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": "Each month Blake gets the report containing main eco... | code | {
"ground_truth": "{\"inputs\": [\"3 1\\n1 2 3\\n2 2\", \"4 2\\n1 2 4 3\\n2 3\\n1 2\", \"4 1\\n4 3 2 1\\n1 4\", \"5 1\\n1 2 3 4 5\\n2 5\", \"6 2\\n3 1 2 6 4 5\\n1 6\\n2 3\", \"10 3\\n6 4 0 2 -3 7 8 -9 1 5\\n1 8\\n1 4\\n2 2\", \"100 30\\n65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 ... | rating_1601-1900 | {
"id": "631C",
"rating": 1700,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
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 have a rooted tree consisting of *n* vertices. E... | code | {
"ground_truth": "{\"inputs\": [\"8 5\\n1 2 2 3 3 2 3 3\\n1 2\\n1 5\\n2 3\\n2 4\\n5 6\\n5 7\\n5 8\\n1 2\\n1 3\\n1 4\\n2 3\\n5 3\", \"4 1\\n1 2 3 4\\n1 2\\n2 3\\n3 4\\n1 1\"], \"outputs\": [\"2\\n2\\n1\\n0\\n1\", \"4\"]}",
"style": "rule"
} | rating_>1900 | {
"id": "375D",
"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": "The closing ceremony of Squanch Code Cup is held in ... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n3 3 3 2\\n1 3\\n\", \"2 2\\n3 2 3 3\\n1 2\\n\", \"1 1\\n0\\n1 1\\n\", \"1 2\\n2 2 3\\n0\\n\", \"1 1\\n1 2\\n0\\n\", \"2 2\\n3 4 3 3\\n1 2\\n\", \"2 2\\n3 4 1 3\\n1 2\\n\", \"2 2\\n3 2 3 2\\n1 2\\n\", \"2 2\\n3 2 3 2\\n1 4\\n\", \"2 2\\n3 2 3 2\\n1 7\\n\", \"2 2\\n3 3 2 2\\n1 3... | rating_>1900 | {
"id": "720_A. Closing ceremony",
"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": "Daenerys Targaryen has an army consisting of k group... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n5 8\\n\", \"1 2\\n7 1\\n\", \"1 2\\n4 4\\n\", \"1 4\\n2 2 1 2\\n\", \"10000 100\\n749 2244 949 2439 2703 44 2394 124 285 3694 3609 717 1413 155 974 1778 1448 1327 1487 3458 319 1395 3783 2184 2062 43 826 38 3276 807 1837 4635 171 1386 1768 1128 2020 2536 800 782 3058 174 455 8... | HARD | {
"id": "taco-test-41",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A flower shop has got *n* bouquets, and the *i*-th b... | code | {
"ground_truth": "{\"inputs\": [\"5\\n2 3 4 2 7\", \"6\\n2 2 6 8 6 12\", \"3\\n11 4 10\", \"1\\n1\", \"1\\n2\", \"1\\n999999\", \"1\\n1000000\", \"4\\n943543 151729 379602 589828\", \"2\\n468463 62253\", \"3\\n352987 849349 967007\", \"20\\n274039 899325 798709 157662 963297 276599 529230 80095 252956 980560 358150 ... | rating_1401-1600 | {
"id": "926G",
"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": "Valera is a lazy student. He has *m* clean bowls and... | code | {
"ground_truth": "{\"inputs\": [\"3 1 1\\n1 2 1\", \"4 3 1\\n1 1 1 1\", \"3 1 2\\n2 2 2\", \"8 2 2\\n1 2 1 2 1 2 1 2\", \"2 100 100\\n2 2\", \"1 1 1\\n2\", \"233 100 1\\n2 2 1 1 1 2 2 2 2 1 1 2 2 2 1 2 2 1 1 1 2 2 1 1 1 1 2 1 2 2 1 1 2 2 1 2 2 1 2 1 2 1 2 2 2 1 1 1 1 2 1 2 1 1 2 1 1 2 2 1 2 1 2 1 1 1 1 1 1 1 1 1 2 1... | rating_<=1200 | {
"id": "369A",
"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": "Problem\n\nIt seems that a magician with a smoky sme... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 2\\n2 10\\n3 8\", \"10\\n1 10\\n1 10\\n1 10\\n1 10\\n1 10\\n1 10\\n1 10\\n1 10\\n1 10\\n1 10\", \"3\\n1 2\\n2 10\\n2 8\", \"10\\n1 10\\n1 10\\n1 10\\n1 10\\n2 10\\n1 10\\n1 10\\n1 10\\n1 10\\n1 10\", \"3\\n1 2\\n1 10\\n2 8\", \"3\\n1 1\\n1 10\\n2 8\", \"3\\n1 1\\n1 10\\n2 13\"... | none | {
"id": "p02163 How old are you",
"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 square grid of integers arr, a falling path w... | code | {
"ground_truth": "{\"fn_name\": \"minFallingPathSum\", \"inputs\": [[[[1, 2, 3], [6, 6, 7], [7, 8, 9], [], []]]], \"outputs\": [13]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-521",
"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": "Consider an array $A=[a_0,a_1,...,a_{n-1}]$ of $n$ i... | code | {
"ground_truth": "{\"inputs\": [\"3 1 1\\n3 2 1\\n0 1\\n\", \"4 2 0\\n4 3 2 1\\n0 2\\n1 3\\n\"], \"outputs\": [\"3\\n\", \"2 \\n\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-4471",
"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": "Given a long integer $\\boldsymbol{x}$, count the nu... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2\\n10\\n\", \"2\\n5\\n100\\n\"], \"outputs\": [\"1\\n5\\n\", \"2\\n27\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-1710",
"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": "Since you are in Britain, you definitely want to try... | code | {
"ground_truth": "{\"inputs\": [\"4 3\\n1 2\\n2 3\\n2 4\\n\", \"7 7\\n1 2\\n2 3\\n3 4\\n4 5\\n5 2\\n4 6\\n5 7\\n\"], \"outputs\": [\"3\\n\", \"6\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-286",
"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": "Louise and Richard have developed a numbers game. T... | code | {
"ground_truth": "{\"inputs\": [\"1\\n6\\n\"], \"outputs\": [\"Richard\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-19423",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The host university is organizing a party for this y... | code | {
"ground_truth": "{\"inputs\": [\"2 2 1\\n\", \"2 2 2\\n\"], \"outputs\": [\"3\\n\", \"6\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-20720",
"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": "Hit n nails one by one at the coordinates P1 (x1, y1... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1.0,0.0\\n0.0,1.0\\n2.0,1.0\\n1.0,2.0\\n9\\n-509.94,892.63\\n567.62,639.99\\n-859.32,-64.84\\n-445.99,383.69\\n667.54,430.49\\n551.12,828.21\\n-940.2,-877.2\\n-361.62,-970\\n-125.42,-178.48\\n0\", \"4\\n1.0,0.0\\n0.0,1.0\\n2.0,1.0\\n1.0,2.0\\n9\\n-509.94,892.63\\n567.62,639.99\\... | none | {
"id": "p00068 Enclose Pins with a Rubber Band",
"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": "Tracy loves Donuts. She purchased a lots of Donuts f... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"5\", \"12\"]], \"outputs\": [[\"78.5\", \"452.16\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-4515",
"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": "Finally, College has started calling students back t... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 3\\n3 2\\n4 3\\n\"], \"outputs\": [\"1\\n2\\n2\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-12458",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The hobbits Frodo and Sam are carrying the One Ring ... | code | {
"ground_truth": "{\"inputs\": [\"6 10\\n10 40\\n20 10\\n25 30\\n30 15\\n50 15\\n65 30\\n\", \"2 10000\\n0 10000\\n400000 0\\n\", \"9 5\\n0 0\\n5 10\\n15 10\\n20 0\\n25 11\\n30 0\\n35 10\\n50 10\\n60 5\\n\", \"4 6\\n0 0\\n2 4\\n7 5\\n10 0\\n\", \"5 2\\n1 3\\n4 4\\n5 7\\n7 5\\n10 4\\n\", \"5 2\\n1 3\\n4 4\\n5 1\\n7 5... | rating_>1900 | {
"id": "1468_G. Hobbits",
"rating": 2500,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You may have already known that a standard ICPC team... | code | {
"ground_truth": "{\"inputs\": [\"6\\n1 1 1\\n3 6 0\\n0 0 0\\n0 1 1\\n10 1 10\\n4 4 1\\n\", \"6\\n1 1 1\\n3 6 0\\n0 0 0\\n1 1 1\\n10 1 10\\n4 4 1\\n\", \"6\\n1 1 1\\n3 6 0\\n0 1 0\\n0 1 1\\n10 1 10\\n4 4 1\\n\", \"6\\n0 1 1\\n3 6 0\\n0 0 0\\n1 1 1\\n10 1 10\\n4 4 1\\n\", \"6\\n0 1 1\\n3 6 0\\n0 0 0\\n1 0 1\\n10 1 10... | rating_<=1200 | {
"id": "1221_C. Perfect Team",
"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": "Vova promised himself that he would never play compu... | code | {
"ground_truth": "{\"inputs\": [\"5 2\\n2 5 3 4 8\\n1 4\\n4 5\", \"10 0\\n1 2 3 4 5 6 7 8 9 10\", \"10 5\\n1 6 2 7 3 8 4 9 5 10\\n1 2\\n3 4\\n5 6\\n7 8\\n9 10\", \"1 0\\n0\", \"1 0\\n1000000000\", \"2 0\\n0 0\", \"2 0\\n1000000000 0\", \"2 0\\n0 1000000000\", \"2 0\\n1000000000 1000000000\", \"2 1\\n0 0\\n1 2\"], \"... | rating_1201-1400 | {
"id": "893C",
"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": "A subsequence of a string S is a string that can be ... | code | {
"ground_truth": "{\"inputs\": [\"frqnvhydscshfcgdemurlfrutcpzhopfotpifgepnqjxupnskapziurswqazdwnwbgdhyktfyhqqxpoidfhjdakoxraiedxskywuepzfniuyskxiyjpjlxuqnfgmnjcvtlpnclfkpervxmdbvrbrdn\", \"abcdefghijklmnopqrstuvwxyz\", \"atcoderregularcontest\", \"frqnvhydscshfcgdemurlfrutcpzhopfotpifgepnqjxupnskapziurswqazdwnwbgdh... | none | {
"id": "p03629 AtCoder Regular Contest 081 - Don't Be a Subsequence",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There is a square field of size n × n in which two c... | code | {
"ground_truth": "{\"inputs\": [\"6\\n4\\n..*.\\n....\\n*...\\n....\\n2\\n*.\\n.*\\n2\\n.*\\n.*\\n3\\n*.*\\n...\\n...\\n5\\n.....\\n..*..\\n.....\\n.*...\\n.....\\n4\\n....\\n....\\n*...\\n*...\\n\", \"6\\n4\\n..*.\\n....\\n*...\\n....\\n2\\n*.\\n.*\\n2\\n*.\\n.*\\n3\\n*.*\\n...\\n...\\n5\\n.....\\n..*..\\n.....\\n.... | rating_<=1200 | {
"id": "1512_B. Almost Rectangle",
"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": "Phoenix is playing with a new puzzle, which consists... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2\\n4\\n6\\n\", \"1\\n200040002\\n\", \"1\\n1458\\n\", \"1\\n999939200\\n\", \"1\\n200000000\\n\", \"1\\n92888450\\n\", \"1\\n100000001\\n\", \"1\\n536870913\\n\", \"1\\n9060100\\n\", \"1\\n500101938\\n\", \"1\\n114514\\n\", \"3\\n131073\\n262148\\n9266\\n\", \"3\\n524304\\n6103... | rating_<=1200 | {
"id": "1515_B. Phoenix and Puzzle",
"rating": 1000,
"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": "Limak is a little polar bear. He loves connecting wi... | code | {
"ground_truth": "{\"inputs\": [\"4 2 8\\n300 950 500 200\\n1 3\\n2 4\\n2 3\\n1 1\\n1 2\\n2 1\\n2 2\\n2 3\", \"6 3 9\\n50 20 51 17 99 24\\n1 3\\n1 4\\n1 5\\n1 2\\n2 4\\n2 2\\n1 1\\n2 4\\n2 3\", \"6 3 10\\n62417580 78150524 410053501 582708235 630200761 760672946\\n2 2\\n1 5\\n1 2\\n1 4\\n2 4\\n2 1\\n2 1\\n1 6\\n2 5\... | rating_<=1200 | {
"id": "639A",
"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 a node of the tree with index 1 and wi... | code | {
"ground_truth": "{\"inputs\": [\"6\\n1 1 1\\n2 2 0\\n2 2 1\\n1 3 0\\n2 2 0\\n2 2 2\\n\", \"7\\n1 1 3\\n1 2 3\\n2 3 4\\n1 2 0\\n1 5 3\\n2 5 5\\n2 7 22\\n\", \"7\\n1 1 2\\n1 2 3\\n2 3 3\\n1 0 0\\n1 5 1\\n2 5 0\\n2 4 0\\n\", \"6\\n1 1 0\\n2 2 0\\n2 0 3\\n1 0 2\\n2 1 3\\n2 1 6\\n\", \"10\\n2 1 633078426977137\\n1 0 800... | rating_>1900 | {
"id": "932_D. Tree",
"rating": 2200,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "After the hundred years of war started by the Fire N... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"5\", \"2\"]], \"outputs\": [[\"200000002\", \"0\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-500",
"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": "In the city of Ultima Thule job applicants are often... | code | {
"ground_truth": "{\"inputs\": [\"####\\n.#..\\n####\\n....\\n\", \"####\\n....\\n####\\n....\\n\", \"....\\n....\\n....\\n....\\n\", \"###.\\n...#\\n###.\\n...#\\n\", \".##.\\n#..#\\n.##.\\n#..#\\n\", \".#.#\\n#.#.\\n.#.#\\n#.#.\\n\", \"##..\\n..##\\n##..\\n..##\\n\", \"#.#.\\n#.#.\\n.#.#\\n.#.#\\n\", \".#.#\\n#.#.... | EASY | {
"id": "taco-train-19632",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There is a grid with N rows and N columns of squares... | code | {
"ground_truth": "{\"inputs\": [\"4 3\\n0 12 71\\n81 0 53\\n14 92 0\\n1 1 2 1\\n2 1 1 2\\n2 2 1 3\\n1 1 2 2\", \"2 3\\n0 1 1\\n1 0 1\\n1 4 0\\n1 2\\n3 3\", \"2 3\\n0 1 1\\n1 1 1\\n1 4 0\\n1 2\\n3 3\", \"2 3\\n0 1 1\\n1 1 1\\n2 4 0\\n1 2\\n3 3\", \"2 3\\n0 1 1\\n1 0 1\\n1 4 0\\n1 2\\n1 3\", \"2 3\\n0 2 1\\n1 1 1\\n2 ... | none | {
"id": "p03330 AtCoder Beginner Contest 099 - Good Grid",
"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": "Once when Ravi studied in the first year at school, ... | code | {
"ground_truth": "{\"inputs\": [\"abcdefgh\\n10\", \"aaaaa\\n4\"], \"outputs\": [\"1\\naaaaa\", \"0\"]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-10890",
"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": "Read problems statements in Mandarin Chinese, Russia... | code | {
"ground_truth": "{\"inputs\": [\"1\\n8\\n10001010\"], \"outputs\": [\"2\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-15074",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Vasya is developing his own programming language VPL... | code | {
"ground_truth": "{\"inputs\": [\"8\\ntry\\n try\\n throw ( AE ) \\n catch ( BE, \\\"BE in line 3\\\")\\n\\n try\\n catch(AE, \\\"AE in line 5\\\") \\ncatch(AE,\\\"AE somewhere\\\")\", \"8\\ntry\\n try\\n throw ( AE ) \\n catch ( AE, \\\"AE in line 3\\\")\\n\\n try\\n catch(BE, ... | rating_1601-1900 | {
"id": "195C",
"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": "Chef is the leader of Chef's Earth Defense Organizat... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"3 2\", \"3 2 3\", \"2 1\", \"5 6\"]], \"outputs\": [[\"1.5000000000\", \"2.0000000000\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-13129",
"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": "We have a grid with N rows and N columns. The cell a... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n1 1\\n1 2\", \"3 2\\n1 2\\n2 3\", \"4 3\\n1 2\\n1 3\\n4 4\", \"2 2\\n1 2\\n1 2\", \"7 3\\n1 2\\n1 3\\n4 4\", \"2 2\\n2 1\\n1 2\", \"3 1\\n1 4\\n2 3\", \"13 3\\n1 2\\n1 4\\n4 4\", \"2 0\\n1 4\\n2 3\", \"7 3\\n2 2\\n1 4\\n4 4\", \"3 2\\n1 4\\n2 3\", \"13 3\\n1 2\\n1 3\\n4 4\", \... | none | {
"id": "p03956 AtCoder Grand Contest 006 - Blackout",
"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 family consisting of father bear, mother bear and ... | code | {
"ground_truth": "{\"inputs\": [\"50 30 10 10\\n\", \"100 50 10 21\\n\", \"3 2 1 1\\n\", \"50 30 10 5\\n\", \"50 49 5 10\\n\", \"50 20 4 8\\n\", \"100 50 3 1\\n\", \"60 30 10 1\\n\", \"99 22 13 14\\n\", \"99 50 25 49\\n\", \"100 40 30 40\\n\", \"99 32 13 5\\n\", \"40 30 20 10\\n\", \"100 50 19 30\\n\", \"5 4 3 1\\n\... | rating_1201-1400 | {
"id": "907_A. Masha and Bears",
"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": "Milky Way\n\nMilky Way\n\nEnglish text is not availa... | code | {
"ground_truth": "{\"inputs\": [\"\"], \"outputs\": [\"\"]}",
"style": "rule"
} | none | {
"id": "p01516 Milky Way",
"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": "Nastya came to her informatics lesson, and her teach... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n1 2 3\\n4 5 6\\n7 8 9\\n1 4 7\\n2 5 6\\n3 8 9\\n\", \"2 2\\n1 1\\n6 1\\n1 6\\n1 1\\n\", \"2 2\\n4 4\\n4 5\\n5 4\\n4 4\\n\", \"3 3\\n1 1 4\\n1 1 1\\n1 1 1\\n1 1 3\\n1 2 1\\n1 1 1\\n\", \"3 3\\n1 2 3\\n2 2 2\\n2 2 1\\n1 2 2\\n2 3 2\\n3 2 1\\n\", \"3 2\\n5 3\\n5 5\\n2 3\\n5 5\\n3... | rating_1401-1600 | {
"id": "1136_C. Nastya Is Transposing Matrices",
"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": "Pankaj is a very intelligent student studying in one... | code | {
"ground_truth": "{\"inputs\": [\"6\\n650 945 -832 -999 678 702\\n\\nSAMPLE\", \"20\\n581 912 26 666 200 978 379 752 966 503 167 671 261 964 881 875 830 657 827 529\", \"99\\n7 635 -634 -714 -382 -97 -831 590 64 162 -140 -8 418 33 -898 566 345 -714 -550 -21 497 -678 -507 568 756 935 107 717 -508 37 59 796 -147 883 5... | none | {
"id": "pankaj-and-his-in-laws",
"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": "Barney is standing in a bar and starring at a pretty... | code | {
"ground_truth": "{\"inputs\": [\"8.549e2\", \"8.549e3\", \"0.33e0\", \"1.31e1\", \"1.038e0\", \"8.25983e5\", \"8.77056e6\", \"4.28522890224373996236468418851564462623381500262405e30\", \"4.09336275522154223604344399571355118601483591618747e85\", \"2.062909480759549113230626474704224392848630338479195122036209624093... | rating_1201-1400 | {
"id": "697B",
"rating": 1400,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Takahashi's office has N rooms. Each room has an ID ... | code | {
"ground_truth": "{\"inputs\": [\"6\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\", \"6\\n1 5\\n5 6\\n6 2\\n6 3\\n6 4\", \"10\\n1 5\\n5 6\\n6 10\\n6 4\\n10 3\\n10 8\\n8 2\\n4 7\\n4 9\", \"6\\n1 4\\n2 3\\n3 4\\n4 5\\n5 6\", \"6\\n1 2\\n5 6\\n6 2\\n6 3\\n6 4\", \"10\\n1 5\\n5 6\\n6 10\\n1 4\\n10 3\\n10 8\\n8 2\\n4 7\\n4 9\", \"6\\n1... | none | {
"id": "p03204 AtCoder Grand Contest 029 - Wandering TKHS",
"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": "Limak is going to participate in a contest on the la... | code | {
"ground_truth": "{\"inputs\": [\"7 1\\n\", \"4 190\\n\", \"3 222\\n\", \"9 170\\n\", \"1 55\\n\", \"2 99\\n\", \"10 166\\n\", \"8 60\\n\", \"1 1\\n\", \"9 235\\n\", \"3 239\\n\", \"5 226\\n\", \"10 15\\n\", \"3 240\\n\", \"2 240\\n\", \"1 235\\n\", \"10 135\\n\", \"5 225\\n\", \"7 8\\n\", \"2 236\\n\", \"10 16\\n\"... | rating_<=1200 | {
"id": "750_A. New Year and Hurry",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "You have the `radius` of a circle with the center in ... | code | {
"ground_truth": "{\"fn_name\": \"points\", \"inputs\": [[1], [2], [3], [5], [1000], [55], [33], [15], [42], [0], [99], [17]], \"outputs\": [[5], [13], [29], [81], [3141549], [9477], [3409], [709], [5525], [1], [30757], [901]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-13426",
"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": "Kuzya started going to school. He was given math hom... | code | {
"ground_truth": "{\"inputs\": [\"7\\n6 4 10 1 2 15 1\\n*/*/*//\\n\", \"3\\n1 2 3\\n*/*\\n\", \"20\\n580570 26214 688069 348426 225262 652088 143524 965480 940883 533073 565081 645978 751257 948695 302734 869043 269602 444392 653375 592631\\n*****/*******/******\\n\", \"50\\n39270 170170 510510 170170 255255 46410 1... | rating_>1900 | {
"id": "1582_G. Kuzya and Homework",
"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": "You are provided with the marks of entire class in D... | code | {
"ground_truth": "{\"inputs\": [[\"1\", \"9\", \"56 42 94 25 74 99 27 52 83\"]], \"outputs\": [[\"2 55.56\", \"5\", \"43\", \"57\", \"5\", \"74\", \"25\", \"0\", \"72\", \"47\", \"16\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-3274",
"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": "Adapted from here, with less terrible instructions an... | code | {
"ground_truth": "{\"fn_name\": \"kangaroo\", \"inputs\": [[0, 3, 4, 2], [0, 9, 16, 4], [-1, 3, 0, 2], [-1571, 4240, 9023, 4234], [-7855, 4240, 9023, 4234], [43, 5, 49, 3], [9023, 4240, 1571, 4234], [129, 15, 147, 9], [129, 15, 147, 90], [0, 2, 100000, 1], [72893, 11125, 24432, 4202], [13613, 299, 65130, 73]], \"out... | EASY | {
"id": "taco-train-4005",
"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 valid (IPv4) IP address, return a defanged ve... | code | {
"ground_truth": "{\"fn_name\": \"defangIPaddr\", \"inputs\": [[\"\\\"1.1.1.1\\\"\"]], \"outputs\": [\"\\\"1[.]1[.]1[.]1\\\"\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-16909",
"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": "This time the Berland Team Olympiad in Informatics i... | code | {
"ground_truth": "{\"inputs\": [\"4 2 5\\n1 2 3 1\", \"1 9 10\\n1\", \"3 2 10\\n1 2 1\", \"1 10 10\\n1\", \"1 1000000000 1000000000\\n100000\", \"2 4 1\\n1 1\", \"5 3 2\\n1 1 2 1 1\", \"5 3 3\\n1 2 2 1 1\", \"10 5 1000000000\\n1 1 1 2 2 1 2 2 2 2\", \"5 2 4\\n1 2 3 2 1\"], \"outputs\": [\"12\", \"1\", \"0\", \"0\", ... | rating_>1900 | {
"id": "878B",
"rating": 2300,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
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": "Limak is a little polar bear. Polar bears hate long ... | code | {
"ground_truth": "{\"inputs\": [\"3 5\\nab a\\ncc c\\nca a\\nee c\\nff d\", \"2 8\\naf e\\ndc d\\ncc f\\nbc b\\nda b\\neb a\\nbb b\\nff c\", \"6 2\\nbb a\\nba a\", \"2 5\\nfe b\\nbb a\\naf b\\nfd b\\nbf c\", \"3 4\\neb b\\nbd a\\ncd d\\nbb b\", \"3 36\\nab b\\nbb a\\naf c\\nbd b\\ncd a\\nff c\\nce a\\nae a\\ncb a\\n... | rating_1201-1400 | {
"id": "653B",
"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 three strings $a$, $b$ and $c$ of the ... | code | {
"ground_truth": "{\"inputs\": [\"4\\naaa\\nbbb\\nccc\\nabc\\nbca\\nbca\\naabb\\nbbaa\\nbaba\\nimi\\nmii\\niim\\n\", \"1\\nab\\nab\\nbb\\n\", \"1\\nba\\nab\\nbb\\n\", \"4\\naaa\\nbbb\\nccc\\nabc\\nbca\\ncca\\naabb\\nbbaa\\nbaba\\nimi\\nmii\\niim\\n\", \"4\\naaa\\nbbb\\nccc\\nabc\\nbca\\ncca\\naabb\\nbbaa\\nbaba\\nii... | EASY | {
"id": "taco-train-803",
"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": "Find the longest subsequence X of a string A which is... | code | {
"ground_truth": "{\"inputs\": [\"A = \\\"ABCD\\\" , B = \\\"BACDBDCD\\\"\", \"A = \\\"A\\\" , B = \\\"A\\\"\"], \"outputs\": [\"3\", \"1\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-3825",
"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": "Scheduling is how the processor decides which jobs(pr... | code | {
"ground_truth": "{\"fn_name\": \"SJF\", \"inputs\": [[[100], 0], [[3, 10, 20, 1, 2], 0], [[3, 10, 20, 1, 2], 1], [[3, 10, 10, 20, 1, 2], 1], [[3, 10, 10, 20, 1, 2], 2], [[3, 10, 20, 1, 2, 3], 5], [[3, 10, 20, 1, 2, 10, 10], 5]], \"outputs\": [[100], [6], [16], [16], [26], [9], [26]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-17035",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Read problem statements in [Hindi], [Bengali], [Mand... | code | {
"ground_truth": "{\"inputs\": [\"2\\n6 2\\n0 1 1 0 1 1\\n4 4\\n0 1 0 1\"], \"outputs\": [\"1 1 0 1 1 0 \\n\\n1 1 0 0\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-24982",
"rating": null,
"split": "confidence_train",
"sub_source": "VERY_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Jzzhu has invented a kind of sequences, they meet th... | code | {
"ground_truth": "{\"inputs\": [\"2 3\\n3\\n\", \"0 -1\\n2\\n\", \"-9 -11\\n12345\\n\", \"0 0\\n1000000000\\n\", \"-1000000000 1000000000\\n2000000000\\n\", \"-12345678 12345678\\n1912345678\\n\", \"728374857 678374857\\n1928374839\\n\", \"278374837 992837483\\n1000000000\\n\", \"-693849384 502938493\\n982838498\\n\... | EASY | {
"id": "taco-train-13417",
"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": "Edo has got a collection of *n* refrigerator magnets... | code | {
"ground_truth": "{\"inputs\": [\"3 1\\n1 1 2 2\\n2 2 3 3\\n3 3 4 4\", \"4 1\\n1 1 2 2\\n1 9 2 10\\n9 9 10 10\\n9 1 10 2\", \"3 0\\n1 1 2 2\\n1 1 1000000000 1000000000\\n1 3 8 12\", \"11 8\\n9 1 11 5\\n2 2 8 12\\n3 8 23 10\\n2 1 10 5\\n7 1 19 5\\n1 8 3 10\\n1 5 3 9\\n1 2 3 4\\n1 2 3 4\\n4 2 12 16\\n8 5 12 9\", \"20 ... | rating_>1900 | {
"id": "594C",
"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": "The unlucky Ikta-kun has rewritten the important cha... | code | {
"ground_truth": "{\"inputs\": [\"aaaaaa\\naaaaaa\", \"abcbcdbc\\nabc\", \"baaaaaaaa\\nb\", \"aaaaaa\\naaaaab\", \"bbcbcdbc\\nabc\", \"aaaaaa\\nbbaaaa\", \"bbcbcdbc\\nbca\", \"aaaaaa\\nbaaaaa\", \"bbcbcdbc\\nacb\", \"aaaaaa\\nbbaa`a\", \"cbdcbcbb\\nbca\", \"aaaaaa\\nbaba`a\", \"cbdcbcbb\\nbda\", \"aaaaab\\nbaba`a\",... | none | {
"id": "p01726 Almost Same Substring",
"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've got a robot, its task is destroying bombs on ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 1\\n-1 -1\\n\", \"3\\n5 0\\n0 5\\n1 0\\n\", \"1\\n-277226476 314722425\\n\", \"24\\n-2 -2\\n-1 1\\n0 1\\n1 1\\n0 2\\n1 -1\\n2 -2\\n1 -2\\n-1 0\\n0 -2\\n0 -1\\n-2 0\\n-2 -1\\n2 -1\\n2 2\\n-1 -2\\n-2 1\\n2 0\\n-1 2\\n1 2\\n-1 -1\\n1 0\\n2 1\\n-2 2\\n\", \"24\\n-2 -2\\n-1 1\\n0 1... | rating_1401-1600 | {
"id": "350_C. Bombs",
"rating": 1600,
"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": "The R1 company has recently bought a high rise build... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\nR1\", \"2 1\\nR1\", \"6 4\\nGO?GO!\", \"7 3\\nME,YOU.\", \"10 1\\nEK5JQMS5QN\", \"85 84\\n73IW80UODC8B,UR7S8WMNATV0JSRF4W0B2VV8LCAX6SGCYY8?LHDKJEO29WXQWT9.WY1VY7408S1W04GNDZPK\", \"59 53\\n7NWD!9PC11C8S4TQABBTJO,?CO6YGOM!W0QR94CZJBD9U1YJY23YB354,8F\", \"100 79\\nF2.58O.L4A!QX!... | rating_<=1200 | {
"id": "412A",
"rating": 900,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Consider an array with N elements and value of all th... | code | {
"ground_truth": "{\"inputs\": [\"N = 3\\r\\narr[] = {16, 16, 16}\", \"N = 2\\r\\narr[] = {2, 3}\"], \"outputs\": [\"7\", \"4\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-7143",
"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": "One day Jay, on getting his first salary, decides to ... | code | {
"ground_truth": "{\"fn_name\": \"minimum_apple\", \"inputs\": [\"arr[ ] = {1, 1, 1, 1, 1}\", \"arr[ ] = {1, 2, 3, 1, 2}\"], \"outputs\": [\"1\", \"3\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-22430",
"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, rearrange it in such a way that it ha... | code | {
"ground_truth": "{\"inputs\": [\"N=6\\r\\nS=\\\"aaaaab\\\"\", \"N=3 \\r\\nS=\\\"cba\\\"\"], \"outputs\": [\"aaaaab\", \"abc\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-12100",
"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": "*n* people came to a party. Then those, who had no f... | code | {
"ground_truth": "{\"inputs\": [\"1\\n3\"], \"outputs\": [\"1\"]}",
"style": "rule"
} | rating_1401-1600 | {
"id": "23B",
"rating": 1600,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "You should write a simple function that takes string ... | code | {
"ground_truth": "{\"fn_name\": \"zipvalidate\", \"inputs\": [[\"142784\"], [\"642784\"], [\"111\"], [\"1111111\"], [\"AA5590\"], [\"\"], [\"\\n245980\"], [\"245980\\n\"], [\"245980a\"], [\"24598a\"], [\" 310587 \"], [\"555555\"], [\"775255\"], [\"875555\"], [\"012345\"], [\"968345\"], [\"@68345\"]], \"outputs\": [[... | EASY | {
"id": "taco-train-25421",
"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": "Vasya likes to solve equations. Today he wants to so... | code | {
"ground_truth": "{\"inputs\": [\"1 2\\n\", \"4 6\\n\", \"6 3\\n\", \"2 2\\n\", \"22248 608\\n\", \"999995 1000\\n\", \"5 5\\n\", \"999002 457\\n\", \"2 997\\n\", \"999883 200\\n\", \"1 1000\\n\", \"1000000 2\\n\", \"996004 999\\n\", \"9 8\\n\", \"810000 901\\n\", \"1593 66\\n\", \"199942 1000\\n\", \"1000000 1000\\... | rating_<=1200 | {
"id": "1085_B. Div Times Mod",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Fatal Eagle has finally teamed up with Arjit to take... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 2 13\\n\\nSAMPLE\", \"6\\n32 68 6 93 25 61\", \"6\\n32 117 6 93 25 61\", \"3\\n1 2 18\\n\\nSAMPLE\", \"6\\n32 117 2 93 25 61\", \"3\\n1 2 28\\n\\nSAMPLE\", \"6\\n32 188 2 93 25 61\", \"3\\n1 2 3\\n\\nSAMPLE\", \"6\\n32 188 0 93 25 61\", \"6\\n32 188 0 83 25 61\", \"3\\n1 2 0\\... | none | {
"id": "the-art-of-security-4",
"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 array of 0 and 1. In how many iterations it ... | code | {
"ground_truth": "{\"fn_name\": \"minMoves\", \"inputs\": [\"n = 4\\na[] = {1, 0, 1, 0}\", \"n = 5\\na[] = {0, 0, 1, 0, 0}\"], \"outputs\": [\"1\", \"2\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-17773",
"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": "For an integer N find the number of trailing zeroes i... | code | {
"ground_truth": "{\"inputs\": [\"N = 5\", \"N = 4\"], \"outputs\": [\"1\", \"0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-1723",
"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 [Hindi], [Spanish], [Man... | code | {
"ground_truth": "{\"inputs\": [\"1\\n2 Dee\\n010\\n101\", \"1\\n3 Dee\\n111\\n000\\n100\", \"2\\n2 Dum\\n10\\n01\\n1 Dum\\n1\", \"2\\n2 Dee\\n00\\n11\\n1 Dum\\n0\", \"1\\n2 Dee\\n1\\n1\", \"2\\n1 Dee\\n0\\n1 Dee\\n1\", \"1\\n3 Dum\\n110\\n101\\n100\", \"1\\n2 Dee\\n1001\\n0110\", \"3\\n2 Dee\\n10\\n01\\n1 Dum\\n1\\... | MEDIUM_HARD | {
"id": "taco-test-611",
"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": "In Doodle Jump the aim is to guide a four-legged cre... | code | {
"ground_truth": "{\"inputs\": [\"3\\n7 4 12 2\\n7 1 9 4\\n7 4 12 3\\n\", \"3\\n1 1 2 1\\n1 1 2 2\\n1 1 2 3\\n\", \"3\\n1 1 2 1\\n1 1 4 2\\n1 1 2 3\\n\", \"3\\n7 4 12 2\\n7 1 9 4\\n7 4 15 3\\n\", \"3\\n7 4 12 2\\n7 1 4 4\\n7 4 12 3\\n\", \"3\\n7 4 12 4\\n7 1 9 4\\n7 4 15 3\\n\", \"3\\n7 4 12 1\\n7 1 9 4\\n7 4 12 3\\... | rating_>1900 | {
"id": "346_E. Doodle Jump",
"rating": 3000,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Ehab loves number theory, but for some reason he hat... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 3\\n1 2 3\\n3 4\\n1 2 3\\n2 2\\n0 6\\n\", \"2\\n2\\n1 1\\n1\\n1\\n\", \"2\\n4\\n1 3 3 3\\n3\\n1 2 3\\n\", \"1\\n5\\n1 3 4 5 2\\n\", \"2\\n5\\n1 2 3 4 5\\n4\\n2 3 4 5\\n\", \"2\\n3\\n3 2 1\\n6\\n3 1 4 1 5 9\\n\", \"1\\n3\\n1 1 274005660\\n\", \"2\\n5\\n5 5 5 5 5\\n3\\n1 2 5\\n\... | rating_<=1200 | {
"id": "1364_A. XXXXX",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an unsorted array, find the minimum difference ... | code | {
"ground_truth": "{\"inputs\": [\"nums = [2, 4, 5, 9, 7]\", \"nums = [3, 10, 8, 6]\"], \"outputs\": [\"1\", \"2\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-23872",
"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 strings a and b. You have to remov... | code | {
"ground_truth": "{\"inputs\": [\"hi\\nbob\\n\", \"abca\\naccepted\\n\", \"abacaba\\nabcdcba\\n\", \"edbcd\\nd\\n\", \"aa\\nzzaa\\n\", \"aaaaaaaaaaaa\\naaa\\n\", \"aaaaaabbbbbbaaaaaa\\naba\\n\", \"a\\naaa\\n\", \"ab\\naba\\n\", \"aaaaaaaaa\\na\\n\", \"njtdhyqundyedsjyvy\\nypjrs\\n\", \"bacb\\nccacacbacbccbbccccacccc... | rating_>1900 | {
"id": "762_C. Two strings",
"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 ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The semester is already ending, so Danil made an eff... | code | {
"ground_truth": "{\"inputs\": [\"2\\n\", \"1\\n\", \"3\\n\", \"0\\n\", \"4\\n\", \"2\\n\", \"4\\n\", \"1\\n\", \"5\\n\", \"7\\n\", \"8\\n\", \"6\\n\", \"0\\n\", \"3\\n\", \"2\\n\"], \"outputs\": [\"++++\\n+*+*\\n++**\\n+**+\\n\", \"++\\n+*\\n\", \"++++++++\\n+*+*+*+*\\n++**++**\\n+**++**+\\n++++****\\n+*+**+*+\\n++... | MEDIUM_HARD | {
"id": "taco-train-25206",
"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": "Being a nonconformist, Volodya is displeased with th... | code | {
"ground_truth": "{\"inputs\": [\"10 3\", \"7 7\", \"7 1\", \"7 2\", \"8 5\", \"8 3\", \"8 4\", \"1000000000000 500000000001\", \"999999999997 499999999999\", \"999999999999 999999999999\", \"1000000000000 1\", \"999999999999 1\", \"1 1\", \"1000000000000 1000000000000\", \"1000000000000 500000000000\", \"1000000000... | rating_<=1200 | {
"id": "318A",
"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": "Playing with Stones\n\nKoshiro and Ukiko are playing... | code | {
"ground_truth": "{\"inputs\": [\"4\\n24 99\\n15 68\\n12 90\\n95 79\", \"3\\n2 46\\n94 8\\n46 57\", \"4\\n24 99\\n15 68\\n12 90\\n95 66\", \"3\\n0 46\\n94 8\\n46 57\", \"4\\n24 99\\n15 44\\n12 90\\n95 66\", \"3\\n0 46\\n9 8\\n46 57\", \"4\\n18 99\\n15 44\\n12 90\\n95 66\", \"3\\n1 46\\n9 8\\n46 57\", \"4\\n18 99\\n1... | none | {
"id": "p00396 Playing With Stones",
"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": "Bear Limak wants to become the largest of bears, or ... | code | {
"ground_truth": "{\"inputs\": [\"4 9\\n\", \"1 1\\n\", \"4 7\\n\", \"1 9\\n\", \"3 3\\n\", \"6 7\\n\", \"5 6\\n\", \"2 5\\n\", \"2 7\\n\", \"5 8\\n\", \"6 9\\n\", \"1 7\\n\", \"5 5\\n\", \"3 10\\n\", \"1 3\\n\", \"7 7\\n\", \"3 7\\n\", \"4 4\\n\", \"4 5\\n\", \"3 5\\n\", \"6 8\\n\", \"2 4\\n\", \"1 2\\n\", \"7 10\\... | rating_<=1200 | {
"id": "791_A. Bear and Big Brother",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.