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": "A modified KP number is a positive whole number n wi...
code
{ "ground_truth": "{\"inputs\": [\"1\\n100\\n\\nSAMPLE\", \"100\\n300\", \"100\\n88\", \"1\\n110\\n\\nSAMPLE\", \"100\\n337\", \"100\\n773\", \"100\\n1067\", \"100\\n2391\", \"100\\n128\", \"100\\n85\", \"100\\n81\", \"100\\n40\", \"100\\n36\", \"100\\n18\", \"100\\n27\", \"100\\n8\", \"100\\n10\", \"100\\n22\", \"10...
none
{ "id": "modified-number", "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 array consisting of n integers. Your t...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1 7 2 11 15\\n\", \"6\\n100 100 100 100 100 100\\n\", \"3\\n1 2 3\\n\", \"3\\n1 2 1\\n\", \"2\\n1 2\\n\", \"5\\n1 2 3 3 4\\n\", \"4\\n1 2 2 3\\n\", \"3\\n1 1 2\\n\", \"3\\n2 1 1\\n\", \"7\\n1 2 3 4 5 6 7\\n\", \"9\\n1 1 1 1 1 1 1 1 1\\n\", \"11\\n1 2 3 1 2 3 2 1 2 3 4\\n\", \"1\...
rating_<=1200
{ "id": "702_A. Maximum Increase", "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": "Today is Wednesday, the third day of the week. What'...
code
{ "ground_truth": "{\"inputs\": [\"4 of week\\n\", \"30 of month\\n\", \"17 of month\\n\", \"31 of month\\n\", \"6 of week\\n\", \"1 of week\\n\", \"2 of week\\n\", \"3 of week\\n\", \"5 of week\\n\", \"7 of week\\n\", \"1 of month\\n\", \"2 of month\\n\", \"3 of month\\n\", \"4 of month\\n\", \"5 of month\\n\", \"6 ...
EASY
{ "id": "taco-train-24308", "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": "Little Victor adores the sets theory. Let us remind ...
code
{ "ground_truth": "{\"inputs\": [\"8 15 3\", \"8 30 7\", \"1 1 1\", \"3 987654321502 1\", \"15603259690 63210239992 2\", \"1023 9874156513 999999\", \"262143 393216 3\", \"524287 786432 3\", \"10 1000000 100000\", \"1 2 2\", \"1023 1024 2\", \"1023 1026 4\", \"1 1000000000000 1000000\", \"3 6 4\", \"1 3 3\", \"2 1000...
rating_>1900
{ "id": "460D", "rating": 2300, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You went to the store, selling $n$ types of chocolat...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1 2 1 3 6\\n\", \"5\\n3 2 5 4 10\\n\", \"4\\n1 1 1 1\\n\", \"1\\n1000000000\\n\", \"2\\n921 921\\n\", \"2\\n1000000000 1\\n\", \"11\\n3 10 20 13 18 12 6 5 19 10 8\\n\", \"19\\n3 1 16 11 12 10 3 13 12 9 1 9 8 4 19 16 19 3 3\\n\", \"4\\n11 6 1 16\\n\", \"19\\n10 10 8 11 6 1 6 13 8...
EASY
{ "id": "taco-train-5014", "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": "Given is a sequence of N integers A_1, \\ldots, A_N....
code
{ "ground_truth": "{\"inputs\": [\"2\\n10 30\", \"1\\n1000\", \"3\\n200 200 200\", \"2\\n14 30\", \"1\\n1001\", \"3\\n283 200 200\", \"2\\n14 38\", \"1\\n1100\", \"3\\n99 200 200\", \"2\\n17 38\", \"1\\n1110\", \"3\\n77 200 200\", \"2\\n17 24\", \"1\\n0110\", \"3\\n77 251 200\", \"2\\n10 24\", \"1\\n0100\", \"3\\n77 ...
none
{ "id": "p02934 AtCoder Beginner Contest 138 - Resistors in Parallel", "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": "Recently Vasya found a golden ticket — a sequence wh...
code
{ "ground_truth": "{\"inputs\": [\"5\\n73452\\n\", \"4\\n1248\\n\", \"2\\n00\\n\", \"3\\n555\\n\", \"8\\n00020200\\n\", \"4\\n7435\\n\", \"99\\n999999999999999999999999999999999999999999999918888888888888888888888888888888888888888888888888887\\n\", \"5\\n11980\\n\", \"4\\n2680\\n\", \"15\\n333703919182090\\n\", \"8\...
EASY
{ "id": "taco-train-3470", "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 has recently learned to type and log on to the...
code
{ "ground_truth": "{\"inputs\": [\"ahhellllloou\\n\", \"hlelo\\n\", \"hyyhddqhxhekehkwfhlnlsihzefwchzerevcjtokefplholrbvxlltdlafjxrfhleglrvlolojoqaolagtbeyogxlbgfolllslli\\n\", \"pfhhwctyqdlkrwhebfqfelhyebwllhemtrmeblgrynmvyhioesqklclocxmlffuormljszllpoo\\n\", \"jhfbndhyzdvhbvhmhmefqllujdflwdpjbehedlsqfdsqlyelwjtylox...
rating_<=1200
{ "id": "58_A. Chat room", "rating": 1000, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given a string $s$, consisting of brackets o...
code
{ "ground_truth": "{\"inputs\": [\"5\\n()\\n[]()\\n([)]\\n)]([\\n)[(]\\n\", \"4\\n[()]\\n[]\\n[]\\n()\\n\", \"4\\n()\\n()\\n()\\n()\\n\", \"7\\n()\\n()\\n()\\n()\\n()\\n()\\n()\\n\", \"4\\n()\\n()\\n()\\n()\\n\", \"7\\n()\\n()\\n()\\n()\\n()\\n()\\n()\\n\", \"4\\n[()]\\n[]\\n[]\\n()\\n\", \"4\\n)(\\n()\\n()\\n()\\n\"...
EASY
{ "id": "taco-train-4070", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "In a coordinate system,There are 3 chocolate which w...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 1 2 2 3 3\\n1 2 5 4 10 15\\n\\nSAMPLE\", \"10\\n4 9 0 4 7 1\\n5 5 4 2 8 8\\n2 5 1 1 7 1\\n3 2 4 1 6 7\\n5 8 6 1 2 2\\n2 9 8 1 6 7\\n1 3 4 6 9 11\\n1 1 4 3 3 2\\n7 2 4 7 8 3\\n8 9 1 2 0 1\", \"10\\n4 9 0 4 7 1\\n5 5 4 2 8 8\\n2 5 1 1 6 1\\n3 2 4 1 6 7\\n5 8 6 1 2 2\\n2 9 8 1 6 ...
none
{ "id": "chocolate", "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 weights and values of N items, we need to put t...
code
{ "ground_truth": "{\"inputs\": [\"N = 3, W = 50\\r\\nvalues[] = {60,100,120}\\r\\nweight[] = {10,20,30}\", \"N = 2, W = 50\\r\\nvalues[] = {60,100}\\r\\nweight[] = {10,20}\"], \"outputs\": [\"240.00\", \"160.00\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-3155", "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": "Tennis is a popular game. Consider a simplified view...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"2\", \"3 4\", \"0 2\", \"2 -2\", \"2 2\", \"3\", \"10 10 10\", \"0 0 0\", \"1 1 1\", \"5 5 5\"]], \"outputs\": [[\"2.0000\", \"0.0000\"]]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-12744", "rating": null, "split": "confidence_train", "sub_source": "VERY_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": "Polygon is not only the best platform for developing...
code
{ "ground_truth": "{\"inputs\": [\"5\\n4\\n0010\\n0011\\n0000\\n0000\\n2\\n10\\n01\\n2\\n00\\n00\\n4\\n0101\\n1111\\n0101\\n0111\\n4\\n0100\\n1110\\n0101\\n0111\\n\", \"5\\n4\\n0010\\n0011\\n0000\\n0000\\n2\\n10\\n01\\n2\\n00\\n00\\n4\\n0101\\n1111\\n0101\\n0111\\n4\\n0100\\n1110\\n0101\\n0110\\n\", \"5\\n4\\n0010\\n...
rating_1201-1400
{ "id": "1360_E. Polygon", "rating": 1300, "split": "confidence_train", "sub_source": "rating_1201-1400" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The only difference between easy and hard versions i...
code
{ "ground_truth": "{\"inputs\": [\"5 3\\n1 2 2 4 5\\n\", \"5 3\\n1 2 3 4 5\\n\", \"5 3\\n1 2 3 3 3\\n\", \"1 1\\n1337\\n\", \"50 2\\n72548 51391 1788 171949 148789 151619 19225 8774 52484 74830 20086 51129 151145 87650 108005 112019 126739 124087 158096 59027 34500 87415 115058 194160 171792 136832 1114 112592 171746...
MEDIUM
{ "id": "taco-train-23338", "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 given a character parenthesis array and an i...
code
{ "ground_truth": "{\"inputs\": [\"3\\n4\\n()()\\n-1 -2 3 4\\n4\\n(()]\\n-1 -2 3 4\\n4\\n[{]{\\n1 2 3 4\", \"3\\n3\\n()()\\n-1 -2 3 4\\n4\\n(()]\\n-1 -2 3 4\\n4\\n[{]{\\n1 2 3 4\", \"3\\n4\\n()()\\n-1 -2 3 4\\n4\\n(()]\\n-1 -2 3 4\\n4\\n[]{{\\n1 2 3 4\", \"3\\n3\\n)()(\\n-1 -2 3 4\\n8\\n(()]\\n-1 -2 3 4\\n4\\n{]{[\\n...
none
{ "id": "subarray", "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": "An array is sorted if it has no inversions\n\nA Youn...
code
{ "ground_truth": "{\"inputs\": [\"5\\n3\\n3 3 2\\n4\\n1 3 1 3\\n5\\n4 1 5 3 2\\n4\\n2 4 1 2\\n1\\n1\\n\"], \"outputs\": [\"1\\n2\\n4\\n3\\n0\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-22268", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There are $n$ block towers in a row, where tower $i$...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3\\n10 10 10\\n4\\n3 2 1 2\\n5\\n1 2 3 1 5\\n\", \"3\\n3\\n10 10 10\\n4\\n3 2 0 2\\n5\\n1 2 3 1 5\\n\", \"3\\n3\\n10 10 10\\n4\\n3 2 1 2\\n5\\n1 2 3 1 4\\n\", \"3\\n3\\n10 9 10\\n4\\n4 0 1 2\\n5\\n1 2 3 1 4\\n\", \"3\\n3\\n10 9 10\\n4\\n4 1 1 2\\n5\\n2 0 2 1 4\\n\", \"3\\n3\\n10...
EASY
{ "id": "taco-train-11990", "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": "Being stuck at home, Ray became extremely bored. To ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 1\\n-199 192\\n5 19\\n5 -1 4 2 0\\n1 2\\n69\\n\", \"4\\n6 4\\n219 57 -58 230 173 177\\n2 4\\n266 176\\n3 2\\n134 -190 202\\n5 69\\n-1000000000 -1000000000 1000000000 0 1000000000\\n\", \"5\\n20 809014\\n289 -254 1 -109 -167 93 23 -37 -31 -109 204 59 296 49 132 0 -28 35 -197 -2...
MEDIUM
{ "id": "taco-train-14596", "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 given an undirected unweighted connected gra...
code
{ "ground_truth": "{\"inputs\": [\"4 6\\n1 2\\n1 3\\n1 4\\n2 3\\n2 4\\n3 4\\n\", \"8 9\\n1 2\\n2 3\\n2 5\\n1 6\\n3 4\\n6 5\\n4 5\\n2 7\\n5 8\\n\", \"5 5\\n1 2\\n2 3\\n3 5\\n4 3\\n1 5\\n\", \"5 6\\n1 5\\n2 5\\n3 5\\n4 5\\n2 3\\n1 2\\n\", \"4 6\\n1 2\\n1 3\\n1 4\\n2 3\\n2 4\\n3 4\\n\", \"4 6\\n1 2\\n1 3\\n1 4\\n2 3\\n2...
rating_1401-1600
{ "id": "1133_F1. Spanning Tree with Maximum Degree", "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": "Problem statement\n\nA programming contest will be h...
code
{ "ground_truth": "{\"inputs\": [\"6\\n1 2 1 3 4 5\\n7\\n1 3 4 5 3 1 0\\n2 4 5 3 4 5 3\", \"6\\n1 2 1 3 4 5\\n7\\n1 3 4 5 3 1 0\\n2 8 5 3 4 5 3\", \"6\\n1 2 1 3 4 5\\n7\\n1 3 4 10 3 1 0\\n2 4 5 3 4 5 3\", \"6\\n1 2 1 5 4 5\\n7\\n1 3 4 7 3 1 0\\n2 8 5 3 7 5 3\", \"6\\n1 2 2 5 4 5\\n7\\n1 3 4 7 3 1 0\\n2 8 5 3 7 5 3\",...
none
{ "id": "p01767 RUPC", "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": "You are given an array of integers. Vasya can permut...
code
{ "ground_truth": "{\"inputs\": [\"7\\n10 1 1 1 5 5 3\", \"5\\n1 1 1 1 1\", \"6\\n300000000 200000000 300000000 200000000 1000000000 300000000\", \"10\\n1 2 3 4 5 6 7 8 9 10\", \"1\\n1\", \"7\\n3 5 2 2 5 2 4\", \"5\\n1 5 4 2 3\"], \"outputs\": [\"4\", \"0\", \"3\", \"9\", \"0\", \"4\", \"4\"]}", "style": "rule" }
rating_1201-1400
{ "id": "1007A", "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": "Mirko and Slavko are playing a game. Mirko’s turn is...
code
{ "ground_truth": "{\"inputs\": [\"2\\n\", \"3\\n\", \"4\\n\"], \"outputs\": [\"1\\n\", \"5\\n\", \"21\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-15184", "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": "Training is indispensable for achieving good results...
code
{ "ground_truth": "{\"inputs\": [\"ICPC\\nCPCPC\", \"MYON\\nUSAGI\", \"BABBAB\\nABBA\", \"ICPC\\nCOCPC\", \"MYON\\nUSAHI\", \"BBBBAB\\nABBA\", \"ICPC\\nCOCPB\", \"ICPD\\nCOCPB\", \"ICPD\\nCOBPB\", \"ICPD\\nCOBOB\", \"EIEN\\nCEKEP\", \"NYON\\nUSAHI\", \"NYNN\\nUSAHI\", \"NYNN\\nIHASU\", \"NYNN\\nUTAHI\", \"ICPD\\nBPBO...
none
{ "id": "p01409 Common Palindromes", "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": "Once upon a time DravDe, an outstanding person famou...
code
{ "ground_truth": "{\"inputs\": [\"3 4\\n1 1 1\\n\", \"3 6\\n1 1 1\\n\", \"100 1234\\n1 5 6 5 6 5 2 3 2 1 4 1 6 6 4 5 3 6 5 1 1 5 2 2 3 3 6 1 1 4 6 2 1 3 5 2 7 6 6 2 2 1 1 2 1 4 1 2 1 2 2 5 1 8 8 8 2 2 4 8 1 8 4 1 1 5 5 9 9 2 6 4 7 2 5 3 7 6 7 10 9 9 1 2 5 8 5 7 1 1 8 10 2 6 7 9 5 2 10 6\\n\", \"45 9343\\n36 16 13 20...
rating_1601-1900
{ "id": "35_D. Animals", "rating": 1700, "split": "confidence_train", "sub_source": "rating_1601-1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problems statements in [Mandarin Chinese], [Rus...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 1 1 2 3\\n10 1 1 2 3\\n10 3 1 2 3\"], \"outputs\": [\"0\\n1\\n2\"]}", "style": "rule" }
EASY
{ "id": "taco-train-11175", "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": "Tanechka is shopping in the toy shop. There are exac...
code
{ "ground_truth": "{\"inputs\": [\"8 5\\n\", \"8 15\\n\", \"7 20\\n\", \"1000000000000 1000000000001\\n\", \"1 1\\n\", \"44999999999177 100000000000000\\n\", \"100000000000000 100000000000000\\n\", \"100000000000 130000000001\\n\", \"99999999999999 65536\\n\", \"1010101010 1010101010\\n\", \"100000000000000 999999999...
EASY
{ "id": "taco-train-4956", "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 two positive integers $N$ and $K$, whe...
code
{ "ground_truth": "{\"inputs\": [[\"1\", \"3 3\"]], \"outputs\": [[\"1 2 3\"]]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-12264", "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": "You are given a string that represents the postfix fo...
code
{ "ground_truth": "{\"inputs\": [\"ab*c+\"], \"outputs\": [\"((a*b)+c)\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-19302", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a Binary Tree and a target key you need to find...
code
{ "ground_truth": "{\"inputs\": [\"1\\n / \\\\\\n 2 3\\ntarget = 4\", \"3\\n / \\\\\\n 2 5\\n / \\\\\\n 1 4\\ntarget = 4\"], \"outputs\": [\"0\", \"3\"]}", "style": "rule" }
EASY
{ "id": "taco-train-15111", "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": "G - Revenge of Minimum Cost Flow\n\nProblem Statemen...
code
{ "ground_truth": "{\"inputs\": [\"2 2 0 1 5\\n0 1 3 0 3\\n0 1 2 1 6\", \"3 2 0 1 5\\n0 1 3 0 3\\n0 1 2 1 6\", \"3 2 0 1 3\\n0 1 3 0 3\\n0 1 2 1 6\", \"2 2 0 1 2\\n0 1 3 0 3\\n0 1 2 1 6\", \"3 2 0 1 3\\n0 1 3 0 3\\n0 1 1 1 6\", \"3 3 0 1 5\\n0 0 3 0 3\\n0 1 2 1 6\", \"3 3 1 1 5\\n0 0 3 0 3\\n0 1 2 1 6\", \"2 2 0 1 4\...
none
{ "id": "p01673 Revenge of Minimum Cost Flow", "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": "Chef plays with the sequence of N numbers. During a ...
code
{ "ground_truth": "{\"inputs\": [\"3 \\n1 2 3\", \"4\\n4 1 2 3\", \"3 \\n1 2 5\", \"4\\n4 1 3 3\", \"3 \\n5 1 0\", \"4\\n20 -1 -2 -4\", \"3 \\n1 2 8\", \"4\\n4 1 5 3\", \"3 \\n1 1 8\", \"4\\n4 0 5 3\", \"3 \\n1 1 16\", \"4\\n4 -1 5 3\", \"3 \\n2 1 16\", \"4\\n4 -1 5 4\", \"3 \\n2 1 3\", \"4\\n1 -1 5 4\", \"3 \\n2 1 5...
none
{ "id": "chrl3", "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 directed graph with n vertices and m...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\n1 2\\n2 3\\n3 1\\n\", \"4 5\\n1 2\\n1 3\\n3 4\\n2 4\\n1 4\\n\", \"3 5\\n1 3\\n1 2\\n3 2\\n3 1\\n2 3\\n\", \"3 4\\n3 1\\n1 3\\n2 3\\n3 2\\n\", \"3 6\\n1 2\\n2 3\\n3 1\\n2 1\\n3 2\\n1 3\\n\", \"10 2\\n8 7\\n10 5\\n\", \"3 6\\n1 2\\n2 3\\n3 1\\n2 1\\n1 3\\n3 2\\n\", \"8 6\\n3 5\\...
rating_>1900
{ "id": "1217_D. Coloring Edges", "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": "Rhezo likes to play with graphs having N nodes and M...
code
{ "ground_truth": "{\"inputs\": [\"500 603 309\\n29 271\\n169 464\\n261 373\\n226 228\\n307 91\\n183 259\\n115 251\\n188 69\\n402 124\\n174 270\\n463 171\\n102 86\\n51 15\\n105 341\\n66 106\\n249 94\\n377 418\\n409 137\\n290 135\\n216 448\\n77 398\\n206 44\\n500 245\\n112 253\\n368 285\\n374 183\\n455 476\\n268 5\\n3...
EASY
{ "id": "taco-train-9864", "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": "Patlu has recently got a new problem based on Pallin...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"1\", \"2\"]], \"outputs\": [[\"9\", \"99\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-7015", "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": "Vasya and Petya are playing an online game. As most ...
code
{ "ground_truth": "{\"inputs\": [\"1 2 5\\n0 100\\n20 60\\n85 90\\n\", \"2 1 5\\n1 7\\n10 20\\n10 20\\n\", \"1 1 0\\n35 66\\n25 56\\n\", \"1 1 1000000\\n999999999999999999 1000000000000000000\\n0 1000000000000000000\\n\", \"1 1 1000000000000000000\\n0 1000000000000000000\\n0 1000000000000000000\\n\", \"4 4 5\\n0 10\\...
rating_>1900
{ "id": "856_F. To Play or not to Play", "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": "Damon was captured by almighty Ni’klaus. \nNi’klaus ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2\\n15\"], \"outputs\": [\"1\\n4\"]}", "style": "rule" }
none
{ "id": "tos01", "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 arr[] of size N, find the first digit ...
code
{ "ground_truth": "{\"inputs\": [\"N = 4, arr[] = {5, 8, 3, 7}\", \"N = 3, arr[] = {6, 7, 9}\"], \"outputs\": [\"8\", \"3\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-310", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given an array A = [1, 2, 3, ..., n]: \n...
code
{ "ground_truth": "{\"inputs\": [\"3 2\\n\"], \"outputs\": [\"3 6\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-3575", "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": "Vasya has recently got a job as a cashier at a local...
code
{ "ground_truth": "{\"inputs\": [\"2 11 3\\n0 1\\n1 1\\n\", \"0 5 2\\n\", \"1 3 2\\n1 2\\n\", \"0 1 1\\n\", \"1 5 3\\n3 1\\n\", \"0 1000000000 1\\n\", \"3 21 3\\n3 3\\n9 3\\n15 3\\n\", \"0 1000000000 1000000000\\n\", \"1 1 1\\n0 1\\n\", \"2 10 3\\n0 1\\n9 1\\n\", \"1 1000000000 1\\n0 1000000000\\n\", \"0 1000000000 5...
rating_<=1200
{ "id": "1059_A. Cashier", "rating": 1000, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given an array arr[] of n numbers. The task is to pri...
code
{ "ground_truth": "{\"fn_name\": \"findAll\", \"inputs\": [\"n = 3\\narr[] = {4,6,7}\", \"n = 4\\narr[] = {1,2,3,4}\"], \"outputs\": [\"-1\", \"1 2 3\"]}", "style": "rule" }
EASY
{ "id": "taco-train-3991", "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": "Vanya is doing his maths homework. He has an express...
code
{ "ground_truth": "{\"inputs\": [\"3+5*7+8*4\", \"2+3*5\", \"3*4*5\", \"5*5*5*5*5*5*5*5*5*5*5*5*5*5*5*5\", \"2*2+2*2\", \"1+1+1+1+1+1+1\", \"1+5*6+7*8\", \"9*8+7*6+5*4+3*2+1\", \"3*3*9+4+6+8*4+5+1*4*6\", \"4*9+4+5+8*4+6+9+8+2+5+2+5*7+6+8\", \"9+9+9*9*9*9+9+9\", \"9+9+9+9+9*9*9*9\", \"1*1*1*1*1*1*1*1+1*1*1*1*1*1*1*1\"...
rating_>1900
{ "id": "552E", "rating": 2100, "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": "A group of tourists is going to kayak and catamaran ...
code
{ "ground_truth": "{\"inputs\": [\"3 2\\n1 2\\n2 7\\n1 3\", \"5 3\\n1 9\\n2 9\\n1 9\\n2 10\\n1 6\", \"10 10\\n1 14\\n2 15\\n2 11\\n2 12\\n2 9\\n1 14\\n2 15\\n1 9\\n2 11\\n2 6\", \"20 19\\n2 47\\n1 37\\n1 48\\n2 42\\n2 48\\n1 38\\n2 47\\n1 48\\n2 47\\n1 41\\n2 46\\n1 28\\n1 49\\n1 45\\n2 34\\n1 43\\n2 29\\n1 46\\n2 45...
rating_1601-1900
{ "id": "3B", "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": "Two players are playing a game of Tower Breakers! Pl...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2 2\\n1 4\\n\"], \"outputs\": [\"2\\n1\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-4356", "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 is the event manager of his college. He has bee...
code
{ "ground_truth": "{\"inputs\": [[\"1\", \"4 2\", \"1 10 1\", \"10 20 2\", \"15 50 2\", \"20 30 2\"]], \"outputs\": [[\"3\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-25236", "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": "After seeing all the beautiful landscaping around Co...
code
{ "ground_truth": "{\"inputs\": [\"4 3\\n0 0 4 3\\n0 2 2 3\\n2 1 4 3\\n\", \"7 2\\n0 4 1 4 2 4 3\\n0 4 1 4 2 4 3\\n\", \"5 3\\n1 1 1 1 1\\n3 3 3 3 3\\n5 5 5 5 5\\n\", \"4 4\\n8 8 8 8\\n8 4 8 8\\n8 8 2 8\\n8 8 8 8\\n\"], \"outputs\": [\"4\\n\", \"8\\n\", \"5\\n\", \"2\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-20786", "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": "Shichikuji is the new resident deity of the South Bl...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 1\\n1 2\\n3 3\\n23 2 23\\n3 2 3\\n\", \"3\\n2 3\\n1 1\\n3 2\\n3 2 3\\n3 2 3\\n\", \"6\\n802169 415058\\n438621 719382\\n427378 361095\\n938841 703007\\n651689 546630\\n543902 45803\\n928313110 402257489 40475518 321650025 335526487 752229521\\n91 19 18 39 15 99\\n\", \"6\\n862...
rating_1601-1900
{ "id": "1245_D. Shichikuji and Power Grid", "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 ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Implement a function to calculate the sum of the nume...
code
{ "ground_truth": "{\"fn_name\": \"sum_nested\", \"inputs\": [[[1]], [[1, 2, 3, 4]], [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]], [[]], [[[1], []]], [[[1, 2, 3, 4]]], [[[], []]], [[1, [1], [[1]], [[[1]]]]], [[1, [1], [1, [1]], [1, [1], [1, [1]]]]], [[[[[], [], [[[[[[[[[[]]]]]]]]]]], [], [], [[[], [[]]]]], []]]], \"outputs\"...
EASY
{ "id": "taco-train-7988", "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": "New Year is coming! Vasya has prepared a New Year's ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n7 11\\n2 9 1 3 18 1 4\\n4 35\\n11 9 10 7\\n1 8\\n5\\n\", \"1\\n10 1000000000\\n5 6 7 4 1000000000 10 74 1000000000 1000000000 1000000000\\n\", \"1\\n24 1\\n2 1 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000...
EASY
{ "id": "taco-train-12887", "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 cities in Berland. Some pairs of cities ...
code
{ "ground_truth": "{\"inputs\": [\"5 6 2\\n1 2\\n1 3\\n2 4\\n2 5\\n3 4\\n3 5\\n\", \"4 4 3\\n1 2\\n2 3\\n1 4\\n4 3\\n\", \"4 6 3\\n1 2\\n2 3\\n1 4\\n4 3\\n2 4\\n1 3\\n\", \"16 20 100\\n4 6\\n7 15\\n10 5\\n8 6\\n9 11\\n12 15\\n14 1\\n13 7\\n12 2\\n4 12\\n14 16\\n3 16\\n9 15\\n4 5\\n8 15\\n6 3\\n2 11\\n9 12\\n5 15\\n3 ...
rating_>1900
{ "id": "1005_F. Berland and the Shortest Paths", "rating": 2100, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "You are given a sequence of a journey in London, UK. ...
code
{ "ground_truth": "{\"fn_name\": \"london_city_hacker\", \"inputs\": [[[12, \"Central\", \"Circle\", 21]], [[\"Piccidilly\", 56]], [[\"Northern\", \"Central\", \"Circle\"]], [[\"Piccidilly\", 56, 93, 243]], [[386, 56, 1, 876]], [[]]], \"outputs\": [[\"\\u00a37.80\"], [\"\\u00a33.90\"], [\"\\u00a37.20\"], [\"\\u00a35....
EASY
{ "id": "taco-train-175", "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": "*\"Stick with the strongest team, that's the only wa...
code
{ "ground_truth": "{\"inputs\": [\"5\\n3 1\\n4 3 5\\n6\\n3 3\\n2 4 7\\n2 3 7\\n3 3\\n2 7 4\\n2 7 3\\n4 4\\n2 6 5 1\\n4 6 5 2\\n2 2\\n7 4\\n7 4\\n\"], \"outputs\": [\"YES\\n6\\nYES\\n2 7 3\\nNO\\nYES\\n2 6 5 4\\nNO\\n\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-2200", "rating": null, "split": "confidence_train", "sub_source": "VERY_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": "Alice recently found some cactuses growing near her ...
code
{ "ground_truth": "{\"inputs\": [\"5 6\\n1 2\\n2 3\\n1 3\\n3 4\\n4 5\\n3 5\\n\", \"3 3\\n1 2\\n2 3\\n1 3\\n\", \"8 9\\n1 8\\n1 4\\n8 3\\n8 6\\n4 2\\n2 5\\n1 7\\n3 6\\n7 5\\n\", \"6 7\\n6 1\\n1 4\\n6 2\\n6 5\\n2 3\\n3 5\\n6 4\\n\", \"9 11\\n4 3\\n4 9\\n4 7\\n9 2\\n4 5\\n4 8\\n9 6\\n6 1\\n5 2\\n7 8\\n1 9\\n\", \"10 11\...
rating_>1900
{ "id": "1236_F. Alice and the Cactus", "rating": 3000, "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 and an integer K. In one operation, ...
code
{ "ground_truth": "{\"inputs\": [\"S = \\\"ABBA\\\"\\r\\n\\r\\nK = 2\", \"S = \\\"AABAABB\\\"\\r\\n\\r\\nk = 2\"], \"outputs\": [\"4\", \"6\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-7558", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "A wise man told Kerem \"Different is good\" once, so...
code
{ "ground_truth": "{\"inputs\": [\"2\\naa\\n\", \"4\\nkoko\\n\", \"5\\nmurat\\n\", \"6\\nacbead\\n\", \"7\\ncdaadad\\n\", \"25\\npeoaicnbisdocqofsqdpgobpn\\n\", \"25\\ntcqpchnqskqjacruoaqilgebu\\n\", \"13\\naebaecedabbee\\n\", \"27\\naaaaaaaaaaaaaaaaaaaaaaaaaaa\\n\", \"10\\nbababbdaee\\n\", \"11\\ndbadcdbdbca\\n\", \...
EASY
{ "id": "taco-train-17794", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "A dam construction project was designed around an ar...
code
{ "ground_truth": "{\"inputs\": [\"4 4 1 1\\n2 2 2 2\\n2 1 1 2\\n2 1 1 2\\n2 1 2 2\\n1 1\\n4 4 1 1\\n2 2 2 2\\n2 1 1 2\\n2 1 1 2\\n2 1 2 2\\n2 2\\n4 4 1 1\\n2 2 2 2\\n2 1 1 2\\n2 1 1 2\\n2 1 1 2\\n1 1\\n3 6 6 1\\n1 6 7 1 7 1\\n5 1 2 8 1 6\\n1 4 3 1 5 1\\n1 4\\n5 6 21 1\\n1 3 3 3 3 1\\n3 1 1 1 1 3\\n3 1 1 3 2 2\\n3 1 ...
none
{ "id": "p01206 Black Force", "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": "Watto, the owner of a spare parts store, has recentl...
code
{ "ground_truth": "{\"inputs\": [\"2 3\\naaaaa\\nacacaca\\naabaa\\nccacacc\\ncaaac\\n\", \"1 5\\nacbacbacb\\ncbacbacb\\nacbacbac\\naacbacbacb\\nacbacbacbb\\nacbaabacb\\n\", \"0 0\\n\", \"5 4\\nab\\ncacab\\ncbabc\\nacc\\ncacab\\nabc\\naa\\nacbca\\ncb\\n\", \"9 9\\ncaccbcacabccba\\naacbcbcaabacbcbcba\\nbabccaaacccacbb\...
HARD
{ "id": "taco-train-12630", "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": "# Background\n\nMy TV remote control has arrow button...
code
{ "ground_truth": "{\"fn_name\": \"tv_remote\", \"inputs\": [[\"Code Wars\"], [\"does\"], [\"your\"], [\"solution\"], [\"work\"], [\"for\"], [\"these\"], [\"words\"], [\"DOES\"], [\"YOUR\"], [\"SOLUTION\"], [\"WORK\"], [\"FOR\"], [\"THESE\"], [\"WORDS\"], [\"Does\"], [\"Your\"], [\"Solution\"], [\"Work\"], [\"For\"],...
EASY
{ "id": "taco-train-2030", "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 two strings S1 and S2 of lower alphabet charact...
code
{ "ground_truth": "{\"inputs\": [\"N1 = 4\\nS1 = abab\\nN2 = 3\\nS2 = abc\", \"N1 = 6\\nS1 = abcabc\\nN2 = 4\\nS2 = abcd\"], \"outputs\": [\"3\", \"4\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-18399", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given an array Arr[] of size N. Find the number of su...
code
{ "ground_truth": "{\"inputs\": [\"N = 6\\r\\nArr[] = {1, 2, 2, 3, 4, 1}\", \"N = 4\\r\\nArr[] = {1, 3, 1, 1}\"], \"outputs\": [\"9\", \"4\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-21766", "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": "As we mentioned earlier, bitwise operations can be us...
code
{ "ground_truth": "{\"inputs\": [\"N = 3\\r\\narr[] = 1 2 3\"], \"outputs\": [\"3\"]}", "style": "rule" }
EASY
{ "id": "taco-train-20926", "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": "Sheila is a student and she drives a typical student...
code
{ "ground_truth": "{\"inputs\": [\"3 5\\n4 -1\\n4 0\\n10 3\\n\", \"4 10\\n5 3\\n2 2\\n3 6\\n3 1\\n\"], \"outputs\": [\"3.000000000\\n\", \"-0.508653377\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-20015", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Write a program which reads two integers x and y, an...
code
{ "ground_truth": "{\"inputs\": [\"3 2\\n2 2\\n5 3\\n0 0\", \"3 1\\n2 2\\n5 3\\n0 0\", \"3 1\\n2 2\\n9 3\\n0 0\", \"3 1\\n0 2\\n9 3\\n0 0\", \"3 0\\n0 2\\n9 3\\n0 0\", \"3 0\\n0 2\\n15 3\\n0 0\", \"3 0\\n-1 2\\n15 3\\n0 0\", \"3 0\\n-1 2\\n0 3\\n0 0\", \"3 2\\n2 2\\n5 6\\n0 0\", \"3 1\\n2 3\\n9 3\\n0 0\", \"3 0\\n0 2...
none
{ "id": "p02397 Swapping Two Numbers", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There is a cricket match going on between two teams ...
code
{ "ground_truth": "{\"inputs\": [\"4\\n200 50\\n100 99\\n130 97\\n53 51\\n\"], \"outputs\": [\"150\\n1\\n33\\n2\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-10497", "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": "Write a program which reads a word W and a text T, a...
code
{ "ground_truth": "{\"inputs\": [\"computer\\nNurtures computer scientists and highly-skilled computer engineers\\nwho will create and exploit \\\"knowledge\\\" for the new era.\\nProvides an outstanding computer environment.\\nEND_OF_TEXT\", \"computer\\nNurtures computer scientists and highly-skilled computer engin...
none
{ "id": "p02419 Finding a Word", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You have a string $s$ consisting of lowercase Latin ...
code
{ "ground_truth": "{\"inputs\": [\"10\\n8 2\\nbxyaxzay\\n6 3\\naaaaaa\\n6 1\\nabcdef\\n6 6\\nabcdef\\n3 2\\ndxd\\n11 2\\nabcabcabcac\\n6 6\\nsipkic\\n7 2\\neatoohd\\n3 1\\nllw\\n6 2\\nbfvfbv\\n\", \"1\\n10 6\\naaaaaaaaaa\\n\", \"1\\n100 26\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
MEDIUM
{ "id": "taco-train-16049", "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": "Read problem statements in [Hindi], [Bengali], [Mand...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2\\n4\\n5\\n\", \"4\\n3\\n5\\n6\\n9\\n\", \"2\\n10\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n10\\n11\\n\", \"4\\n8\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n\", \"1\\n1\\n4\\n\", \"1\\n5\\n2\\n3\\n4\\n5\\n6\\n\", \"2\\n3\\n2\\n3\\n4\\n\", \"3\\n10\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n10\\n11\\n\",...
VERY_HARD
{ "id": "taco-test-375", "rating": null, "split": "confidence_train", "sub_source": "VERY_HARD" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given an array of *n* integer numbers *a*0,<...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3 3\", \"3\\n5 6 5\", \"9\\n2 1 3 5 4 1 2 3 1\", \"6\\n4 6 7 8 6 4\", \"2\\n1000000000 1000000000\", \"42\\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\", \"2\\n10000000 10000000\", \"5\\n100000000 100000001 100000000 100000001 100000000\"...
rating_<=1200
{ "id": "911A", "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": "An array B of length M consisting of only distinct e...
code
{ "ground_truth": "{\"inputs\": [\"2\\n4\\n2 1 4 3\\n5\\n1 2 3 4 5\\n\"], \"outputs\": [\"6\\n16\\n\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-4453", "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": "Slime has a sequence of positive integers $a_1, a_2,...
code
{ "ground_truth": "{\"inputs\": [\"5\\n5 3\\n1 5 2 6 1\\n1 6\\n6\\n3 2\\n1 2 3\\n4 3\\n3 1 2 3\\n10 3\\n1 2 3 4 5 6 7 8 9 10\\n\", \"2\\n1 1\\n1000000000\\n3 1000000000\\n1000000000 996 251\\n\", \"1\\n7 2\\n5 5 1 1 2 1 1\\n\", \"1\\n10 2\\n1 1 2 1 1 1 1 5 1 5\\n\", \"1\\n10 10\\n10 1 1 1 1 1 1 11 1 11\\n\", \"1\\n9 ...
HARD
{ "id": "taco-train-13381", "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": "Thanks to the effects of El Nino this year my holiday...
code
{ "ground_truth": "{\"fn_name\": \"sea_sick\", \"inputs\": [[\"~\"], [\"_~~~~~~~_~__~______~~__~~_~~\"], [\"______~___~_\"], [\"____\"], [\"_~~_~____~~~~~~~__~_~\"]], \"outputs\": [[\"No Problem\"], [\"Throw Up\"], [\"Throw Up\"], [\"No Problem\"], [\"Throw Up\"]]}", "style": "rule" }
EASY
{ "id": "taco-train-611", "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 people, conveniently numbered 1 through ...
code
{ "ground_truth": "{\"inputs\": [\"8\\n7 5 1 1 7 3 5 3\", \"7\\n6 4 0 2 4 0 2\", \"5\\n2 4 4 0 2\", \"8\\n7 5 1 2 7 3 5 3\", \"7\\n6 4 0 2 4 0 4\", \"5\\n0 4 4 0 2\", \"7\\n6 4 0 2 4 -1 4\", \"5\\n0 4 4 0 1\", \"7\\n6 4 0 2 8 -1 4\", \"5\\n0 4 1 0 1\", \"7\\n6 4 0 2 8 0 4\", \"5\\n0 4 0 0 1\", \"7\\n6 4 1 2 8 0 4\", ...
none
{ "id": "p03846 AtCoder Beginner Contest 050 - Lining Up", "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 the strings s1 and s2 of size n, and the string...
code
{ "ground_truth": "{\"fn_name\": \"findGoodStrings\", \"inputs\": [[2, \"\\\"aa\\\"\", \"\\\"da\\\"\", \"\\\"b\\\"\"]], \"outputs\": [4]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-24365", "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": "The ZCO scholarship contest offers scholarships to f...
code
{ "ground_truth": "{\"inputs\": [[\"3\", \"5 3 0 1\", \"4\", \"10 2 4 6\", \"3 1 7 6\", \"4 3 1 5 9 7\", \"10 4 4 6\", \"3 1 7 6\", \"4 3 1 5 9 7\"]], \"outputs\": [[\"3\", \"2\", \"3\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-23434", "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": "Continuing from previous version of codeXplod series...
code
{ "ground_truth": "{\"inputs\": [\"1\\n2 3 Chandu\\n\\nSAMPLE\", \"51\\n8 10 Chandu\\n2 2959 Daspal\\n2903 6 Chandu\\n9 2938 Daspal\\n10 2907 Daspal\\n8 2966 Daspal\\n8 2938 Daspal\\n4 2984 Daspal\\n5 2939 Daspal\\n2 2975 Daspal\\n2925 10 Chandu\\n4 2982 Daspal\\n10 2959 Daspal\\n3 2906 Daspal\\n5 2904 Daspal\\n2983 ...
none
{ "id": "chandu-and-daspal-2", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Mehta was doing his usual office work when all of a ...
code
{ "ground_truth": "{\"inputs\": [\"11\\n598125188620204729 796408109138963280 3414958\\n263126113473286117 577665049804655234 4305811\\n10 15 213\\n1456 34523 1000000\\n217645033884593604 906357340499884328 3560236\\n333551766071424061 420913569457334384 6681760\\n178306623178108078 202198977821912169 4565049\\n27067...
HARD
{ "id": "taco-train-9388", "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 cryptography, Caesar cipher is one of the simples...
code
{ "ground_truth": "{\"inputs\": [\"xlmw mw xli tmgxyvi xlex m xsso mr xli xvmt.\", \"xlmw mw xli tmgxyvi xlex m xsso mr ilx xvmt.\", \"xlmw mw xli tmgxyvi xlex m ossx mr ilx xvmt.\", \"xlmw mw xli tmgxyvi xlex m ossx mr ilx xwmt.\", \"xlmw mw xli tmgxyvi xlex m orsx mr ilx xwmt.\", \"xlmw mw xli tmgxyvi xlex l orsx m...
none
{ "id": "p00017 Caesar Cipher", "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 connected undirected graph of N edges and M v...
code
{ "ground_truth": "{\"inputs\": [\"N = 6, M = 5\\r\\ngraph = {{0, 3}\\r\\n {0, 1}\\r\\n {1, 2}.\\r\\n {1, 5},\\r\\n {3, 4}}\"], \"outputs\": [\"1\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-14012", "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": "Bichrome Tree Connectivity\n\nGiven a tree.\n\nIniti...
code
{ "ground_truth": "{\"inputs\": [\"10 3\\n1 2\\n2 5\\n2 6\\n1 4\\n1 3\\n3 7\\n3 8\\n3 9\\n9 10\\n1 3\\n2 1\\n2 8\", \"10 3\\n1 2\\n2 5\\n2 6\\n1 4\\n1 3\\n3 7\\n3 8\\n3 9\\n9 10\\n1 2\\n2 1\\n2 8\", \"10 3\\n1 2\\n2 5\\n2 6\\n1 4\\n2 3\\n3 7\\n3 8\\n3 9\\n9 10\\n1 3\\n2 1\\n2 8\", \"10 3\\n1 2\\n2 5\\n2 6\\n1 4\\n1 3...
none
{ "id": "p02195 Bichrome Tree Connectivity", "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 heights h[] of N towers, the task is to bring e...
code
{ "ground_truth": "{\"inputs\": [\"N = 3, h[] = {1, 2, 3} \\r\\ncost[] = {10, 100, 1000}\", \"N = 5, h[] = {9, 12, 18, 3, 10} \\r\\ncost[] = {100, 110, 150, 25, 99}\"], \"outputs\": [\"120\", \"1623\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-16419", "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": "Geek is very fond of patterns. Once, his teacher gave...
code
{ "ground_truth": "{\"inputs\": [\"5\"], \"outputs\": [\"1 \\n2 3\\n 4 5 6\\n 7 8 9 10\\n 11 12 13 14 15\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-4152", "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 Queen of England has n trees growing in a row in...
code
{ "ground_truth": "{\"inputs\": [\"4 1\\n1 2 1 5\\n\", \"4 1\\n1 2 3 4\\n\", \"50 1\\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50\\n\", \"10 1\\n1 2 3 4 5 6 7 8 9 10\\n\", \"50 5\\n232 6 11 16 21 26 31 36 41 46 665 56 61 ...
MEDIUM
{ "id": "taco-train-23155", "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": "The tablet interface technology, which can be operat...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\nR G B\\nG G G\\nG B B\\n2 4\\nR G\\nG G\\nR B\\nB R\\n4 3\\nG G B R\\nG R R G\\nB G G R\\n0 0\", \"3 3\\nR G B\\nG G G\\nG B B\\n2 4\\nR G\\nG G\\nR B\\nB R\\n4 3\\nF G B R\\nG R R G\\nB G G R\\n0 0\", \"3 3\\nR G B\\nG G G\\nG B B\\n2 4\\nS G\\nG G\\nR B\\nB R\\n4 3\\nG G B R...
none
{ "id": "p00243 Filling 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": "This is a story in the epoch of magic. A clan of mag...
code
{ "ground_truth": "{\"inputs\": [\"1 1 1\\n10 15 5\\n15 10 100\\n0 0 0\", \"1 1 1\\n10 13 5\\n15 10 100\\n0 0 0\", \"1 1 1\\n10 15 5\\n15 10 100\\n0 1 0\", \"1 1 1\\n9 15 5\\n15 10 100\\n0 1 0\", \"1 2 1\\n9 15 5\\n15 10 100\\n0 2 0\", \"1 1 1\\n10 15 5\\n22 10 100\\n0 0 0\", \"1 1 1\\n10 15 5\\n15 10 110\\n0 1 0\", ...
none
{ "id": "p01264 Magical Island", "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 magic sum of 3s is calculated on an array by summ...
code
{ "ground_truth": "{\"fn_name\": \"magic_sum\", \"inputs\": [[[3]], [[3, 13]], [[30, 34, 330]], [[3, 12, 5, 8, 30, 13]], [[]], [null]], \"outputs\": [[3], [16], [0], [16], [0], [0]]}", "style": "rule" }
EASY
{ "id": "taco-train-24028", "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": "Bran was a prisoner in Azkaban. Though Bran was a wi...
code
{ "ground_truth": "{\"inputs\": [\"18\\n3\\n0 0 1 \\n0 1 1 \\n0 0 0 \\n9\\n0 0 1 1 0 0 0 1 0 \\n1 0 1 1 1 0 0 0 1 \\n0 0 0 0 0 0 0 0 1 \\n0 1 0 1 1 1 0 1 0 \\n0 0 0 1 0 1 1 1 1 \\n1 0 0 0 1 1 0 1 0 \\n1 1 1 0 0 0 0 1 1 \\n1 1 0 0 0 0 0 1 0 \\n0 0 0 0 1 0 0 0 0 \\n6\\n0 0 0 1 1 0 \\n0 0 1 1 1 1 \\n1 0 0 0 0 0 \\n0 1 0...
EASY
{ "id": "taco-train-19669", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given a bracket sequence s consisting of n o...
code
{ "ground_truth": "{\"inputs\": [\"6\\n()()()\\n\", \"1\\n)\\n\", \"6\\n(((())\\n\", \"8\\n)))(((((\\n\", \"2\\n)(\\n\", \"4\\n)(((\\n\", \"6\\n())(((\\n\", \"2\\n((\\n\", \"3\\n)))\\n\", \"20\\n(())(()((((()())()((\\n\", \"10\\n(()(())(((\\n\", \"4\\n))))\\n\", \"10\\n)(()()(()(\\n\", \"12\\n)())(())((((\\n\", \"3\\...
rating_1601-1900
{ "id": "1095_E. Almost Regular Bracket Sequence", "rating": 1900, "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": "There are *n* cities in Berland. Each city has its i...
code
{ "ground_truth": "{\"inputs\": [\"3 2 3\\n2 2\", \"6 2 4\\n6 1 2 4 2\", \"7 7 6\\n7 7 5 5 7 7\", \"4 2 3\\n2 1 3\", \"5 5 4\\n5 4 1 5\", \"6 2 1\\n4 1 2 2 2\", \"2 1 2\\n1\", \"2 2 1\\n2\", \"3 1 3\\n1 2\", \"10 4 3\\n5 6 9 10 1 9 6 8 4\", \"100 62 42\\n45 66 13 18 93 47 83 19 41 66 5 70 16 29 54 28 65 91 92 24 90 5...
rating_1401-1600
{ "id": "34D", "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": "Brothers Fred and George Weasley once got into the s...
code
{ "ground_truth": "{\"inputs\": [\"1\\n1 2 3\\n4 5 6\\n20 10\\n1 2 3\\n\", \"4\\n0 0 0\\n0 10 0\\n10 10 0\\n10 0 0\\n0 0 0\\n1 1\\n5 5 50\\n\", \"4\\n0 0 0\\n0 10 0\\n10 10 0\\n10 0 0\\n0 0 0\\n1 1\\n5 5 25\\n\", \"20\\n26 47 23\\n1 -2 17\\n-14 -22 46\\n19 34 -18\\n22 -10 -34\\n15 14 -48\\n-30 -12 -12\\n-23 40 -48\\n...
rating_>1900
{ "id": "65_C. Harry Potter and the Golden Snitch", "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 palindrome is a string that can be read the same...
code
{ "ground_truth": "{\"inputs\": [\"10\\n2\\n4\\n0\\n5\\n6\\n7\\n8\\n9\\n10\\n11\", \"2\\n2\\n4\"], \"outputs\": [\"2\\n4\", \"2\\n4\\n0\\n4\\n6\\n6\\n8\\n8\\n10\\n10\"]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-13653", "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": "Write a program of the Bubble Sort algorithm which s...
code
{ "ground_truth": "{\"inputs\": [\"5\\n5 3 2 4 1\", \"6\\n5 2 4 6 1 3\", \"5\\n7 3 2 4 1\", \"6\\n5 1 4 6 1 3\", \"5\\n7 3 2 3 1\", \"6\\n6 1 4 6 1 3\", \"5\\n7 3 2 3 0\", \"6\\n6 1 3 6 1 3\", \"5\\n7 3 4 3 0\", \"6\\n8 1 3 6 1 3\", \"5\\n7 1 4 3 0\", \"6\\n8 1 3 6 2 3\", \"5\\n7 1 4 3 1\", \"6\\n8 1 3 3 2 3\", \"6\\...
none
{ "id": "p02259 Bubble Sort", "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 two lists V1 and V2 of sizes n and m respective...
code
{ "ground_truth": "{\"inputs\": [\"n = 5\\r\\nv1[] = {3, 4, 2, 2, 4}\\r\\nm = 4\\r\\nv2[] = {3, 2, 2, 7}\"], \"outputs\": [\"2 2 3\"]}", "style": "rule" }
EASY
{ "id": "taco-train-2302", "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 program to find the n-th ugly number.\n\nUgly...
code
{ "ground_truth": "{\"fn_name\": \"nthUglyNumber\", \"inputs\": [[10]], \"outputs\": [12]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-10585", "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": "Monocarp had a tree which consisted of n vertices an...
code
{ "ground_truth": "{\"inputs\": [\"3\\n4\\n1 4 3 2\\n2\\n1 2\\n3\\n1 2 3\\n\", \"3\\n4\\n1 4 2 3\\n2\\n1 2\\n3\\n1 2 3\\n\"], \"outputs\": [\"3\\n1\\n1\\n\", \"2\\n1\\n1\\n\"]}", "style": "rule" }
rating_1401-1600
{ "id": "1437_D. Minimal Height Tree", "rating": 1600, "split": "confidence_train", "sub_source": "rating_1401-1600" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Three numbers A, B and C are the inputs. Write a pro...
code
{ "ground_truth": "{\"inputs\": [[\"3\", \"120 11 400\", \"10213 312 10\", \"10 3 450\"], \"3 \\n120 14 400\\n10213 312 10\\n10 3 450\", \"3 \\n117 14 384\\n10213 312 10\\n10 3 450\", \"3 \\n178 14 384\\n10213 312 10\\n10 3 450\", \"3 \\n303 14 384\\n10213 312 10\\n10 0 450\", \"3 \\n6 14 766\\n10213 312 10\\n10 0 45...
EASY
{ "id": "taco-train-8862", "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": "Say you have an array for which the ith element is th...
code
{ "ground_truth": "{\"fn_name\": \"maxProfit\", \"inputs\": [[[7, 1, 5, 3, 6, 4]]], \"outputs\": [5]}", "style": "rule" }
EASY
{ "id": "taco-train-22636", "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": "Dee Dee went to market to buy some eggs. There are 2...
code
{ "ground_truth": "{\"inputs\": [\"2\\n20\\n24\\n\\nSAMPLE\", \"23\\n19\\n20\\n90\\n91\\n92\\n93\\n94\\n95\\n96\\n97\\n98\\n99\\n100\\n44\\n30\\n32\\n50\\n26\\n28\\n72\\n60\\n58\\n88\", \"2\\n35\\n24\\n\\nSAMPLE\", \"2\\n35\\n21\\n\\nSAMPLE\", \"2\\n52\\n21\\n\\nSAMPLE\", \"2\\n20\\n44\\n\\nSAMPLE\", \"2\\n20\\n49\\n...
none
{ "id": "dee-dees-shopping-1", "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": "Cold winter evenings in Tomsk are very boring — nobo...
code
{ "ground_truth": "{\"inputs\": [\"6\\nRGB\\nGRG\\nBBB\\nGGR\\nBRG\\nBRB\\n\", \"3\\nGGR\\nGRR\\nGRR\\n\", \"2\\nBGB\\nGRB\\n\", \"3\\nRRG\\nRBG\\nRBB\\n\", \"5\\nRGB\\nRRR\\nBRB\\nRGR\\nBBB\\n\", \"2\\nBGG\\nRGB\\n\", \"2\\nGGG\\nGGG\\n\", \"4\\nBGB\\nGBG\\nRRG\\nGGB\\n\", \"2\\nBBB\\nGBG\\n\", \"4\\nBGR\\nRGB\\nGBB...
rating_>1900
{ "id": "424_E. Colored Jenga", "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": "C: Only one subsequence --Unique Subsequence-\n\npro...
code
{ "ground_truth": "{\"inputs\": [\"aizucamp\\nazu\", \"aizucamp\\nuza\", \"aziucamp\\nazu\", \"azjucamp\\nazu\", \"azjucamp\\nazt\", \"azjucamp\\nzat\", \"pmacujza\\nzat\", \"pmacuiza\\nzat\", \"pmicuaza\\nzat\", \"pmicvaza\\nzat\", \"pmicvaya\\nzat\", \"pnicvaya\\nzat\", \"pnicvaya\\n{at\", \"pnicvaya\\nta{\", \"pni...
none
{ "id": "p01940 Unique 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": "Amugae is in a very large round corridor. The corrid...
code
{ "ground_truth": "{\"inputs\": [\"4 6 3\\n1 1 2 3\\n2 6 1 2\\n2 6 2 4\\n\", \"999999937 999999874000003969 1\\n1 979917353 2 983249032983207370\\n\", \"1 1 10\\n1 1 1 1\\n1 1 1 1\\n1 1 2 1\\n1 1 1 1\\n2 1 2 1\\n2 1 1 1\\n1 1 2 1\\n1 1 2 1\\n2 1 1 1\\n2 1 1 1\\n\", \"3 9 1\\n1 1 2 4\\n\", \"2 3 5\\n2 3 1 2\\n2 3 2 3\...
rating_1201-1400
{ "id": "1200_C. Round Corridor", "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 ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given a tree with $N$ vertices (numbered $1$...
code
{ "ground_truth": "{\"inputs\": [[\"3\", \"3\", \"0 1 1\", \"1 2\", \"1 3\", \"3\", \"0 1 2\", \"1 2\", \"1 3\", \"4\", \"2 2 2 2\", \"1 2\", \"1 3\", \"3 4\"]], \"outputs\": [[\"1\", \"1\", \"0\"]]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-4318", "rating": null, "split": "confidence_train", "sub_source": "VERY_HARD" }