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 have unlimited number of coins with values $1, 2... | code | {
"ground_truth": "{\"inputs\": [\"5 11\\n\", \"6 16\\n\", \"14 28\\n\", \"5 29\\n\", \"10 24\\n\", \"1 30\\n\", \"14969 66991573\\n\", \"1 1000000000\\n\", \"100000 1\\n\", \"10 46\\n\", \"11 35\\n\", \"12 45\\n\", \"15 34\\n\", \"31859 629091638\\n\", \"15666 689919612\\n\", \"90681 254480989\\n\", \"69018 52319782... | EASY | {
"id": "taco-train-22732",
"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": "Consider the following array:\n\n```\n[1, 12, 123, 12... | code | {
"ground_truth": "{\"fn_name\": \"solve\", \"inputs\": [[1], [2], [3], [100], [2100], [31000], [55], [123456], [123456789], [999999999999999999], [1000000000000000000], [999999999999999993]], \"outputs\": [[1], [1], [2], [1], [2], [2], [1], [6], [3], [4], [1], [7]]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-2965",
"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": "For a positive integer n, let us define f(n) as the ... | code | {
"ground_truth": "{\"inputs\": [\"1\\n\", \"2\\n\", \"123\\n\", \"36018\\n\", \"1000\\n\", \"450002\\n\", \"450010\\n\", \"450015\\n\", \"450020\\n\", \"450030\\n\", \"91304885\\n\", \"7803372\\n\", \"89317875\\n\", \"1060874\\n\", \"78876118\\n\", \"18434582\\n\", \"15764866\\n\", \"79528725\\n\", \"52556425\\n\", ... | VERY_HARD | {
"id": "taco-train-10074",
"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": "Gildong has an interesting machine that has an array... | code | {
"ground_truth": "{\"inputs\": [\"7\\n2\\n1 1\\n3\\n-1 0 2\\n4\\n99 96 97 95\\n4\\n-3 -5 -2 1\\n6\\n1 4 3 2 4 1\\n5\\n5 0 0 0 5\\n9\\n-367741579 319422997 -415264583 -125558838 -300860379 420848004 294512916 -383235489 425814447\\n\", \"1\\n2\\n9 -10\\n\", \"1\\n2\\n9 -10\\n\", \"1\\n2\\n9 -7\\n\", \"7\\n2\\n1 1\\n3... | MEDIUM | {
"id": "taco-train-2766",
"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": "Om Nom is the main character of a game \"Cut the Rop... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 2 3 4 5 6\", \"2\\n1 2 3 3 2 2\", \"1\\n39 52\", \"2\\n59 96 34 48 8 72\", \"3\\n87 37 91 29 58 45 51 74 70 71 47 38 91 89\", \"5\\n39 21 95 89 73 90 9 55 85 32 30 21 68 59 82 91 20 64 52 70 6 88 53 47 30 47 34 14 11 22 42 15 28 54 37 48 29 3 14 13 18 77 90 58 54 38 94 49 45 6... | rating_1201-1400 | {
"id": "526B",
"rating": 1400,
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "In this kata, you will make a function that converts ... | code | {
"ground_truth": "{\"fn_name\": \"change_case\", \"inputs\": [[\"snakeCase\", \"snake\"], [\"some-lisp-name\", \"camel\"], [\"map_to_all\", \"kebab\"], [\"doHTMLRequest\", \"kebab\"], [\"invalid-inPut_bad\", \"kebab\"], [\"valid-input\", \"huh???\"], [\"\", \"camel\"], [\"snake-kebab_case\", \"kebab\"], [\"snakeCame... | EASY | {
"id": "taco-train-16843",
"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": "Determine whether a text T includes a pattern P. You... | code | {
"ground_truth": "{\"inputs\": [\"aabaaa\\n4\\naa\\nba\\nbb\\nxyz\", \"aabaaa\\n4\\nab\\nba\\nbb\\nxyz\", \"aabaaa\\n4\\nab\\nba\\nba\\nxyz\", \"aabaaa\\n4\\nba\\nbb\\nac\\nzyx\", \"aabaaa\\n4\\nca\\nab\\nba\\nzyx\", \"aacaaa\\n4\\nba\\nb`\\nac\\nzyx\", \"aacaaa\\n4\\nca\\nb`\\nac\\nzyx\", \"aabaaa\\n4\\na`\\nab\\nc... | none | {
"id": "p02250 Multiple String Matching",
"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": "Polycarp thinks about the meaning of life very often... | code | {
"ground_truth": "{\"inputs\": [\"hhoowaaaareyyoouu\", \"reallazy\", \"abacabaabacabaa\", \"xraccabccbry\", \"a\", \"b\", \"il\", \"gfj\", \"babbbbbababa\", \"babbbbabbabbbababbabbbbbbabaabaababaaabbbbbabbbbaaaaabbaaabbaabaabbbbabbbababbabaaabbababaaababbbaaa\", \"aab\", \"abb\", \"aba\", \"ab\"], \"outputs\": [\"wr... | rating_1201-1400 | {
"id": "81A",
"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": "On a planet far, far away, M languages are spoken. T... | code | {
"ground_truth": "{\"inputs\": [\"4 6\\n3 1 2 3\\n2 4 2\\n2 4 6\\n1 6\", \"4 4\\n2 1 2\\n2 1 2\\n1 3\\n2 4 3\", \"4 4\\n2 1 2\\n2 1 2\\n0 3\\n2 4 3\", \"4 6\\n3 2 3 3\\n2 4 2\\n2 4 6\\n1 6\", \"4 4\\n2 2 2\\n2 1 2\\n0 3\\n2 4 3\", \"4 4\\n2 2 2\\n2 1 2\\n1 3\\n2 4 3\", \"4 6\\n3 1 3 3\\n2 4 2\\n2 4 6\\n1 6\", \"4 4\... | none | {
"id": "p03921 CODE FESTIVAL 2016 Final (Parallel) - Interpretation",
"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": "Chunky gets happy by eating Melody.\nGiven an array o... | code | {
"ground_truth": "{\"fn_name\": \"max_adjacent_sum\", \"inputs\": [\"arr[ ] = {1, 2, 3, 4, 5}\", \"arr[ ] = {1, 2, 3, 4}\"], \"outputs\": [\"9\", \"7\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-9089",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There are N persons called Person 1 through Person N... | code | {
"ground_truth": "{\"inputs\": [\"10 4\\n3 1\\n4 1\\n5 9\\n2 6\", \"5 3\\n1 2\\n3 4\\n5 1\", \"4 10\\n1 2\\n2 1\\n1 2\\n2 1\\n1 2\\n1 3\\n1 4\\n2 3\\n2 4\\n3 4\", \"10 4\\n3 1\\n3 1\\n5 9\\n2 6\", \"4 10\\n1 1\\n2 1\\n1 2\\n2 1\\n1 2\\n1 3\\n1 4\\n2 3\\n2 4\\n3 4\", \"2 0\\n1 1\\n2 1\\n1 6\\n2 1\\n1 2\\n1 3\\n1 4\\n... | none | {
"id": "p02573 AtCoder Beginner Contest 177 - Friends",
"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 permutation of size n is an array of size n such t... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 2 4 3\\n4\\n1 1\\n1 4\\n1 4\\n2 3\\n\", \"3\\n1 2 3\\n2\\n1 2\\n2 3\\n\", \"1\\n1\\n10\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n\", \"3\\n2 1 3\\n3\\n2 3\\n1 1\\n1 3\\n\", \"7\\n2 6 1 7 4 5 3\\n5\\n4 5\\n7 7\\n5 6\\n4 5\\n4 5\\n\", \"3\\n2 1 3\\n3\\n2 1\\n... | rating_1601-1900 | {
"id": "911_D. Inversion Counting",
"rating": 1800,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You have unweighted tree of n vertices. You have to ... | code | {
"ground_truth": "{\"inputs\": [\"6\\n1 3\\n2 3\\n3 4\\n4 5\\n4 6\\n\", \"6\\n1 3\\n2 3\\n3 4\\n4 5\\n5 6\\n\", \"7\\n1 2\\n2 7\\n3 4\\n4 7\\n5 6\\n6 7\\n\", \"5\\n1 2\\n2 3\\n1 4\\n4 5\\n\", \"4\\n1 2\\n2 3\\n3 4\\n\", \"3\\n1 2\\n2 3\\n\", \"5\\n1 5\\n2 5\\n3 5\\n4 5\\n\", \"5\\n1 2\\n2 3\\n1 4\\n3 5\\n\", \"5\\n1... | rating_1601-1900 | {
"id": "1338_B. Edge Weight Assignment",
"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": "There is a strange counter. At the first second, it ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n\"], \"outputs\": [\"6\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-24550",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Chef goes to the supermarket to buy some items. Luck... | code | {
"ground_truth": "{\"inputs\": [\"3\\n6 2 4\\n3 3 3\\n8 4 4\\n\"], \"outputs\": [\"10\\n6\\n12\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-2871",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a positive integer $n$. In one move, y... | code | {
"ground_truth": "{\"inputs\": [\"5\\n2 1\\n1 1\\n500 4\\n217871987498122 10\\n100000000000000001 1\\n\", \"1\\n1000000000000000000 1\\n\", \"1\\n9987 1\\n\", \"21\\n1 3218\\n28 10924\\n908802 141084\\n82149 9274\\n893257 10248\\n2750048 802705\\n2857 142\\n980 209385\\n1 3218\\n28 10924\\n908802 141084\\n82149 9274... | MEDIUM | {
"id": "taco-train-2358",
"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": "In April 2008, Aizuwakamatsu City succeeded in makin... | code | {
"ground_truth": "{\"inputs\": [\"48 9297 240 126 32\\n20 3010 157 141 7\\n30 117002 5680 962 15\\n8 1673 1712 190 22\\n64 8478 87 54 307\\n23 5477 117 92 12\\n50 7558 1396 187 17\\n279 88677 4522 514 14\\n0\", \"48 9297 240 126 32\\n20 3010 157 141 7\\n30 117002 5680 962 15\\n8 1673 1712 190 22\\n64 8478 87 54 307\... | none | {
"id": "p00186 Aizu Chicken",
"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": "Just in case somebody missed it: we have wonderful g... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 s\\n2 a\\n3 s\\n\", \"5\\n1 a\\n2 h\\n1 a\\n4 h\\n\", \"10\\n1 b\\n2 a\\n3 b\\n4 d\\n5 d\\n5 b\\n7 d\\n5 d\\n1 b\\n\", \"10\\n1 d\\n2 b\\n3 e\\n2 d\\n3 d\\n4 a\\n2 a\\n7 b\\n9 a\\n\", \"10\\n1 d\\n1 d\\n2 d\\n3 e\\n1 d\\n1 d\\n2 b\\n7 e\\n4 c\\n\", \"10\\n1 b\\n2 a\\n3 c\\n4 d... | rating_>1900 | {
"id": "741_D. Arpa’s letter-marked tree and Mehrdad’s Dokhtar-kosh paths",
"rating": 2900,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a string S, count the number of distinct, non-e... | code | {
"ground_truth": "{\"fn_name\": \"distinctSubseqII\", \"inputs\": [[\"\\\"abc\\\"\"]], \"outputs\": [30]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-10414",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "After rejecting 10^{100} data structure problems, Er... | code | {
"ground_truth": "{\"inputs\": [\"4\\nANTON\\nNAAN\\nAAAAAA\\nOAANTTON\\n\", \"1\\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\\n\", \"4\\nANTON\\nNAAN\\nAAAAAA\\nOAANTTON\\n\", \"4\\nNOTNA\\nNAAN\\nAAAAAA\\nOAANTTON\\n\", \"4\\nNOTNA\\nNAAN\\nAAAAAA\\nOTANTAON\\n\", \"4\\nNOTNA\\nAANN\\nAA... | rating_>1900 | {
"id": "1526_D. Kill Anton",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a number N. Calculate the product of all factor... | code | {
"ground_truth": "{\"inputs\": [\"N=6\", \"N=25\"], \"outputs\": [\"36\", \"125\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-6834",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a sequence $A_1, A_2, \\ldots, A_N$. Y... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"4\", \"2 1 4 3\", \"4\", \"7 6 3 2\"]], \"outputs\": [[\"30\", \"39\"]]}",
"style": "rule"
} | HARD | {
"id": "taco-train-4047",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a cactus graph, in this graph each edg... | code | {
"ground_truth": "{\"inputs\": [\"5 4\\n1 2\\n2 3\\n3 4\\n4 5\\n\", \"3 3\\n1 2\\n2 3\\n3 1\\n\", \"2 1\\n1 2\\n\", \"5 4\\n1 4\\n2 3\\n3 4\\n4 5\\n\", \"5 4\\n1 2\\n2 3\\n2 4\\n4 5\\n\", \"5 4\\n1 4\\n2 4\\n3 4\\n4 5\\n\", \"5 4\\n1 3\\n2 3\\n2 4\\n4 5\\n\", \"5 4\\n1 2\\n1 4\\n3 4\\n4 5\\n\", \"5 4\\n1 2\\n2 3\\n3... | rating_>1900 | {
"id": "1268_E. Happy Cactus",
"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": "Sereja is a coder and he likes to take part in Codes... | code | {
"ground_truth": "{\"inputs\": [\"10 0\\n\", \"3 2\\n2 1\\n2 2\\n\", \"9 3\\n1 2 3\\n2 8\\n1 4 5\\n\", \"48 35\\n1 17 18\\n2 20\\n1 7 8\\n2 13\\n1 1 2\\n2 23\\n1 25 26\\n1 14 15\\n2 3\\n1 45 46\\n1 35 36\\n2 47\\n1 27 28\\n2 30\\n1 5 6\\n2 11\\n2 9\\n1 32 33\\n2 19\\n2 24\\n2 16\\n1 42 43\\n1 21 22\\n2 37\\n2 34\\n2... | rating_<=1200 | {
"id": "401_B. Sereja and Contests",
"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": "An undirected graph is called a caterpillar if it is... | code | {
"ground_truth": "{\"inputs\": [\"6 3\\n1 2\\n3 4\\n5 6\\n\", \"7 6\\n1 2\\n2 3\\n1 4\\n4 5\\n1 6\\n6 7\\n\", \"4 4\\n1 2\\n2 3\\n3 4\\n4 2\\n\", \"2000 2\\n38 1232\\n1586 717\\n\", \"20 19\\n13 4\\n17 19\\n8 5\\n13 15\\n11 4\\n6 5\\n10 18\\n4 17\\n14 17\\n3 16\\n3 4\\n6 9\\n5 2\\n12 11\\n4 10\\n1 11\\n20 4\\n7 4\\n... | rating_>1900 | {
"id": "51_F. Caterpillar",
"rating": 2800,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given an array $a$ consisting of $n$ integer... | code | {
"ground_truth": "{\"inputs\": [\"5\\n5\\n1 2 3 4 5\\n5\\n5 4 3 2 1\\n8\\n8 4 5 2 3 6 7 3\\n7\\n5 2 1 6 4 7 3\\n6\\n1 2 3 3 6 4\\n\", \"1\\n100\\n86 366 161 188 28 209 450 355 100 241 153 5 249 238 333 368 423 173 284 416 451 311 114 258 150 113 239 441 454 422 418 20 409 212 63 205 287 68 70 152 349 345 86 335 473 ... | EASY | {
"id": "taco-train-14806",
"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": "Let's define a forest as a non-directed acyclic grap... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 3\\n1 0\\n1 0\\n\", \"2\\n1 1\\n1 0\\n\", \"10\\n3 13\\n2 6\\n1 5\\n3 5\\n1 3\\n2 2\\n2 6\\n1 6\\n1 3\\n2 3\\n\", \"10\\n1 2\\n1 7\\n1 0\\n1 8\\n0 0\\n1 9\\n0 0\\n1 1\\n1 3\\n1 5\\n\", \"5\\n1 1\\n2 2\\n2 2\\n2 6\\n1 3\\n\", \"10\\n0 0\\n0 0\\n0 0\\n0 0\\n0 0\\n0 0\\n0 0\\n0 0... | MEDIUM | {
"id": "taco-train-21047",
"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 in a fantasy monster-ridden world. You are a... | code | {
"ground_truth": "{\"inputs\": [\"3\\n8000 15000 30000\\n3\\nFlare 45 Single 8000\\nMeteor 62 All 6000\\nUltimate 80 All 9999\\n0\", \"3\\n8000 15000 30000\\n3\\nFlare 45 Single 5272\\nMeteor 62 All 6000\\nUltimate 80 All 9999\\n0\", \"3\\n8000 15000 30000\\n3\\nFlare 45 elgniS 5272\\nMeteor 62 Bll 6000\\nUltimate 8... | none | {
"id": "p01274 Magic Slayer",
"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": "What are you doing at the end of the world? Are you ... | code | {
"ground_truth": "{\"inputs\": [\"10\\n4 1825\\n3 75\\n3 530\\n4 1829\\n4 1651\\n3 187\\n4 584\\n4 255\\n4 774\\n2 474\\n\", \"3\\n1 1\\n1 2\\n1 111111111111\\n\", \"5\\n0 69\\n1 194\\n1 139\\n0 47\\n1 66\\n\", \"10\\n96759 970434747560290241\\n95684 985325796232084031\\n99418 855577012478917561\\n98767 992053283401... | rating_1601-1900 | {
"id": "897_C. Nephren gives a riddle",
"rating": 1700,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Given the time shown by a wall clock, you have to ou... | code | {
"ground_truth": "{\"inputs\": [\"04:00\\n\\nSAMPLE\", \"05:55\", \"01:01\", \"06:55\", \"05:56\", \"04:00\\n\\nSAMELP\", \"01:10\", \"00:10\", \"04:01\\n\\nEAMRMP\", \"00:04\\n\\nOLSMAE\", \"04:10\\n\\nNLSMAE\", \"01:00\", \"02:00\", \"12:00\", \"10:40\\n\\nMAMRQE\", \"10:41\\n\\nMAMRQE\", \"00:05\\n\\nOLEMAS\", \"... | none | {
"id": "what-time-is-it",
"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 problems statements in Mandarin Chinese, Russia... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 3\\n100\\n3 1\\n1 2 1\\n3 2\\n1 2 1\"], \"outputs\": [\"1\\n3\\n4\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-19491",
"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": "It's almost summertime, so Big Cat and Little Cat ar... | code | {
"ground_truth": "{\"inputs\": [\"4 6\\n1 2\\n2 3\\n3 4\\n4 1\\n1 3\\n2 4\\n\"], \"outputs\": [\"3\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-23787",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You take part in the testing of new weapon. For the ... | code | {
"ground_truth": "{\"inputs\": [\"2 2 1\\n.*\\n..\\n\", \"3 3 3\\n*.*\\n...\\n*..\\n\", \"4 5 4\\n.*.**\\n...**\\n**...\\n...**\\n\", \"2 3 2\\n*..\\n..*\\n\", \"1 1 1\\n*\\n\", \"1 15 6\\n*..*.*..*.*...*\\n\", \"6 6 1\\n......\\n......\\n..**..\\n..**..\\n..**..\\n..**..\\n\", \"10 10 5\\n..**......\\n..**.....*\\n... | rating_>1900 | {
"id": "39_K. Testing",
"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": "A country decides to build a palace.\nIn this countr... | code | {
"ground_truth": "{\"inputs\": [\"2\\n12 5\\n1000 2000\\n\", \"3\\n21 -11\\n81234 94124 52141\\n\", \"1000\\n50 12\\n354 76430 27904 50268 73833 44032 2233 54986 38658 75014 43668 35059 40714 88040 8556 52029 40199 9127 9433 16246 11706 88894 29318 55597 10624 87407 59163 67750 74895 37791 16260 82696 57569 51320 42... | EASY | {
"id": "taco-train-4441",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There are n knights sitting at the Round Table at an... | code | {
"ground_truth": "{\"inputs\": [\"6\\n1 0 0 1 0 1\\n\", \"6\\n1 0 1 1 1 0\\n\", \"3\\n1 1 1\\n\", \"6\\n0 1 0 0 0 0\\n\", \"7\\n1 1 1 1 1 1 1\\n\", \"10\\n1 0 1 1 1 0 1 0 1 0\\n\", \"7\\n0 0 1 0 0 0 1\\n\", \"30\\n1 0 0 0 1 0 1 1 1 1 0 0 1 0 0 0 1 0 1 0 0 0 0 1 0 0 1 0 0 0\\n\", \"113\\n1 1 1 1 1 1 1 1 1 1 1 1 1 1 1... | rating_1401-1600 | {
"id": "71_C. Round Table Knights",
"rating": 1600,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Try guessing the statement from this picture <http:/... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 11\\n4 2\\n191 31415926\\n\", \"1\\n9 9009\\n\", \"1\\n8585 99\\n\", \"1\\n8585 8976\\n\", \"1\\n12112004 98798745\\n\", \"1\\n1 99999\\n\", \"1\\n10 9009\\n\", \"1\\n8585 83\\n\", \"1\\n15751 8976\\n\", \"1\\n12112004 33023389\\n\", \"1\\n2 99999\\n\", \"3\\n1 7\\n4 2\\n191 3... | rating_<=1200 | {
"id": "1288_B. Yet Another Meme Problem",
"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": "A bracket sequence is a string that is one of the fo... | code | {
"ground_truth": "{\"inputs\": [\"2\\n)\\n(()\\n\", \"2\\n)(\\n()\\n\", \"4\\n((()))\\n((((((\\n))))))\\n()()()\\n\", \"3\\n(((\\n)\\n)\\n\", \"3\\n()(\\n)\\n)\", \"2\\n)\\n()(\", \"4\\n((()))\\n((((()\\n))))))\\n()()()\", \"2\\n)(\\n)(\", \"3\\n()(\\n)\\n(\", \"2\\n((\\n)(\", \"3\\n())\\n)\\n(\", \"2\\n((\\n()\", \... | MEDIUM | {
"id": "taco-train-18141",
"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": "At many competitions that have a word «cup» in its o... | code | {
"ground_truth": "{\"inputs\": [\"MyNameIsLifeIAmForeverByYourSideMyNameIsLife\\n\", \"tourist\\n\", \"uvkxATqVwsCaAJeBaBGXZKiktZFHbzywaqNdrGSNfgTIwOBFzKDv\\n\", \"aoNtJAeHshvQrvwRgZHkrdxwyaaHOIsyEMxtRNkMifYfRoRbampjmPoUVpNJvSvEyaQjEvGcRAJJSPORp\\n\", \"yWptRMTHCgVSOpLWshusRuXELfcnMUbustgmNXUOGkdTwafvAcGyFUtIvCoaYIP... | rating_<=1200 | {
"id": "1032_B. Personalized Cup",
"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": "Ramesses came to university to algorithms practice, ... | code | {
"ground_truth": "{\"inputs\": [\"3 4\\n0 1 0 1\\n1 0 1 0\\n0 1 0 1\\n1 1 1 1\\n1 1 1 1\\n1 1 1 1\\n\", \"6 7\\n0 0 1 1 0 0 1\\n0 1 0 0 1 0 1\\n0 0 0 1 0 0 1\\n1 0 1 0 1 0 0\\n0 1 0 0 1 0 1\\n0 1 0 1 0 0 1\\n1 1 0 1 0 1 1\\n0 1 1 0 1 0 0\\n1 1 0 1 0 0 1\\n1 0 1 0 0 1 0\\n0 1 1 0 1 0 0\\n0 1 1 1 1 0 1\\n\", \"3 3\\n0... | rating_1401-1600 | {
"id": "1119_C. Ramesses and Corner Inversion",
"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": "You are given a set of *n* vectors on a plane. For e... | code | {
"ground_truth": "{\"inputs\": [\"5\\n-7 -3\\n9 0\\n-8 6\\n7 -8\\n4 -5\", \"5\\n3 2\\n-4 7\\n-6 0\\n-8 4\\n5 1\", \"2\\n-4 -2\\n-2 1\", \"3\\n-4 -3\\n-4 -5\\n-1 0\", \"10\\n53 86\\n-48 72\\n-74 48\\n75 -91\\n-31 14\\n13 67\\n24 -55\\n-76 -67\\n86 5\\n-84 94\", \"10\\n-65 29\\n77 29\\n74 -54\\n-79 -65\\n43 46\\n-12 -... | rating_1601-1900 | {
"id": "120J",
"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": "It can be shown that any positive integer x can be u... | code | {
"ground_truth": "{\"inputs\": [\"8\\n1 1 2 2 3 4 5 8\\n\", \"6\\n1 1 1 2 2 2\\n\", \"5\\n1 2 4 4 4\\n\", \"20\\n1 1 1 1 2 2 2 2 4 4 4 4 8 8 8 8 8 10 10 11\\n\", \"20\\n1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2\\n\", \"25\\n1 1 1 1 2 2 2 2 4 4 4 4 8 8 8 8 13 15 16 16 31 32 36 41 55\\n\", \"25\\n1 1 1 1 2 2 2 2 4 4 4 4... | HARD | {
"id": "taco-train-15949",
"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 task is to write a function that takes two or mo... | code | {
"ground_truth": "{\"fn_name\": \"combine\", \"inputs\": [[{}, {}, {}], [{}]], \"outputs\": [[{}], [{}]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-1534",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The member states of the UN are planning to send $2$... | code | {
"ground_truth": "{\"inputs\": [\"5 3\\n0 1\\n2 3\\n0 4\\n\", \"4 1\\n0 2\\n\"], \"outputs\": [\"6\\n\", \"5\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-11542",
"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 Algebraist Carpet Manufacturing (ACM) group like... | code | {
"ground_truth": "{\"inputs\": [\"1 1 1.732050\\n\", \"1 1 3.0\\n\", \"1.732051 1.732051 1.732051\\n\"], \"outputs\": [\"1.732050808\\n\", \"-1\\n\", \"3.897115183\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-16184",
"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": "Square Subsequences\n\nA string is called a square s... | code | {
"ground_truth": "{\"inputs\": [\"3\\naaa\\nabab\\nbaaba\"], \"outputs\": [\"3\\n3\\n6\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-24200",
"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": "Railroad Trip\n\nThere are N cities in the JOI count... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\n1 3 2 4\\n120 90 100\\n110 50 80\\n250 70 130\", \"4 4\\n1 3 2 4\\n120 90 100\\n110 50 80\\n250 70 24\", \"4 4\\n1 3 2 4\\n120 90 100\\n110 50 80\\n250 75 130\", \"4 4\\n1 3 2 4\\n120 90 100\\n110 50 33\\n250 70 24\", \"4 4\\n1 3 2 4\\n120 90 100\\n110 50 96\\n250 75 130\", \"... | none | {
"id": "p00537 Railroad Trip",
"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 a sequence of integers a1, a2, ..., an... | code | {
"ground_truth": "{\"inputs\": [\"5\\n5 4 3 2 1\\n\", \"4\\n5 10 5 10\\n\", \"2\\n10 5\\n\", \"10\\n857470351 127268738 976762190 700120990 190561544 955496074 185447813 550302189 543162371 132648585\\n\", \"50\\n4613788045939 2137011228504 1068505614252 534252807126 267126403563 133563201781 66781600890 33390800445... | rating_>1900 | {
"id": "889_E. Mod Mod Mod",
"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": "golf\n\nCroce is a battle programmer with top-notch ... | code | {
"ground_truth": "{\"inputs\": [\"117649\\n1\\n125000\\n1610612736\\n68719476636\\n-1\", \"117649\\n1\\n125000\\n3124994554\\n68719476636\\n-1\", \"117649\\n1\\n125000\\n251494164\\n68719476636\\n-1\", \"117649\\n1\\n68329\\n251494164\\n68719476636\\n-1\", \"117649\\n1\\n125000\\n1610612736\\n38083764314\\n-1\", \"1... | none | {
"id": "p01700 Golf",
"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": "Implement the function unique_in_order which takes as... | code | {
"ground_truth": "{\"fn_name\": \"unique_in_order\", \"inputs\": [[\"\"], [\"A\"], [\"AA\"], [\"AAAABBBCCDAABBB\"], [\"AADD\"], [\"AAD\"], [\"ADD\"], [\"ABBCcAD\"], [[1, 2, 3, 3]], [[\"a\", \"b\", \"b\"]]], \"outputs\": [[[]], [[\"A\"]], [[\"A\"]], [[\"A\", \"B\", \"C\", \"D\", \"A\", \"B\"]], [[\"A\", \"D\"]], [[\"... | EASY | {
"id": "taco-train-15503",
"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": "Tech Families are an integral part of life @ VNIT. D... | code | {
"ground_truth": "{\"inputs\": [\"3\\n10 6\\n/home/vnit/techfest/crypto\\n/home/visvesvaraya/techfest\\n/home\\n/home1/cipher\\n/home2/xyz/insomnia\\n/home1/pqr/answers\\n/answers1/difficult\\n/previous/unsolved/questions\\n/home/output/final/testcases\\n/hackerearth/easy/noquestions\\n/home/vnit/aarohi\\n/path/newf... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-4735",
"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": "F: Substring decomposition\n\nproblem\n\nGiven the t... | code | {
"ground_truth": "{\"inputs\": [\"abracadabra\\ncadabra\\n4\", \"abracadabra\\ncaeabra\\n4\", \"abracadabra\\ncae`bra\\n4\", \"abracadabra\\nbae`cra\\n4\", \"abracbdabra\\nbae`cra\\n4\", \"abracbdabra\\nbae`cr`\\n4\", \"abracbdabra\\nb`e`cr`\\n4\", \"abracbdabra\\nb`e`cr`\\n6\", \"abracbdabra\\nbe``cr`\\n6\", \"arba... | none | {
"id": "p02187 Substring Decomposition",
"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": "Extraterrestrial Life Genome Database Returns\n\nIn ... | code | {
"ground_truth": "{\"inputs\": [\"MI2(2SI)2PI\\nISSI\\n100(100(JAG))\\nJAG\\n1000000000000000000A\\nAAAAA\\n#\", \"MI2(2SI)2PI\\nISSI\\n100(100(KAG))\\nJAG\\n1000000000000000000A\\nAAAAA\\n#\", \"MI2(2SI)2PI\\nISSI\\n100(100(KAG))\\nJBG\\n1000000001000000000A\\nAAAAA\\n#\", \"MI2(2SI)2PI\\nSISI\\n100(100(KAG))\\nJBG... | none | {
"id": "p02049 The Genome Database of All Space Life Returns",
"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": "Giant chess is quite common in Geraldion. We will no... | code | {
"ground_truth": "{\"inputs\": [\"3 4 2\\n2 2\\n2 3\", \"100 100 3\\n15 16\\n16 15\\n99 88\", \"1000 1000 4\\n50 50\\n51 50\\n50 51\\n51 51\", \"100000 100000 4\\n50001 50001\\n50000 50000\\n50000 50001\\n50001 50000\", \"2 2 2\\n2 1\\n1 2\", \"100 10 30\\n40 4\\n15 3\\n75 3\\n88 10\\n32 1\\n16 5\\n81 8\\n45 2\\n72 ... | rating_>1900 | {
"id": "559C",
"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": "Devendra loves the XOR operation very much which is ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 2 3\\n2\\n1 1 3\\n2 1 3\\n\", \"3\\n1 2 3\\n2\\n1 1 3\\n2 1 3\\n\", \"2\\n1 2\\n3\\n0 1 2\\n1 1 2\\n2 1 2\\n\", \"5\\n1 2 3 4 5\\n4\\n0 1 5\\n1 1 5\\n2 1 5\\n3 2 4\\n\", \"4\\n1 5 7 10\\n3\\n0 2 4\\n1 1 4\\n4 1 3\\n\", \"6\\n1 3 5 7 9 11\\n5\\n0 1 6\\n1 1 4\\n2 3 5\\n3 4 6\\n4... | MEDIUM_HARD | {
"id": "taco-test-871",
"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": "At one of the many climate protests, Skylar fell in ... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\nARN SCR\\nARN 59.6467921 17.9370443\\nSCR 61.156603 12.837360\\nCPH 55.618023 12.650763\\nOSL 60.197646 11.100008\\nARN OSL\\nARN CPH\\nSCR OSL\\nOSL CPH\\n\", \"2 1\\nLAX AKL\\nAKL -37.006131 174.783781\\nLAX 33.941589 -118.408531\\nLAX AKL\\n\", \"4 2\\nCDG AKL\\nAKL -37.006... | MEDIUM | {
"id": "taco-train-23657",
"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": "Virat loves mathematical questions. The other day he... | code | {
"ground_truth": "{\"inputs\": [\"3\\n5\\n10\\n2\"], \"outputs\": [\"5\\n15\\n0\"]}",
"style": "rule"
} | none | {
"id": "zeroes",
"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": "Problem Statement\n\nMr. Takatsuki, who is planning ... | code | {
"ground_truth": "{\"inputs\": [\"8 24\\n05:30 Kyoto 06:37 Maibara\\n06:50 Maibara 07:36 Tsuruga\\n07:42 Tsuruga 10:03 Kanazawa\\n10:58 Kanazawa 12:07 Toyama\\n12:15 Toyama 14:12 Naoetsu\\n14:29 Naoetsu 15:57 Nagaoka\\n16:11 Nagaoka 17:14 Niitsu\\n17:38 Niitsu 20:06 AizuWakamatsu\", \"N T\\nst_time1 st_name1 ar_time... | none | {
"id": "p01627 Seishun 18 Kippu 2013",
"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": "Provided an array Arr of N integers, you need to reve... | code | {
"ground_truth": "{\"inputs\": [\"N = 7\\nArr[] = {1, 2, 3, 4, 5, 6, 7}\\nL = 2, R = 4\", \"N = 4\\nArr[] = {1, 6, 7, 4}\\nL = 1, R = 4\"], \"outputs\": [\"1 4 3 2 5 6 7\", \"4 7 6 1\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-12284",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There are two (6-sided) dice: a red die and a blue d... | code | {
"ground_truth": "{\"inputs\": [\"10 20 20 10 20 20\\n20 20 20 10 10 20\", \"25 25 25 25 0 0\\n0 0 0 0 50 50\", \"4 20 20 10 20 20\\n20 20 20 10 10 20\", \"25 25 25 25 0 1\\n0 0 0 0 50 50\", \"25 25 25 18 -1 0\\n0 0 0 0 50 50\", \"25 25 25 18 -1 1\\n0 0 0 0 50 50\", \"25 25 25 16 -1 1\\n0 0 0 0 50 50\", \"30 25 25 1... | none | {
"id": "p03871 CODE FESTIVAL 2016 Grand Final - Dice Game",
"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 a tree of n vertices. You are to selec... | code | {
"ground_truth": "{\"inputs\": [\"29 29\\n1 2\\n1 3\\n1 4\\n1 5\\n5 6\\n5 7\\n5 8\\n8 9\\n8 10\\n8 11\\n11 12\\n11 13\\n11 14\\n14 15\\n14 16\\n14 17\\n17 18\\n17 19\\n17 20\\n20 21\\n20 22\\n20 23\\n23 24\\n23 25\\n23 26\\n26 27\\n26 28\\n26 29\\n\", \"3 2\\n1 2\\n2 3\\n\", \"5 1\\n4 1\\n2 3\\n4 5\\n2 1\\n\", \"1 1... | rating_>1900 | {
"id": "981_H. K Paths",
"rating": 3100,
"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": "\"I don't have any fancy quotes.\" - vijju123\nChef ... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"i do not have any fancy quotes\", \"when nothing goes right go left\"]], \"outputs\": [[\"Real Fancy\", \"regularly fancy\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-18487",
"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": "Today is the planned day tor Thik and Ayvak's weddin... | code | {
"ground_truth": "{\"inputs\": [[\"1\", \"2 2 2\", \"1 2\", \"\", \"\"], [\"1\", \"6 6 6\", \"1 2 3 4 5 6\", \"\", \"\"], [\"1\", \"7 7 7\", \"1 2 3 4 5 6 7\", \"\", \"\"], [\"1\", \"8 8 8\", \"1 2 3 4 5 6 7 8\", \"\", \"\"], [\"2\", \"4 4 4\", \"1 2 5 7\", \"5 5 3\", \"3 4 5\", \"\", \"\"], [\"3\", \"3 3 1\", \"7\"... | HARD | {
"id": "taco-test-916",
"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": "In this Kata, you will be given a string and your tas... | code | {
"ground_truth": "{\"fn_name\": \"solve\", \"inputs\": [[\"Codewars@codewars123.com\"], [\"bgA5<1d-tOwUZTS8yQ\"], [\"P*K4%>mQUDaG$h=cx2?.Czt7!Zn16p@5H\"], [\"RYT'>s&gO-.CM9AKeH?,5317tWGpS<*x2ukXZD\"], [\"$Cnl)Sr<7bBW-&qLHI!mY41ODe\"], [\"@mw>0=QD-iAx!rp9TaG?o&M%l$34L.nbft\"]], \"outputs\": [[[1, 18, 3, 2]], [[7, 6, ... | EASY | {
"id": "taco-train-8623",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a binary string s (a string consisting only of ... | code | {
"ground_truth": "{\"fn_name\": \"numSub\", \"inputs\": [[\"\\\"0110111\\\"\"]], \"outputs\": [9]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-3576",
"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": "Petya is a big fan of mathematics, especially its pa... | code | {
"ground_truth": "{\"inputs\": [\"3\", \"4\", \"12\", \"34\", \"13\", \"11\", \"24\", \"17\", \"10\", \"69\", \"100\", \"57\", \"1000\", \"999\", \"998\", \"997\", \"996\", \"995\", \"994\", \"5\", \"6\", \"8\", \"9\", \"423\", \"876\", \"29\"], \"outputs\": [\"1 2\", \"1 3\", \"5 7\", \"15 19\", \"6 7\", \"5 6\", \... | rating_<=1200 | {
"id": "854A",
"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": "We have N weights indexed 1 to N. The \bmass of the ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 2 3\", \"4\\n1 3 1 1\", \"8\\n27 23 76 2 3 5 62 52\", \"3\\n1 2 2\", \"4\\n2 3 1 1\", \"8\\n27 23 76 2 3 5 62 14\", \"3\\n1 1 2\", \"4\\n2 3 1 0\", \"8\\n27 30 76 2 3 5 62 14\", \"8\\n27 30 76 2 3 5 62 5\", \"8\\n27 30 76 2 3 2 62 5\", \"8\\n27 30 76 2 3 2 102 5\", \"8\\n27 30... | none | {
"id": "p03012 AtCoder Beginner Contest 129 - Balance",
"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": "The Ulam sequence `U` is defined by `u0 = u`, `u1 = v... | code | {
"ground_truth": "{\"fn_name\": \"ulam_sequence\", \"inputs\": [[1, 2, 5], [3, 4, 5], [5, 6, 8]], \"outputs\": [[[1, 2, 3, 4, 6]], [[3, 4, 7, 10, 11]], [[5, 6, 11, 16, 17, 21, 23, 26]]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-15567",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "There is a brick wall in front of you. The wall is re... | code | {
"ground_truth": "{\"fn_name\": \"leastBricks\", \"inputs\": [[[[1, 2, 2, 1], [3, 1, 2], [1, 3, 2], [2, 4], [3, 1, 2], [1, 3, 1, 1], [], []]]], \"outputs\": [4]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-15660",
"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": "Modern researches has shown that a flock of hungry m... | code | {
"ground_truth": "{\"inputs\": [\"3 2 0 2\\n0 1 3\\n2 5\", \"7 11 10 20\\n6 18 32 63 66 68 87\\n6 8 15 23 25 41 53 59 60 75 90\", \"13 17 14 1\\n6 9 10 12 17 25 91 100 118 136 145 163 172\\n0 1 2 3 4 10 12 13 16 17 19 22 26 27 28 109 154\", \"19 23 13 11\\n3 6 7 15 21 22 23 33 35 37 40 44 79 86 100 114 121 135 142\\... | rating_>1900 | {
"id": "76B",
"rating": 2100,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "\"Teishi-zushi\", a Japanese restaurant, is a plain ... | code | {
"ground_truth": "{\"inputs\": [\"15 10000000000\\n400000000 1000000000\\n800000000 1000000000\\n1900000000 1000000000\\n2400000000 1000000000\\n2900000000 1000000000\\n3300000000 1000000000\\n3700000000 1000000000\\n3800000000 1000000000\\n4000000000 1000000000\\n4100000000 1000000000\\n5200000000 1000000000\\n6600... | none | {
"id": "p03374 AtCoder Regular Contest 096 - Static Sushi",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given an array of $n$ integers. You need to ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2 3 6 7\\n\", \"5\\n6 15 35 77 22\\n\", \"5\\n6 10 15 1000 75\\n\", \"3\\n8 1 6\\n\", \"4\\n84 33 80 6\\n\", \"5\\n1116 1968 609 9549 7067\\n\", \"3\\n130070951 898378379 47324156\\n\", \"6\\n10 7 9 8 3 3\\n\", \"5\\n89 20 86 81 62\\n\", \"9\\n3310 970 6688 5121 1365 3683 2311 1... | VERY_HARD | {
"id": "taco-train-260",
"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": "The function is not returning the correct values. Can... | code | {
"ground_truth": "{\"fn_name\": \"get_planet_name\", \"inputs\": [[2], [5], [3], [4], [8], [1]], \"outputs\": [[\"Venus\"], [\"Jupiter\"], [\"Earth\"], [\"Mars\"], [\"Neptune\"], [\"Mercury\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-4126",
"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": "In this problem you will write a simple code generat... | code | {
"ground_truth": "{\"inputs\": [\"$$$\", \"Codeforces\", \"!\\\"#$%&'()*\", \"zyxwvutsrq\", \"z\", \"!\", \"Q\", \"\\\\RM3uy$>\", \"fQs1@=\", \"%n<VD0Q=eO\", \"[=iG\", \"&o+(\", \"9IHC0\", \">,05jka@?\", \"j0&)@0=\", \"ouuj0an8;\", \"\\\\ZN).!R$N<\", \"4]\", \"YYiu0\", \"3^7Ib`nt^\\\"\", \"WnX/v-1&\", \"<Zno\", \"&.... | rating_>1900 | {
"id": "952G",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "When a warrior wants to talk with another one about p... | code | {
"ground_truth": "{\"fn_name\": \"detect_operator\", \"inputs\": [[\"80661111841\"], [\"80671991111\"], [\"80631551111\"], [\"80931551111\"], [\"80111551111\"]], \"outputs\": [[\"MTS\"], [\"Kyivstar\"], [\"Life:)\"], [\"Life:)\"], [\"no info\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-9276",
"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": "After getting her PhD, Christie has become a celebri... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 1\\n3 100 1\\n5 2\\n19 12 3 4 17\\n5 3\\n23 45 11 77 18\\n\\nSAMPLE\", \"3\\n3 0\\n3 100 1\\n5 2\\n19 12 3 4 17\\n5 3\\n23 45 11 77 18\\n\\nSAMPLE\", \"3\\n3 1\\n3 101 1\\n5 2\\n19 12 3 4 17\\n5 3\\n23 45 11 77 18\\n\\nSAMPLE\", \"3\\n3 0\\n3 101 1\\n5 2\\n19 12 3 4 17\\n5 3\\... | none | {
"id": "remove-friends-5",
"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": "The new camp by widely-known over the country Spring... | code | {
"ground_truth": "{\"inputs\": [\"101101\\n110\\n\", \"10010110\\n100011\\n\", \"10\\n11100\\n\", \"11000000\\n0\\n\", \"10100110\\n10\\n\", \"10101000\\n101\\n\", \"11010010\\n11010\\n\", \"00101010\\n01101011\\n\", \"11111111\\n1\\n\", \"11011000\\n10\\n\", \"11111111\\n0000\\n\", \"11111111\\n1111\\n\", \"1111111... | MEDIUM_HARD | {
"id": "taco-train-23491",
"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": "Chef is given two integers N, S.\n\nConsider an arra... | code | {
"ground_truth": "{\"inputs\": [\"3\\n4 8\\n5 10\\n2 3\\n\"], \"outputs\": [\"2\\n5\\n-1\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-20389",
"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": "According to folklore, the great mathematician Gauss... | code | {
"ground_truth": "{\"inputs\": [\"2\\n3\\n5\"], \"outputs\": [\"6\\n15\"]}",
"style": "rule"
} | none | {
"id": "numsum",
"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": "Amr bought a new video game \"Guess Your Way Out!\".... | code | {
"ground_truth": "{\"inputs\": [\"1 2\\n\", \"2 3\\n\", \"3 6\\n\", \"10 1024\\n\", \"10 577\\n\", \"11 550\\n\", \"19 12783\\n\", \"28 72803174\\n\", \"39 457181784666\\n\", \"12 955\\n\", \"13 154\\n\", \"14 2334\\n\", \"15 15512\\n\", \"16 21395\\n\", \"17 80239\\n\", \"18 153276\\n\", \"20 589266\\n\", \"21 1687... | MEDIUM_HARD | {
"id": "taco-train-25400",
"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": "ZS the Coder and Chris the Baboon has arrived at Uda... | code | {
"ground_truth": "{\"inputs\": [\"3 2 2\\n0 0 0\\n1 2\\n3 4\\n5 6\\n\", \"3 2 2\\n2 1 2\\n1 3\\n2 4\\n3 5\\n\", \"3 2 2\\n2 0 0\\n1 3\\n2 4\\n3 5\\n\", \"3 2 3\\n2 1 2\\n1 3\\n2 4\\n3 5\\n\", \"3 2 3\\n0 0 0\\n10 30000\\n20000 1000000000\\n1000000000 50000\\n\", \"4 2 1\\n0 0 0 0\\n10 30000\\n20000 1000000000\\n1000... | MEDIUM_HARD | {
"id": "taco-train-24378",
"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": "In AtCoder Kingdom, Gregorian calendar is used, and ... | code | {
"ground_truth": "{\"inputs\": [\"5 5\\n\", \"2 1\\n\", \"11 30\\n\", \"1 30\", \"9 5\", \"4 0\", \"6 5\", \"2 50\", \"8 5\", \"0 50\", \"11 5\", \"16 3\", \"10 -1\", \"23 3\", \"12 6\", \"12 12\", \"0 -3\", \"-2 1\", \"-3 0\", \"-5 0\", \"5 2\", \"-4 1\", \"-9 1\", \"-16 1\", \"-11 0\", \"-14 0\", \"-6 -3\", \"-24 ... | EASY | {
"id": "taco-train-18392",
"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 an Integer N and a list arr. Sort the array usi... | code | {
"ground_truth": "{\"inputs\": [\"N = 5\\r\\narr[] = {4, 1, 3, 9, 7}\", \"N = 10 \\r\\narr[] = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1}\"], \"outputs\": [\"1 3 4 7 9\", \"1 2 3 4 5 6 7 8 9 10\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-4879",
"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": "Arkady the air traffic controller is now working wit... | code | {
"ground_truth": "{\"inputs\": [\"5 1\\n-3 2\\n-3 3\\n-1 2\\n1 -3\\n3 -5\\n\", \"6 1\\n-3 2\\n-2 2\\n-1 2\\n1 -2\\n2 -2\\n3 -2\\n\", \"10 4\\n7 -5\\n1 -5\\n-10 5\\n9 -5\\n4 -5\\n-4 5\\n2 -5\\n6 -5\\n-5 5\\n-8 5\\n\", \"1 1\\n-1 2\\n\", \"20 6\\n-10 15\\n11 -8\\n-1 10\\n6 -9\\n12 -14\\n1 -10\\n9 -8\\n8 -9\\n7 -11\\n-... | rating_>1900 | {
"id": "924_D. Contact ATC",
"rating": 2500,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a positive number n. You need to write a progra... | code | {
"ground_truth": "{\"inputs\": [\"n = 2\", \"n = 5\"], \"outputs\": [\"3\", \"6\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-11272",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The International Corporation for Protection and Con... | code | {
"ground_truth": "{\"inputs\": [\"100 7\\n1 50\\n50 70\\n70 90\\n90 40\\n20 60\\n60 80\\n80 20\\n\", \"8 2\\n8 3\\n5 7\\n\", \"8 2\\n8 4\\n5 7\\n\"], \"outputs\": [\"3\\n\", \"impossible\\n\", \"2\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-8726",
"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": "Connected undirected weighted graph without self-loo... | code | {
"ground_truth": "{\"inputs\": [\"5 7\\n1 2 3\\n1 3 1\\n1 4 5\\n2 3 2\\n2 5 3\\n3 4 2\\n4 5 4\", \"2 1\\n1 2 42\", \"3 3\\n1 2 10\\n2 3 20\\n3 1 40\", \"4 6\\n1 2 999999001\\n1 3 999999003\\n1 4 999999009\\n2 3 999999027\\n2 4 999999243\\n3 4 999999729\", \"8 10\\n2 5 4\\n7 5 2\\n7 3 28\\n4 5 14\\n3 2 15\\n1 2 3\\n6... | rating_>1900 | {
"id": "609E",
"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": "Read problems statements in English, Mandarin Chines... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2\\n7 2\\n4\\n2 2 3 4\\n3\\n2 2 4\"], \"outputs\": [\"2\\n2\\n-1\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-17087",
"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 new season of the Bytelandian Premier League (BP... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3\\n0 0 0 \\n1 0 1 \\n1 0 0 \\n4\\n0 1 1 0 \\n0 0 2 0 \\n0 2 0 0 \\n1 1 1 0 \\n5\\n0 2 2 1 0 \\n2 0 1 1 0 \\n2 0 0 1 0 \\n0 0 0 0 1 \\n1 1 1 0 0\"], \"outputs\": [\"010\\n0001\\n11001\"]}",
"style": "rule"
} | none | {
"id": "m3",
"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": "Mr Keks is a typical white-collar in Byteland.\n\nHe... | code | {
"ground_truth": "{\"inputs\": [\"7 3\\n3 14 15 92 65 35 89\\n\", \"10 4\\n9 14 28 1 7 13 15 29 2 31\\n\", \"1 1\\n847523811295364\\n\", \"4 2\\n162835105872970 116592879151848 139965176195127 395498533500931\\n\", \"16 7\\n1103813397013349 727264530801741 378049079598082 630901233315595 518569339136212 532452143552... | rating_1601-1900 | {
"id": "981_D. Bookshelves",
"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": "This is an easy version of the problem. In this vers... | code | {
"ground_truth": "{\"inputs\": [\"4\\n5\\n4 7 2 3 9\\n5\\n3 5 8 1 7\\n5\\n1 4 5 7 12\\n4\\n0 2 1 3\\n\", \"9\\n5\\n4 7 2 2 9\\n5\\n3 5 8 1 7\\n5\\n1 2 2 4 5\\n2\\n0 1\\n3\\n0 1 0\\n4\\n0 1 0 0\\n4\\n0 1 0 1\\n4\\n0 1 0 2\\n20\\n16 15 1 10 0 14 0 10 3 9 2 5 4 5 17 9 10 20 0 9\\n\", \"9\\n5\\n4 7 2 2 9\\n5\\n3 5 8 1 7... | HARD | {
"id": "taco-train-8808",
"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": "While Patrick was gone shopping, Spongebob decided t... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n3 2 1\\n1 2 3\", \"3 3\\n1 1 1\\n1 1 1\", \"3 3\\n1 2 1\\n3 3 3\", \"2 100\\n2 1\\n1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ... | rating_1401-1600 | {
"id": "599B",
"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": "Gardener Alex loves to grow trees. We remind that tr... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 2 3 4\\n\", \"127\\n1 70 69 71 68 73 72 74 67 77 76 78 75 80 79 81 66 85 84 86 83 88 87 89 82 92 91 93 90 95 94 96 65 101 100 102 99 104 103 105 98 108 107 109 106 111 110 112 97 116 115 117 114 119 118 120 113 123 122 124 121 126 125 127 7 6 8 5 10 9 11 4 14 13 15 12 17 16 18... | rating_>1900 | {
"id": "1220_F. Gardener Alex",
"rating": 2700,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Consider X as the aleatory variable that count the ... | code | {
"ground_truth": "{\"fn_name\": \"variance\", \"inputs\": [[[\"Hello\", \"world\"]], [[\"Hi\", \"world\"]], [[\"Variance\", \"is\", \"not\", \"a\", \"good\", \"stimator\"]]], \"outputs\": [[0], [2.25], [7.5556]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-13709",
"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 numbers 1 to n x n are contained in the n x n sq... | code | {
"ground_truth": "{\"inputs\": [\"3\\n5\\n0\", \"3\\n0\\n0\", \"3\\n7\\n0\", \"3\\n3\\n0\", \"3\\n11\\n0\", \"3\\n9\\n0\", \"3\\n15\\n0\", \"3\\n19\\n0\", \"3\\n17\\n0\", \"3\\n27\\n0\", \"3\\n13\\n0\", \"3\\n23\\n0\", \"3\\n29\\n0\", \"3\\n0\\n-1\", \"3\\n0\\n-2\", \"3\\n0\\n-3\", \"3\\n0\\n1\", \"3\\n0\\n-5\", \"3... | none | {
"id": "p00078 Magic Square",
"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": "One of the Hedgehog and his friend's favorite entert... | code | {
"ground_truth": "{\"inputs\": [\"5 2\\naba\\n101\", \"5 2\\na\\n10001\", \"6 2\\nabba\\n101\", \"12 5\\nabacaba\\n010001\", \"9 3\\nac\\n10100101\", \"19 2\\naababaaba\\n10000100001\", \"5 2\\naaa\\n101\", \"10 2\\naaa\\n11000111\", \"15 2\\naaa\\n0000000000111\", \"20 2\\naba\\n001000000000000000\", \"10 2\\naabb\... | rating_>1900 | {
"id": "54D",
"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": "Bandits appeared in the city! One of them is trying ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 1\\n3 1 2\\n\", \"3\\n1 1\\n3 1 3\\n\", \"3\\n1 1\\n2 0 0\\n\", \"2\\n1\\n487981126 805590708\\n\", \"5\\n1 1 1 4\\n28 0 0 0 0\\n\", \"2\\n1\\n91 0\\n\", \"10\\n1 1 1 1 1 1 1 1 1\\n64 0 0 0 0 0 0 0 0 0\\n\", \"50\\n1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ... | HARD | {
"id": "taco-train-15705",
"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": "In Takahashi Kingdom, there is an archipelago of N i... | code | {
"ground_truth": "{\"inputs\": [\"5 5\\n1 3\\n4 5\\n2 3\\n2 4\\n1 4\", \"100000 1\\n1 99999\", \"4 3\\n1 2\\n2 3\\n3 4\", \"3 2\\n1 2\\n2 3\", \"5 5\\n1 1\\n4 5\\n2 3\\n2 4\\n1 4\", \"100000 1\\n0 99999\", \"4 3\\n1 3\\n2 3\\n3 4\", \"5 5\\n1 1\\n4 5\\n1 3\\n2 4\\n1 4\", \"100100 1\\n0 99999\", \"4 3\\n1 3\\n3 3\\n3... | none | {
"id": "p03647 AtCoder Regular Contest 079 - Cat Snuke and a Voyage",
"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 two dimensional array is called a bracket array if... | code | {
"ground_truth": "{\"inputs\": [\"3 2 2\\n3 6\\n1 4\\n2 5\\n\", \"1 2 1\\n1 2\\n\", \"2 3 1\\n1 2 3\\n4 5 6\\n\", \"4 5 14\\n3 10 5 6 17\\n18 20 9 15 16\\n8 7 19 13 4\\n14 11 2 12 1\\n\", \"3 4 2\\n3 10 12 2\\n7 9 4 11\\n8 5 6 1\\n\", \"11 12 11192\\n12 74 114 18 59 103 33 47 23 93 69 45\\n8 108 4 113 92 49 68 118 1... | rating_>1900 | {
"id": "123_C. Brackets",
"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": "ICPC World Finals Day 2\n\nMr. Tee and his colleague... | code | {
"ground_truth": "{\"inputs\": [\"M r\", \"L r\", \"L q\", \"M q\", \"L p\", \"M p\", \"M o\", \"N o\", \"N n\", \"O n\", \"O m\", \"P m\", \"P l\", \"O l\", \"O k\", \"P k\", \"Q k\", \"Q l\", \"R l\", \"S l\", \"S k\", \"R k\", \"R j\", \"R i\", \"S i\", \"S h\", \"S g\", \"T g\", \"T h\", \"U g\", \"U h\", \"V h\... | none | {
"id": "p01637 Change",
"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 rectangle with sides A and B is cut into rectangle... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 2 5\\n2 3 5\\n\", \"1\\n1 1 9\\n\", \"2\\n2 3 20\\n2 4 40\\n\", \"2\\n1 2 5\\n2 3 10\\n\", \"2\\n2 2 20\\n2 4 40\\n\", \"2\\n2 2 20\\n2 7 16\\n\", \"1\\n1 1 8\\n\", \"2\\n2 2 5\\n2 -1 10\\n\", \"2\\n1 2 5\\n2 0 10\\n\", \"2\\n2 2 20\\n2 7 40\\n\", \"2\\n1 2 5\\n2 1 10\\n\", \"... | rating_>1900 | {
"id": "963_C. Cutting Rectangle",
"rating": 2600,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.