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": "Tanya is learning how to add numbers, but so far she... | code | {
"ground_truth": "{\"inputs\": [\"6\\n17236 1106911\\n1 5\\n108 112\\n12345 1023412\\n1 11\\n1 20\\n\", \"1\\n12 1034\\n\", \"1\\n1078 1112\\n\", \"1\\n23 1034\\n\", \"1\\n1078 1547\\n\", \"6\\n17236 1106911\\n1 5\\n108 112\\n12345 799289\\n1 11\\n1 20\\n\", \"6\\n17236 1106911\\n1 5\\n108 112\\n12345 799289\\n1 11\... | rating_<=1200 | {
"id": "1619_C. Wrong Addition",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Consider the following process. You have a binary st... | code | {
"ground_truth": "{\"inputs\": [\"3\\n101110\\n2\\n01\\n1\\n110\\n1\\n\", \"3\\n100110\\n2\\n01\\n1\\n110\\n1\\n\", \"3\\n100110\\n2\\n01\\n1\\n111\\n1\\n\", \"3\\n100110\\n2\\n01\\n2\\n011\\n1\\n\", \"3\\n000110\\n2\\n01\\n2\\n011\\n1\\n\", \"3\\n001110\\n2\\n01\\n2\\n111\\n1\\n\", \"3\\n001110\\n2\\n01\\n2\\n101\\... | MEDIUM | {
"id": "taco-train-4928",
"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": "Bandwidth of a matrix A is defined as the smallest n... | code | {
"ground_truth": "{\"inputs\": [[\"6\", \"2\", \"0 0\", \"0 0\", \"2\", \"1 0\", \"0 1\", \"2\", \"1 0\", \"1 0\", \"2\", \"1 0\", \"1 1\", \"3\", \"1 0 0\", \"0 1 1\", \"1 1 0\", \"4\", \"1 1 1 1\", \"1 1 1 1\", \"1 1 1 1\", \"1 1 1 1\", \"\", \"\"]], \"outputs\": [[\"0\", \"0\", \"0\", \"1\", \"1\", \"3\"]]}",
"... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-15298",
"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": "Ed, Edd and Eddy are given an art homework. They hav... | code | {
"ground_truth": "{\"inputs\": [\"5\\nhello\\nhi hello hi\\ndef\\nabc def\\njava\\npython\\nc\\ncplusplus\\nhellohi\\nhellotherehi\\n\\nSAMPLE\", \"5\\nlehlo\\nhi hello hi\\ndef\\nabc def\\njava\\npython\\nc\\ncplusplus\\nhellohi\\nhellotherehi\\n\\nSAMPLE\", \"5\\nlehlo\\nhi olleh hi\\ndef\\nabc fed\\naavj\\npython... | none | {
"id": "creativity",
"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": "Dr. A of the Aizu Institute of Biological Research d... | code | {
"ground_truth": "{\"inputs\": [\"rbgrg\\nrbbgbbr\\nbgr\\nbgrbrgbr\\nbggrgbgrr\\ngbrggrbggr\\nrrrrr\\nbgbr\\n0\", \"rbgrg\\nrbbgbbr\\nbgr\\nrgbbrgbr\\nbggrgbgrr\\ngbrggrbggr\\nrrrrr\\nbgbr\\n0\", \"rbgrg\\ngbbrbbr\\ngbr\\nrgbbrgbr\\nrrgbgrggb\\ngbrggrbggr\\nrrrrr\\nbgbr\\n0\", \"rbgrg\\nrbbgbbr\\nbgr\\nbgbrrgbr\\nbg... | none | {
"id": "p00179 Mysterious Worm",
"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": "A necklace can be described as a string of links ('-... | code | {
"ground_truth": "{\"inputs\": [\"-o-o--\", \"-o---\", \"-o---o-\", \"ooo\", \"---\", \"--o-o-----o----o--oo-o-----ooo-oo---o--\", \"-o--o-oo---o-o-o--o-o----oo------oo-----o----o-o-o--oo-o--o---o--o----------o---o-o-oo---o--o-oo-o--\", \"-ooo--\", \"---o--\", \"oo-ooo\", \"------o-o--o-----o--\", \"--o---o---------... | rating_<=1200 | {
"id": "980A",
"rating": 900,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Mr. Vallya,the rich playboy billionaire , has recent... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 5\\n5 11\\n21 71\"], \"outputs\": [\"2\\n10\\n6\"]}",
"style": "rule"
} | none | {
"id": "sss",
"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": "Vadim is really keen on travelling. Recently he hear... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 2 3 4\", \"4\\n1 3 4 6 3 4 100 200\", \"3\\n305 139 205 406 530 206\", \"3\\n610 750 778 6 361 407\", \"5\\n97 166 126 164 154 98 221 7 51 47\", \"50\\n1 1 2 2 1 3 2 2 1 1 1 1 2 3 3 1 2 1 3 3 2 1 2 3 1 1 2 1 3 1 3 1 3 3 3 1 1 1 3 3 2 2 2 2 3 2 2 2 2 3 1 3 3 3 3 1 3 3 1 3 3 3 3... | rating_1401-1600 | {
"id": "863B",
"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": "Misha and Vanya have played several table tennis set... | code | {
"ground_truth": "{\"inputs\": [\"11 11 5\", \"11 2 3\", \"1 5 9\", \"2 3 3\", \"1 1000000000 1000000000\", \"2 3 5\", \"1000000000 1000000000 1000000000\", \"1 0 1\", \"101 99 97\", \"1000000000 0 1\", \"137 137 136\", \"255 255 255\", \"1 0 1000000000\", \"123 456 789\", \"666666 6666666 666665\", \"1000000000 999... | rating_<=1200 | {
"id": "765C",
"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": "The restaurant AtCoder serves the following five dis... | code | {
"ground_truth": "{\"inputs\": [\"123\\n123\\n123\\n123\\n123\", \"29\\n20\\n7\\n35\\n120\", \"101\\n86\\n119\\n108\\n57\", \"123\\n123\\n161\\n123\\n123\", \"29\\n20\\n13\\n35\\n120\", \"101\\n86\\n119\\n108\\n92\", \"123\\n123\\n161\\n123\\n163\", \"29\\n20\\n9\\n35\\n120\", \"101\\n86\\n119\\n125\\n92\", \"123\\n... | none | {
"id": "p03076 AtCoder Beginner Contest 123 - Five Dishes",
"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": "Zonal Computing Olympiad 2013, 10 Nov 2012\nN teams ... | code | {
"ground_truth": "{\"inputs\": [[\"4\", \"3 10 3 5\", \"Sample output\", \"23\", \"Test data\", \"In all subtasks, the strength of each team is an integer between 1 and 1,000 inclusive.\", \"Subtask 1 (30 marks) : 2 \\u2264 N \\u2264 1,000.\", \"Subtask 2 (70 marks) : 2 \\u2264 N \\u2264 200,000.\", \"Live eva... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-13975",
"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": "It's the rainy season again, and the city experience... | code | {
"ground_truth": "{\"inputs\": [\"2\\n0 10\\n.5 720\\n\\nSAMPLE\", \"10\\n0.18645496223766345 360\\n0.17989902622977394 360\\n0.45262248490623425 360\\n0.04663296744034651 360\\n0.12725823257381275 360\\n0.2895663014860297 48\\n0.05625277914818627 360\\n0.11455689444280615 360\\n0.46003084917418513 360\\n0.179863948... | none | {
"id": "so-random",
"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": "Oh, no!\n\nThe coronavirus has caught you, and now y... | code | {
"ground_truth": "{\"inputs\": [\"2\\n5 7\\n5 7\\n\", \"3\\n1 2 1\\n2 1 2\\n\", \"2\\n10 1\\n13 14\\n\", \"2\\n1 1\\n300000 1\\n\", \"3\\n682 411 6652\\n993380064727 76407967827 3056063792\\n\", \"2\\n2 1\\n768816015401 236766656640\\n\", \"3\\n1 2 1\\n994501956360 1410320 1\\n\", \"2\\n1 1\\n1 200001\\n\", \"8\\n16... | rating_>1900 | {
"id": "1358_F. Tasty Cookie",
"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 ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Kuro has recently won the \"Most intelligent cat eve... | code | {
"ground_truth": "{\"inputs\": [\"3 1\\n-1 0 1\\n\", \"2 1\\n1 0\\n\", \"1 1\\n-1\\n\", \"1 0\\n-1\\n\", \"1 1\\n0\\n\", \"5 1\\n-1 -1 -1 -1 -1\\n\", \"5 0\\n-1 -1 -1 -1 -1\\n\", \"10 1\\n1 1 1 1 0 0 0 1 0 0\\n\", \"50 1\\n-1 -1 1 0 1 1 0 -1 1 0 -1 -1 0 0 -1 -1 0 1 1 -1 1 0 -1 1 1 -1 -1 -1 1 -1 -1 0 -1 0 -1 0 0 -1 -... | VERY_HARD | {
"id": "taco-train-949",
"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": "An electrical grid in Berland palaces consists of 2 ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n14\\n1 1 11 2 14 14 13 7 12 2 5 6 1\\n9 8 3 10 4\\n16\\n1 1 9 9 2 5 10 1 14 3 7 11 6 12 2\\n8 16 13 4 15\\n\", \"3\\n6\\n4 1 1 4 2\\n6 5 3\\n4\\n1 1 1\\n3 4 2\\n\", \"4\\n6\\n4 4 1 1 1\\n3 2 6 5\\n6\\n6 6 1 1 1\\n5 4 3 2\\n\", \"10\\n11\\n1 1 1 1 1 1 1 1 1 1\\n6 7 4 11 3 9 2 5 1... | rating_>1900 | {
"id": "1263_F. Economic Difficulties",
"rating": 2400,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Soon a school Olympiad in Informatics will be held i... | code | {
"ground_truth": "{\"inputs\": [\"6\\n1 5\\n2 6\\n3 7\\n\", \"10\\n1 2\\n1 3\\n1 5\\n\", \"6\\n1 3\\n2 2\\n2 2\\n\", \"55\\n1 1000000\\n40 50\\n10 200\\n\", \"3\\n1 1\\n1 1\\n1 1\\n\", \"3\\n1 1000000\\n1 1000000\\n1 1000000\\n\", \"1000\\n100 400\\n300 500\\n400 1200\\n\", \"3000000\\n1 1000000\\n1 1000000\\n1 1000... | EASY | {
"id": "taco-train-9617",
"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": "Filip came across an interesting math problem: He wa... | code | {
"ground_truth": "{\"inputs\": [\"5 2 8 4\\n\", \"2 1 11 4\\n\"], \"outputs\": [\"20512\\n\", \"IMPOSSIBLE\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-24145",
"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": "You are playing a game of Nim with a friend. The rul... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2\\n1 3\\n3\\n111\\n4\\n10 4 5 1\\n\"], \"outputs\": [\"2\\n3\\n6\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-15314",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an array A of size N. The contents of A are cop... | code | {
"ground_truth": "{\"inputs\": [\"A[] = {4, 8, 1, 3, 7}\\nB[] = {7, 4, 3, 1}\", \"A[] = {12, 10, 15, 23, 11, 30}\\nB[] = {15, 12, 23, 11, 30}\"], \"outputs\": [\"8\", \"10\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-24993",
"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": "Problem statement\n\nReal variables $ x_1, x_2, ...,... | code | {
"ground_truth": "{\"inputs\": [\"1 1\\n3 1\", \"2 1\\n-1 -3\\n3 10\", \"2 3\\n3 3\\n1 2\", \"0 1\\n3 1\", \"2 2\\n-1 -3\\n3 10\", \"2 3\\n4 3\\n1 2\", \"2 3\\n4 2\\n1 2\", \"2 3\\n1 2\\n1 2\", \"2 3\\n1 2\\n2 3\", \"1 3\\n1 2\\n2 3\", \"1 31\\n0 8\\n1 6\", \"1 1\\n3 2\", \"2 1\\n-1 0\\n3 10\", \"1 0\\n-1 1\\n3 8\",... | none | {
"id": "p01471 Fractional Knapsack",
"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": "Fatland is a town with N cities numbered 1, 2, ..., ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n3 3 3 3\\n2\\n1 2\\n4 1\\n\\nSAMPLE\", \"523\\n99 579 761 271 923 129 332 471 667 607 959 414 553 147 885 77 776 670 194 603 22 688 288 317 223 844 193 657 919 827 627 918 502 278 957 646 874 501 760 403 894 995 326 51 307 118 695 777 109 299 38 614 410 551 522 154 300 763 19 38... | none | {
"id": "city-and-fireman-vincent",
"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 a complete undirected graph with *n* v... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 5\", \"4\\n1 2 3 4\", \"1\\n1\"], \"outputs\": [\"8\", \"8\", \"0\"]}",
"style": "rule"
} | rating_>1900 | {
"id": "888G",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "# Introduction\n\nThe first century spans from the **... | code | {
"ground_truth": "{\"fn_name\": \"century\", \"inputs\": [[1705], [1900], [1601], [2000], [356], [89]], \"outputs\": [[18], [19], [17], [20], [4], [1]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-23840",
"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": "n boys and m girls came to the party. Each boy prese... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n0 1\\n1 0\\n\", \"2 3\\n1 0\\n1 1 2\\n\", \"3 2\\n1 2 1\\n3 4\\n\", \"2 2\\n14419485 34715515\\n45193875 34715515\\n\", \"2 2\\n100000000 100000000\\n0 0\\n\", \"2 2\\n217361 297931\\n297930 83550501\\n\", \"2 2\\n72765050 72765049\\n72763816 77716490\\n\", \"4 3\\n1 5 6 7\\n8... | rating_1401-1600 | {
"id": "1159_C. The Party and Sweets",
"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": "Oh my God!!! Someone is trying to break into Thapar ... | code | {
"ground_truth": "{\"inputs\": [\"3\\nabcd\\nreverse\\ngear\", \"3\\nabdc\\nreverse\\ngear\", \"3\\ncaad\\nftsfwfr\\ngrae\", \"3\\ncaad\\nftsfwfr\\nfarg\", \"3\\ncaad\\nftsewfr\\nfarg\", \"3\\ndbae\\nfttewfr\\nfarg\", \"3\\nfc`^\\nhwqgsug\\npehd\", \"3\\nf]^h\\nvsegrgr\\nijob\", \"3\\nh^f[\\nqgvegsq\\n`joi\", \"3\\n... | none | {
"id": "aran01",
"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": "It was an era when magic still existed as a matter o... | code | {
"ground_truth": "{\"inputs\": [\"4 4 1\\n1 0\\n0 1\\n-1 0\\n0 -1\\n5 6 2\\n1 1\\n4 4\\n2 -4\\n-4 2\\n1 5\\n0 0 0\", \"4 4 1\\n1 0\\n0 1\\n-1 0\\n0 -1\\n5 6 2\\n1 1\\n4 8\\n2 -4\\n-4 2\\n1 5\\n0 0 0\", \"4 4 1\\n0 0\\n0 1\\n-1 -1\\n0 -1\\n5 6 2\\n1 1\\n4 8\\n2 -4\\n-4 2\\n1 5\\n0 -1 0\", \"4 4 1\\n0 0\\n0 1\\n-1 -1\... | none | {
"id": "p01320 Magical Island 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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "You are given an integer num. You will apply the foll... | code | {
"ground_truth": "{\"fn_name\": \"maxDiff\", \"inputs\": [[555]], \"outputs\": [888]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-15268",
"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": "Vasya's older brother, Petya, attends an algorithm c... | code | {
"ground_truth": "{\"inputs\": [[\"3\", \"3 3\", \"1 2\", \"1 3\", \"2 3\", \"4 2\", \"1 2\", \"3 4\", \"5 0\"]], \"outputs\": [[\"3\", \"1\", \"0\"]]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-22813",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given two numbers N and M. Construct maximal number b... | code | {
"ground_truth": "{\"inputs\": [\"N = 123\\nM = 222\", \"N = 3921\\nM = 10000\"], \"outputs\": [\"213\", \"9321\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-10528",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are solving the crossword problem K from IPSC 20... | code | {
"ground_truth": "{\"inputs\": [\"7\\n...feon\", \"7\\n.l.r.o.\", \"6\\n.s..o.\", \"7\\nglaceon\", \"8\\n.a.o.e.n\", \"7\\n.laceon\", \"7\\n..lveon\", \"7\\n.l.ceon\", \"7\\n..areon\"], \"outputs\": [\"leafeon\", \"flareon\", \"espeon\", \"glaceon\", \"vaporeon\", \"glaceon\", \"sylveon\", \"glaceon\", \"flareon\"]}... | rating_<=1200 | {
"id": "452A",
"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": "Lunar New Year is approaching, and Bob is struggling... | code | {
"ground_truth": "{\"inputs\": [\"4\\n8 5 2 3\\n\", \"6\\n1 1 1 2 2 2\\n\", \"2\\n1 1\\n\", \"4\\n9540 7069 4914 2241\\n\", \"50\\n9 16 3 3 12 2 9 13 6 11 18 15 6 20 14 13 20 5 19 4 10 2 10 19 20 3 15 3 9 1 9 4 16 3 19 14 12 13 12 5 9 16 4 1 8 20 8 2 11 5\\n\", \"20\\n8 10 10 1 1 5 9 2 1 5 4 3 4 4 2 10 3 9 9 4\\n\",... | EASY | {
"id": "taco-train-12352",
"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": "Lolek and Bolek are about to travel abroad by plane.... | code | {
"ground_truth": "{\"inputs\": [\"4 3\\n2 1 1\", \"4 3\\n2 2 2\", \"10 5\\n10 3 3 1 2\", \"10 1\\n10\", \"10 1\\n100\", \"10 2\\n4 7\", \"40 10\\n1 2 3 4 5 6 7 10 10 10\", \"1 1\\n6\", \"1 2\\n10 9\", \"2 1\\n7\", \"2 2\\n7 2\", \"3 2\\n4 7\", \"3 3\\n2 1 1\", \"3 3\\n2 1 1\", \"10 10\\n3 1 2 2 1 1 2 1 2 3\", \"10 2... | rating_<=1200 | {
"id": "218B",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Vasya has an array of integers of length *n*.\n\nVas... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2 5 5 2\", \"5\\n6 3 4 1 5\", \"8\\n4 4 4 2 2 100 100 100\", \"6\\n10 10 50 10 50 50\", \"1\\n1\", \"100\\n45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 4... | rating_>1900 | {
"id": "899E",
"rating": 2000,
"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": "In this problem you have to simulate the workflow of... | code | {
"ground_truth": "{\"inputs\": [\"5 1\\n2 9\\n4 8\\n10 9\\n15 2\\n19 1\", \"4 1\\n2 8\\n4 8\\n10 9\\n15 2\", \"1 1\\n1000000000 1000000000\", \"4 3\\n999999996 1000000000\\n999999997 1000000000\\n999999998 1000000000\\n999999999 1000000000\", \"5 1\\n2 1\\n3 6\\n4 5\\n6 4\\n7 2\", \"10 2\\n4 14\\n5 2\\n6 6\\n7 11\\n... | rating_1601-1900 | {
"id": "644B",
"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": "-----Input-----\n\nThe input contains a single integ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n\", \"1\\n\", \"2\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\", \"9\\n\", \"10\\n\", \"11\\n\", \"12\\n\", \"13\\n\", \"14\\n\", \"15\\n\", \"16\\n\", \"17\\n\", \"18\\n\", \"19\\n\", \"20\\n\", \"21\\n\", \"22\\n\", \"23\\n\", \"24\\n\", \"25\\n\", \"26\\n\", \"27\\n\... | MEDIUM_HARD | {
"id": "taco-train-16408",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "In geometry, a cube is a three-dimensional solid obje... | code | {
"ground_truth": "{\"fn_name\": \"you_are_a_cube\", \"inputs\": [[27], [1], [2], [99], [64]], \"outputs\": [[true], [true], [false], [false], [true]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-14252",
"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": "Little Petya likes to draw. He drew N red and M blue... | code | {
"ground_truth": "{\"inputs\": [\"4 1\\n0 0\\n10 0\\n10 10\\n5 4\\n2 1\\n\", \"5 5\\n5 10\\n6 1\\n8 6\\n-6 -7\\n7 -1\\n5 -1\\n10 -4\\n-10 -8\\n-10 5\\n-2 -8\\n\", \"3 1\\n-1000000000 -1000000000\\n-999999999 1000000000\\n-999999998 -1000000000\\n-1000000000 -999999999\\n\", \"0 0\\n\", \"3 1\\n-999999999 1000000000\... | rating_>1900 | {
"id": "13_D. Triangles",
"rating": 2600,
"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": "This winter is so... well, you've got the idea :-) T... | code | {
"ground_truth": "{\"inputs\": [\"8 3 6\\n1 2 9\\n2 3 7\\n3 4 7\\n4 5 8\\n5 8 2\\n3 6 3\\n2 7 4\\n\", \"6 3 4\\n1 2 1\\n2 3 1\\n3 4 1\\n4 5 2\\n5 6 2\\n\", \"5 1 4\\n1 2 1\\n1 3 4\\n3 4 7\\n3 5 2\\n\", \"6 3 4\\n1 2 1\\n2 3 1\\n3 4 1\\n4 5 1\\n5 6 1\\n\", \"20 5 10\\n8 7 996\\n15 20 761\\n14 16 224\\n17 20 317\\n18 ... | rating_>1900 | {
"id": "150_E. Freezing with Style",
"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": "Write a function \n\n```python\nvowel_2_index```\n\nt... | code | {
"ground_truth": "{\"fn_name\": \"vowel_2_index\", \"inputs\": [[\"this is my string\"], [\"Codewars is the best site in the world\"], [\"Tomorrow is going to be raining\"], [\"\"], [\"90's cornhole Austin, pickled butcher yr messenger bag gastropub next level leggings listicle meditation try-hard Vice. Taxidermy ga... | EASY | {
"id": "taco-train-8530",
"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": "Dreamoon loves summing up something for no reason. O... | code | {
"ground_truth": "{\"inputs\": [\"1 1\\n\", \"2 2\\n\", \"4 1\\n\", \"4 2\\n\", \"4 3\\n\", \"4 4\\n\", \"3 4\\n\", \"2 4\\n\", \"1 4\\n\", \"1000 1000\\n\", \"10000000 10000000\\n\", \"10000000 9999999\\n\", \"2 10000000\\n\", \"10000000 2\\n\", \"9999999 2\\n\", \"9999999 9999999\\n\", \"10000000 10000\\n\", \"100... | MEDIUM_HARD | {
"id": "taco-train-9713",
"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": "Ilya lives in a beautiful city of Chordalsk.\n\nTher... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2 3 2 3\\n\", \"7\\n1 1 3 1 1 1 1\\n\", \"3\\n1 2 1\\n\", \"6\\n1 3 1 3 1 3\\n\", \"5\\n2 1 2 1 2\\n\", \"4\\n1 2 1 2\\n\", \"6\\n1 2 1 2 1 2\\n\", \"10\\n1 5 2 10 9 3 3 2 9 5\\n\", \"8\\n1 2 3 4 5 1 2 3\\n\", \"10\\n8 8 8 3 4 3 1 8 8 8\\n\", \"9\\n1 1 1 1 1 1 2 1 1\\n\", \"10... | rating_<=1200 | {
"id": "1119_A. Ilya and a Colorful Walk",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Ivan is a student at Berland State University (BSU).... | code | {
"ground_truth": "{\"inputs\": [\"2 5 0\\n01001\\n10110\\n\", \"2 5 1\\n01001\\n10110\\n\", \"10 10 0\\n1000000001\\n1000000001\\n1000000001\\n1000000001\\n1000000001\\n1000000001\\n1000000001\\n1000000001\\n1000000001\\n1000000001\\n\", \"1 5 1\\n10001\\n\", \"3 4 0\\n0000\\n0000\\n0000\\n\", \"1 1 5\\n1\\n\", \"1 ... | rating_1601-1900 | {
"id": "946_D. Timetable",
"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": "On one of the planets of Solar system, in Atmosphere... | code | {
"ground_truth": "{\"inputs\": [\"3\\n\", \"2\\n\", \"1\\n\", \"10\\n\", \"29\\n\", \"20\\n\", \"1000000\\n\", \"13\\n\", \"1100\\n\", \"27\\n\", \"18\\n\", \"401230\\n\", \"12\\n\", \"6\\n\", \"26\\n\", \"791899\\n\", \"10228\\n\", \"1200\\n\", \"30\\n\", \"5\\n\", \"14\\n\", \"9\\n\", \"17\\n\", \"28\\n\", \"21\\n... | rating_>1900 | {
"id": "997_C. Sky Full of Stars",
"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": "There is data that records the altitude of mountains... | code | {
"ground_truth": "{\"inputs\": [\"3776.0\\n1819.0\\n645.2\\n2004.1\\n1208.6\", \"3776.5765005393655\\n1819.0\\n645.2\\n2004.1\\n1208.6\", \"3777.502968017379\\n1819.0\\n645.2\\n2004.1\\n1208.6\", \"3778.4165917426626\\n1819.0\\n645.2\\n2004.2183724359945\\n1208.6\", \"3779.3515835085277\\n1819.169376096264\\n645.2\\... | none | {
"id": "p00046 Differential",
"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": "Recently, Norge found a string s = s_1 s_2 … s_n con... | code | {
"ground_truth": "{\"inputs\": [\"7 2\\nabacaba\\na b\\n\", \"10 3\\nsadfaasdda\\nf a d\\n\", \"7 1\\naaaaaaa\\nb\\n\", \"200 13\\nqownuutwuwqnrxxtnlvnqtroztwpnvunynwrzzpsotnrqwxqstxnnzosszovtznquvxwvunpvxqzvyrwxwpxvxnnzzuzarepcqxzrseqqorwpuntzvwqnwuvvuygnpgrrznvootrtcvtxnoowywptwzvwrqwpxusuxqznvoqpnxsrquuzorkxvuwvp... | rating_<=1200 | {
"id": "1272_C. Yet Another Broken Keyboard",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a string str, find the minimum characters to be... | code | {
"ground_truth": "{\"inputs\": [\"str = ABCD\", \"str = ABA\"], \"outputs\": [\"3\", \"0\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-23348",
"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": "Binary Town is holding its biennial elections. All $... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n0.5 1\\n\", \"4 3\\n1 11\\n0.4 1\\n\", \"8 10\\n0.2774 31\\n0.1377 156\\n0.2958 162\\n0.8703 149\\n0.5157 16\\n0.8503 145\\n0.5338 44\\n0.6871 9\\n0.5280 161\\n\"], \"outputs\": [\"2\\n\", \"3\\n\", \"124\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-18471",
"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": "Ksusha is a beginner coder. Today she starts studyin... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 3 5\\n\", \"5\\n2 1 3 1 6\\n\", \"3\\n2 2 4\\n\", \"2\\n6 4\\n\", \"5\\n2 2 2 2 1000000000\\n\", \"5\\n506904227 214303304 136194869 838256937 183952885\\n\", \"2\\n6 10\\n\", \"5\\n10 8 6 4 2\\n\", \"2\\n500000000 1000000000\\n\", \"1\\n1000000000\\n\", \"2\\n4 6\\n\", \"1\\n... | rating_<=1200 | {
"id": "299_A. Ksusha and Array",
"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": "Arkady and his friends love playing checkers on an $... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n\", \"6 5\\n\", \"1000000000 1\\n\", \"1 1\\n\", \"1000000000 81\\n\", \"10000 1\\n\", \"10000 2\\n\", \"10000 3\\n\", \"15 1000\\n\", \"10 200\\n\", \"1000000000 1000\\n\", \"999999998 229\\n\", \"999999999 228\\n\", \"1 2\\n\", \"10000 5\\n\", \"1 10\\n\", \"100 100\\n\", \"... | MEDIUM_HARD | {
"id": "taco-train-23998",
"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": "Kevin Sun has just finished competing in Codeforces ... | code | {
"ground_truth": "{\"inputs\": [\"20 40 60 80 100\\n0 1 2 3 4\\n1 0\\n\", \"119 119 119 119 119\\n0 0 0 0 0\\n10 0\\n\", \"3 6 13 38 60\\n6 10 10 3 8\\n9 9\\n\", \"21 44 11 68 75\\n6 2 4 8 4\\n2 8\\n\", \"16 112 50 114 68\\n1 4 8 4 9\\n19 11\\n\", \"55 66 75 44 47\\n6 0 6 6 10\\n19 0\\n\", \"47 11 88 5 110\\n6 10 4 ... | EASY | {
"id": "taco-train-2960",
"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": "Alice and Bob decided to eat some fruit. In the kitc... | code | {
"ground_truth": "{\"inputs\": [\"1 4\", \"2 2\", \"3 2\", \"2 1\", \"5 3\", \"5 2\", \"8 5\", \"97 101\", \"1 3\", \"1000000000000000000 999999999999999999\", \"55 89\", \"610 987\", \"4181 6765\", \"46368 75025\", \"832040 514229\", \"5702887 9227465\", \"701408733 433494437\", \"956722026041 591286729879\", \"498... | rating_>1900 | {
"id": "585C",
"rating": 2400,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "// We decided to drop the legend about the power soc... | code | {
"ground_truth": "{\"inputs\": [\"1 2\\n3\\n\", \"3 3\\n4 3 3\\n\", \"3 5\\n4 3 4\\n\", \"2 10\\n5 7\\n\", \"10 20\\n6 5 4 8 9 4 3 4 6 6\\n\", \"20 50\\n5 4 6 3 6 3 3 6 4 3 9 10 4 10 7 7 7 8 8 9\\n\", \"100 5000\\n101 168 189 84 24 14 195 139 200 76 73 177 95 9 39 117 32 82 166 37 68 70 123 110 119 129 37 35 200 44 ... | VERY_HARD | {
"id": "taco-test-650",
"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": "Pero is a passionate lover of riddles. The newest ty... | code | {
"ground_truth": "{\"inputs\": [\"aaaa\\n\", \"ab\\n\", \"bbabab\\n\"], \"outputs\": [\"a\\n\", \"-1\\n\", \"bba\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-11037",
"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": "collections.Counter() \n\n A counter is a container ... | code | {
"ground_truth": "{\"inputs\": [\"10\\n2 3 4 5 6 8 7 6 5 18\\n6\\n6 55\\n6 45\\n6 55\\n4 40\\n18 60\\n10 50\\n\"], \"outputs\": [\"200\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-19743",
"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 set of integers from 1 to N. Count t... | code | {
"ground_truth": "{\"inputs\": [\"2 1000000007\", \"83 1000000007\", \"87 1000000007\", \"2 10\", \"3 1000000007\"], \"outputs\": [\"5\", \"5\", \"446143882\", \"953847398\", \"18\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-24556",
"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": "**Debug** a function called calculate that takes 3 va... | code | {
"ground_truth": "{\"fn_name\": \"calculate\", \"inputs\": [[2, \"+\", 4], [6, \"-\", 1.5], [-4, \"*\", 8], [49, \"/\", -7], [8, \"m\", 2], [4, \"/\", 0], [3.2, \"+\", 8], [3.2, \"-\", 8], [3.2, \"/\", 8], [3.2, \"*\", 8], [-3, \"+\", 0], [-3, \"-\", 0], [-3, \"/\", 0], [-2, \"/\", -2], [-2, \"codewars\", -2], [-3, ... | EASY | {
"id": "taco-train-4545",
"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 tree consisting of n vertices. A tre... | code | {
"ground_truth": "{\"inputs\": [\"9\\n0 1 1 1 0 0 0 0 1\\n1 2\\n1 3\\n3 4\\n3 5\\n2 6\\n4 7\\n6 8\\n5 9\\n\", \"4\\n0 0 1 0\\n1 2\\n1 3\\n1 4\\n\", \"8\\n9 4 1 7 10 1 6 5\\n1 2\\n2 3\\n1 4\\n1 5\\n5 6\\n5 7\\n5 8\\n\", \"1\\n1337\\n\", \"2\\n12345 65432\\n2 1\\n\", \"8\\n9 4 1 7 10 1 6 5\\n1 2\\n2 3\\n1 4\\n1 5\\n2 ... | rating_1601-1900 | {
"id": "1324_F. Maximum White Subtree",
"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 are given a deck of n cards numbered from 1 to n... | code | {
"ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"6\\n6 5 4 3 2 1\\n\", \"4\\n3 1 2 4\\n\", \"44\\n1 32 3 18 5 41 27 26 9 10 11 31 13 14 19 35 17 4 22 40 21 15 24 23 44 8 7 43 29 30 37 2 33 34 28 36 12 38 39 20 6 42 16 25\\n\", \"51\\n51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 ... | rating_>1900 | {
"id": "1427_D. Unshuffling a Deck",
"rating": 2000,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "We define the sequence ```SF``` in the following way ... | code | {
"ground_truth": "{\"fn_name\": \"find_mult10_SF\", \"inputs\": [[1], [2], [3]], \"outputs\": [[60], [70080], [90700800]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-12705",
"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": "Problem\n\nGiven the strings $ s $, $ t $.\nFirst, l... | code | {
"ground_truth": "{\"inputs\": [\"abaabbabaabaabbabbabaabbab\\nab\", \"AABABCAC\\nA\", \"AbCdEfG\\naBcDeFg\", \"abaabbabaab`abbabbabaabbab\\nab\", \"AABABCAC\\nB\", \"AbCdEfG\\naBcDeFh\", \"abaabbbbaab`abbabbabaabaab\\nab\", \"AACABCAC\\nB\", \"AbGdEfC\\naBcDeFh\", \"abaabbbbaab`abbabbabaabaab\\n`b\", \"AACABCAC\\nC... | none | {
"id": "p02127 AABABCAC",
"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": "Berland is going through tough times — the dirt pric... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 100 101\\n2\\n\", \"5\\n-4 -2 10 -9 -10\\n2\\n\", \"4\\n5 -7 8 1\\n2\\n\", \"100\\n-608 705 341 641 -64 309 -990 319 -240 -350 -570 813 537 -296 -388 131 187 98 573 -572 484 -774 176 -906 -579 -991 434 -248 1000 803 -619 504 -566 898 58 337 -505 356 265 -201 -868 -752 236 804 ... | rating_>1900 | {
"id": "371_E. Subway Innovation",
"rating": 2000,
"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": "Mid semester exams are approaching and 'IDC' wants t... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4\\n24 13 89 37\\n6\\n7 30 41 14 39 42\\n\\nSAMPLE\", \"100\\n11\\n81 79 91 64 24 32 75 29 51 26 62\\n15\\n51 3 37 48 8 14 97 73 9 46 93 64 25 26 43\\n10\\n11 85 50 43 77 67 19 9 94 0\\n13\\n21 80 74 15 31 29 4 32 38 18 81 63 28\\n8\\n57 92 4 35 36 73 98 76\\n2\\n50 95\\n2\\n59 ... | none | {
"id": "mst-and-idc",
"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": "Finished her homework, Nastya decided to play comput... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n\", \"4 2\\n\", \"5 1\\n\", \"64 49\\n\", \"24 6\\n\", \"91 39\\n\", \"87 87\\n\", \"72 36\\n\", \"4237 4112\\n\", \"1815 1371\\n\", \"5000 1628\\n\", \"5000 3531\\n\", \"5000 2895\\n\", \"5000 539\\n\", \"5000 3576\\n\", \"3474 3427\\n\", \"3400 1203\\n\", \"4345 1015\\n\", \... | EASY | {
"id": "taco-train-16011",
"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 string s.\nAmong the different subst... | code | {
"ground_truth": "{\"inputs\": [\"aba\\n4\\n\", \"atcoderandatcodeer\\n5\\n\", \"z\\n1\\n\", \"aba\\n5\", \"y\\n1\", \"aba\\n1\", \"{\\n1\", \"|\\n1\", \"bba\\n4\", \"atcoderandatcodeer\\n2\", \"aab\\n5\", \"cba\\n4\", \"atcoderandatcodeer\\n4\", \"aca\\n2\", \"atcoderandatcodeer\\n3\", \"ada\\n2\", \"ada\\n4\", \"c... | EASY | {
"id": "taco-train-5519",
"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": "Alexander is learning how to convert numbers from th... | code | {
"ground_truth": "{\"inputs\": [\"16\\n11311\\n\", \"17\\n2016\\n\", \"13\\n12\\n\", \"20\\n999\\n\", \"7014809\\n73084644\\n\", \"7501\\n2542549323761022905\\n\", \"9\\n78\\n\", \"11\\n1107835458761401923\\n\", \"378135456\\n42831383491941211\\n\", \"3\\n1210020121011022121222022012121212020\\n\", \"23\\n1200762291... | rating_>1900 | {
"id": "758_D. Ability To Convert",
"rating": 2000,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The sequence of integers a_1, a_2, ..., a_k is calle... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 1 1 1\\n\", \"3\\n2 1 1\\n\", \"1\\n1\\n\", \"1\\n0\\n\", \"1\\n2\\n\", \"4\\n1 1 2 1\\n\", \"3\\n2 2 1\\n\", \"4\\n1 0 2 1\\n\", \"4\\n-2 1 5 0\\n\", \"1\\n-1\\n\", \"1\\n3\\n\", \"1\\n4\\n\", \"4\\n1 0 1 1\\n\", \"3\\n0 2 1\\n\", \"1\\n-2\\n\", \"1\\n6\\n\", \"3\\n0 4 1\\n\"... | rating_1601-1900 | {
"id": "1000_D. Yet Another Problem On a Subsequence",
"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": "You have a laser with P amount of energy in it. You ... | code | {
"ground_truth": "{\"inputs\": [[\"1\", \"200\", \"100\"]], \"outputs\": [[\"0\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-8392",
"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": "Japanese video game company has developed the music ... | code | {
"ground_truth": "{\"inputs\": [\"1\\n12\\n123\\n369\\n6748\\n4247219123\\n1232123212321232\", \"1\\n12\\n123\\n369\\n6748\\n4247219123\\n1232123212321232\\n#\", \"1\\n2\\n123\\n369\\n6748\\n4247219123\\n1232123212321232\", \"1\\n12\\n123\\n369\\n2355\\n868736334\\n1232123212321232\\n#\", \"1\\n12\\n154\\n369\\n6748... | none | {
"id": "p01360 Step Step Evolution",
"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": "In this Kata you are a game developer and have progra... | code | {
"ground_truth": "{\"fn_name\": \"xp_to_target_lvl\", \"inputs\": [[0, 5], [12345, 17], [313, 2], [832696988485, 170], [769832696988484, 170], [10395, 11], [31428, \"47\"], [1, 171], [7392984749, 900], [123, 0], [-987654321, 99], [999999, [101]], [10396, 11], [0, 1], [2017, 4], [769832696988485, 170]], \"outputs\": ... | EASY | {
"id": "taco-train-8110",
"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": "Have you ever played Hanabi? If not, then you've got... | code | {
"ground_truth": "{\"inputs\": [\"2\\nG3 G3\\n\", \"4\\nG4 R4 R3 B3\\n\", \"5\\nB1 Y1 W1 G1 R1\\n\", \"10\\nY4 B1 R3 G5 R5 W3 W5 W2 R1 Y1\\n\", \"3\\nG4 G3 B4\\n\", \"2\\nW3 Y5\\n\", \"2\\nW5 Y5\\n\", \"100\\nW4 Y1 W5 R4 W3 Y1 R4 W2 G3 G1 B5 Y5 Y2 Y3 G4 B5 W1 G5 Y5 Y3 G2 Y5 Y5 G5 R2 B3 B1 W5 Y1 W5 B4 W4 R4 B1 R1 W3 ... | MEDIUM_HARD | {
"id": "taco-train-10017",
"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": "An ironman triathlon is a race where participants sw... | code | {
"ground_truth": "{\"inputs\": [\"0 0 0 100\\n2\\n50\\n5 1\\n\", \"0 0 100 100\\n2\\n50\\n1 5\\n\"], \"outputs\": [\"60\\n\", \"71.5697725691\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-20501",
"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 an integer n and draws a... | code | {
"ground_truth": "{\"inputs\": [\"2\", \"1\", \"4\", \"0\", \"6\", \"3\", \"5\", \"3\", \"0\", \"4\", \"6\", \"5\"], \"outputs\": [\"0.00000000 0.00000000\\n11.11111111 0.00000000\\n16.66666667 9.62250449\\n22.22222222 0.00000000\\n33.33333333 0.00000000\\n38.88888889 9.62250449\\n33.33333333 19.24500897\\n44.444444... | none | {
"id": "p02273 Koch Curve",
"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": "The stardate is 1977 and the science and art of dete... | code | {
"ground_truth": "{\"inputs\": [\"4\\nXOOO\\nXXOO\\nOOOO\\nXXXX\\nXOOO\\nXOOO\\nXOXO\\nXOXX\", \"2\\nXX\\nOO\\nXO\\nOX\", \"1\\nO\\nO\", \"1\\nX\\nO\", \"2\\nOX\\nXX\\nOX\\nXX\", \"2\\nOX\\nXO\\nXO\\nOX\", \"2\\nOX\\nOX\\nXX\\nOX\", \"2\\nOO\\nOO\\nOO\\nOO\", \"2\\nOX\\nOX\\nXO\\nXO\", \"10\\nXXXOOOOXOX\\nOOOXXXOXXO... | rating_1201-1400 | {
"id": "958A1",
"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": "Arild just turned $1$ year old, and is currently lea... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2 3 mumble 5\\n\", \"8\\n1 2 3 mumble mumble 7 mumble 8\\n\", \"3\\nmumble mumble mumble\\n\"], \"outputs\": [\"makes sense\\n\", \"something is fishy\\n\", \"makes sense\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-25261",
"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": "A step array is an array of integers where each eleme... | code | {
"ground_truth": "{\"fn_name\": \"search\", \"inputs\": [\"arr[ ] = {4, 5, 6, 7, 6}, K = 1 \\r\\n and X = 6\", \"arr[ ] = {20 40 50}, K = 20 \\r\\n and X = 70\"], \"outputs\": [\"2\", \"-1\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-19790",
"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": "Emily's birthday is next week and Jack has decided t... | code | {
"ground_truth": "{\"inputs\": [\"7 4\\n4 2 3 1 2 4 3\\n\", \"4 3\\n2 1 3 1\\n\", \"100 10\\n7 4 5 5 10 10 5 8 5 7 4 5 4 6 8 8 2 6 3 3 10 7 10 8 6 2 7 3 9 7 7 2 4 5 2 4 9 5 10 1 10 5 10 4 1 3 4 2 6 9 9 9 10 6 2 5 6 1 8 10 4 10 3 4 10 5 5 4 10 4 5 3 7 10 2 7 3 6 9 6 1 6 5 5 4 6 6 4 4 1 5 1 6 6 6 8 8 6 2 6\\n\", \"3 2... | rating_<=1200 | {
"id": "609_B. The Best Gift",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There are *n* cities and *n*<=-<=1 roads in the Seve... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 2\\n1 3\\n2 4\", \"5\\n1 2\\n1 3\\n3 4\\n2 5\", \"70\\n1 25\\n57 1\\n18 1\\n65 1\\n38 1\\n1 41\\n1 5\\n1 69\\n1 3\\n31 1\\n1 8\\n1 9\\n53 1\\n70 1\\n45 1\\n1 24\\n1 42\\n1 30\\n1 12\\n1 37\\n64 1\\n1 28\\n1 58\\n1 22\\n11 1\\n1 4\\n1 27\\n1 16\\n1 21\\n54 1\\n1 51\\n1 43\\n29 ... | rating_1401-1600 | {
"id": "839C",
"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": "Note the unusual memory limit for the problem.\n\nPe... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 2 3 4\\n2 3 4 1\\n3 4 1 2\\n4 1 2 3\\n5 8 7 1\\n6 9 81 3\\n55 78 1 6\\n1 1 1 1\\n\", \"6\\n41 18467 6334 26500 19169 15724\\n11478 29358 26962 24464 5705 28145\\n23281 16827 9961 491 2995 11942\\n4827 5436 32391 14604 3902 153\\n292 12382 17421 18716 19718 19895\\n5447 21726 1... | rating_>1900 | {
"id": "575_C. Party",
"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 ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given four integers $a$, $b$, $x$ and $y$. I... | code | {
"ground_truth": "{\"inputs\": [\"7\\n10 10 8 5 3\\n12 8 8 7 2\\n12343 43 4543 39 123212\\n1000000000 1000000000 1 1 1\\n1000000000 1000000000 1 1 1000000000\\n10 11 2 1 5\\n10 11 9 1 10\\n\", \"1\\n10 10 8 5 3\\n\", \"11\\n10 10 8 5 3\\n10 10 8 5 3\\n10 10 8 5 3\\n10 10 8 5 3\\n10 10 8 5 3\\n10 10 8 5 3\\n10 10 8 5... | EASY | {
"id": "taco-train-19402",
"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 string s consisting only a,b,c. return the numb... | code | {
"ground_truth": "{\"inputs\": [\"abcabc\", \"aaacb\"], \"outputs\": [\"10\", \"3\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-24027",
"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 array a consisting of n integers. W... | code | {
"ground_truth": "{\"inputs\": [\"10\\n1 2 3 4 1 2 3 1 2 3\\n\", \"12\\n1 2 3 4 3 4 2 1 3 4 2 1\\n\", \"9\\n1 2 2 2 1 1 2 2 2\\n\", \"100\\n79 79 79 97 97 97 64 64 64 2 2 2 38 38 38 65 65 65 10 10 10 25 25 25 53 53 53 73 73 73 11 11 11 29 29 29 93 93 93 73 73 73 89 89 89 72 72 72 49 49 49 78 78 78 92 92 92 90 90 90 ... | rating_>1900 | {
"id": "1418_G. Three Occurrences",
"rating": 2500,
"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": "Ohana Matsumae is trying to clean a room, which is d... | code | {
"ground_truth": "{\"inputs\": [\"4\\n0101\\n1000\\n1111\\n0101\", \"3\\n111\\n111\\n111\", \"10\\n0100000000\\n0000000000\\n0000000000\\n0000000000\\n0000000000\\n0000000000\\n0000000000\\n0000000000\\n0000000000\\n0000000000\", \"1\\n1\", \"10\\n0111010011\\n0111010011\\n1010010001\\n0111010011\\n0000110000\\n0111... | rating_<=1200 | {
"id": "554B",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Gorodetskiy is a university student. He is really go... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"3\", \"6\"]], \"outputs\": [[\"2\", \"4\", \"6\", \"5\", \"7\", \"8\", \"9\", \"10\", \"12\"]]}",
"style": "rule"
} | HARD | {
"id": "taco-train-4251",
"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": "The executive chef is trying to bring some competiti... | code | {
"ground_truth": "{\"inputs\": [\"5\\n2 3\\n1 7\\n5 5\\n3 1\\n8 15\", \"5\\n2 3\\n1 7\\n4 5\\n3 1\\n8 15\", \"5\\n2 3\\n1 7\\n4 6\\n4 1\\n8 15\", \"5\\n1 3\\n1 7\\n4 6\\n4 1\\n8 25\", \"5\\n1 3\\n1 8\\n12 6\\n4 1\\n5 25\", \"5\\n1 3\\n1 8\\n12 6\\n4 0\\n5 25\", \"5\\n1 3\\n1 8\\n12 11\\n4 0\\n5 25\", \"5\\n0 3\\n0 2... | MEDIUM | {
"id": "taco-train-6429",
"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": "You are given a sequence *a* consisting of *n* integ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 -2 0\", \"6\\n16 23 16 15 42 8\", \"1\\n-1\", \"100\\n-100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -100 -10... | rating_<=1200 | {
"id": "946A",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are living on an infinite plane with the Cartesi... | code | {
"ground_truth": "{\"inputs\": [\"3\\n4\\n0 -2\\n1 0\\n-1 0\\n0 2\\n3\\n0 2\\n-3 0\\n0 -1\\n1\\n0 0\\n\", \"2\\n3\\n-2 0\\n0 -5\\n0 -1\\n3\\n3 0\\n-2 0\\n0 1\\n\", \"2\\n3\\n-6 0\\n6 0\\n0 -7\\n3\\n0 -6\\n1 0\\n0 3\\n\", \"1\\n4\\n0 -1\\n0 -2\\n0 -3\\n0 -4\\n\"], \"outputs\": [\"12\\n12\\n0\\n\", \"14\\n12\\n\", \"3... | EASY | {
"id": "taco-train-138",
"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": "Having two standards for a keypad layout is inconveni... | code | {
"ground_truth": "{\"fn_name\": \"computer_to_phone\", \"inputs\": [[\"0789456123\"], [\"000\"], [\"94561\"], [\"\"], [\"919\"]], \"outputs\": [[\"0123456789\"], [\"000\"], [\"34567\"], [\"\"], [\"373\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-17492",
"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": "Welcoming autumn evening is the best for walking alo... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 2 4\\n4 3 4\\n3 6 4\", \"3\\n1 1 10\\n5 8 2\\n9 9 10\", \"10\\n574159 311905 962312\\n419776 161298 821630\\n659552 209764 24964\\n780839 173140 729956\\n948170 866093 684140\\n491331 794924 114469\\n650256 734793 255253\\n212264 188561 695744\\n751383 98389 133342\\n305528 97... | none | {
"id": "589_d",
"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": "Consider a series of numbers composed of only digits ... | code | {
"ground_truth": "{\"inputs\": [\"N = \\\"7\\\"\", \"N = \\\"444\\\"\"], \"outputs\": [\"2\", \"7\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-11441",
"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": "There is a rectangular grid of size $n \\times m$. E... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 2\\n01\\nRL\\n3 3\\n001\\n101\\n110\\nRLL\\nDLD\\nULL\\n3 3\\n000\\n000\\n000\\nRRD\\nRLD\\nULL\\n\", \"3\\n1 2\\n01\\nRL\\n3 3\\n000\\n101\\n110\\nRLL\\nDLD\\nULL\\n3 3\\n000\\n000\\n000\\nRRD\\nRLD\\nULL\\n\", \"3\\n1 2\\n01\\nRL\\n3 3\\n011\\n101\\n110\\nRLL\\nDLD\\nULL\\n3... | EASY | {
"id": "taco-train-22434",
"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": "Check Tutorial tab to know how to to solve. \n\nYou... | code | {
"ground_truth": "{\"inputs\": [\"100,000,000.000\\n\"], \"outputs\": [\"100\\n000\\n000\\n000\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-14705",
"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 three coordinate points A, B and C, find the mi... | code | {
"ground_truth": "{\"inputs\": [\"A = (3, 2)\\nB = (3, 4)\\nc = (2, 2)\"], \"outputs\": [\"2.000000 0.000000\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-15605",
"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": "Chef is given a number in form of its binary represe... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1\\n1\\n4\\n1001\\n5\\n11001\\n7\\n1101101\\n\"], \"outputs\": [\"NO\\nYES\\nYES\\nNO\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-11098",
"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 cities in Westeros. The i-th city is inh... | code | {
"ground_truth": "{\"inputs\": [\"3 1\\n1 2 1\\n\", \"3 1\\n2 2 1\\n\", \"6 3\\n5 20 12 7 14 101\\n\", \"6 3\\n346 118 330 1403 5244 480\\n\", \"7 4\\n11 3532 99 3512 12 8 22\\n\", \"9 4\\n2 6 8 1 2 4 2 8 2\\n\", \"8 2\\n1 3 22 45 21 132 78 901\\n\", \"1 1\\n912959\\n\", \"1 1\\n107540\\n\", \"2 2\\n67427 727097\\n\... | HARD | {
"id": "taco-test-877",
"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": "You visit a doctor on a date given in the format $yy... | code | {
"ground_truth": "{\"inputs\": [[\"1\", \"2019:03:31\"]], \"outputs\": [[\"1\"]]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-22190",
"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\": [\"5\\n5 3\\n-1 -1 -1 -1 -1\\n4 5\\n1 2 3 5\\n3 2\\n1 -1 2\\n4 2\\n1 -1 -1 1\\n6 4\\n-1 -1 4 -1 2 -1\"], \"outputs\": [\"YES\\n1 2 1 2 1\\nYES\\n1 2 3 5\\nNO\\nNO\\nYES\\n1 2 4 1 2 1\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-858",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There is a train going from Station A to Station B t... | code | {
"ground_truth": "{\"inputs\": [\"81 58\", \"4 54\", \"35 58\", \"3 54\", \"68 58\", \"3 34\", \"88 58\", \"5 34\", \"88 51\", \"5 0\", \"88 27\", \"5 -1\", \"51 11\", \"51 1\", \"2 -2\", \"95 1\", \"2 -4\", \"54 1\", \"4 -1\", \"47 0\", \"7 -1\", \"47 -1\", \"10 -1\", \"77 1\", \"15 -1\", \"134 1\", \"28 -1\", \"13... | none | {
"id": "p03219 AtCoder Beginner Contest 113 - Discount Fare",
"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 a judge of a programming contest. You are pr... | code | {
"ground_truth": "{\"inputs\": [\"3 3 3\\n1 2 3\\n2 3 3\\n1 3 8\\n12 12 2010\\n1 2 0\\n2 3 3000\\n3 4 0\\n4 5 3000\\n5 6 3000\\n6 12 2010\\n2 7 100\\n7 8 200\\n8 9 300\\n9 10 400\\n10 11 500\\n11 6 512\\n10 18 1\\n1 2 9\\n1 3 2\\n1 4 6\\n2 5 0\\n2 6 10\\n2 7 2\\n3 5 10\\n3 6 3\\n3 7 10\\n4 7 6\\n5 8 10\\n6 8 2\\n6 9... | none | {
"id": "p00890 Test Case Tweaking",
"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": "In recent years John has very successfully settled a... | code | {
"ground_truth": "{\"inputs\": [\"9 1 10 9 2 9\\n\", \"8 1 10 2 6 5\\n\", \"8 1 10 2 6 4\\n\", \"20 15 25 3 5 7\\n\", \"39438548848582980 11012410395558518 55950951412984721 44 535353 28994364452506991\\n\", \"512151145295769976 499588189546311526 513794826978301613 1000000000000000000 504656 89379401\\n\", \"500513... | rating_>1900 | {
"id": "1461_E. Water Level",
"rating": 2200,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Consider a regular Codeforces round consisting of th... | code | {
"ground_truth": "{\"inputs\": [\"4\\n0 0 119\\n-3 -17 -42\\n0 7 0\\n51 0 0\\n\", \"4\\n120 120 1\\n61 61 120\\n-61 61 120\\n0 0 0\\n\", \"1\\n0 0 0\\n\", \"2\\n105 17 57\\n63 93 42\\n\", \"37\\n0 0 0\\n0 0 -36\\n71 0 0\\n0 0 56\\n39 0 0\\n-18 -4 0\\n0 0 94\\n0 0 83\\n101 0 99\\n74 39 72\\n-116 0 0\\n58 38 88\\n-1 0... | rating_>1900 | {
"id": "662_E. To Hack or not to Hack",
"rating": 3100,
"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.