data_source stringclasses 3
values | prompt listlengths 2 2 | ability stringclasses 1
value | reward_model dict | sub_source stringclasses 12
values | extra_info dict |
|---|---|---|---|---|---|
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "E869120's and square1001's 16-th birthday is coming ... | code | {
"ground_truth": "{\"inputs\": [\"5 4\\n\", \"8 8\\n\", \"11 4\\n\", \"1 1\\n\", \"15 1\\n\", \"1 15\\n\", \"4 9\\n\", \"6 7\\n\", \"2 3\\n\", \"9 1\\n\", \"11 6\", \"0 8\", \"5 1\", \"11 5\", \"0 9\", \"8 1\", \"13 5\", \"0 18\", \"8 0\", \"18 5\", \"0 17\", \"14 1\", \"18 8\", \"0 31\", \"14 2\", \"18 4\", \"-1 31... | EASY | {
"id": "taco-train-20223",
"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": "Demodogs from the Upside-down have attacked Hawkins ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2\\n3\\n50\\n1000000000\\n\"], \"outputs\": [\"14154\\n44484\\n171010650\\n999589541\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-15344",
"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": "Polycarp has a poor memory. Each day he can remember... | code | {
"ground_truth": "{\"inputs\": [\"6\\nlollipops\\nstringology\\nabracadabra\\ncodeforces\\ntest\\nf\\n\", \"1\\nvdjisjifreo\\n\"], \"outputs\": [\"2\\n4\\n3\\n4\\n1\\n1\\n\", \"4\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-16174",
"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 N bits to an OR - Gate find the output that wil... | code | {
"ground_truth": "{\"inputs\": [\"N = 4\\r\\narr:1 1 1 0\", \"N = 4\\r\\narr:0 0 1 0\"], \"outputs\": [\"1\", \"1\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-13056",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There is a rectangle in the xy-plane, with its lower... | code | {
"ground_truth": "{\"inputs\": [\"5 4 3\\n2 1 1\\n3 3 4\\n1 4 2\", \"5 4 2\\n2 1 1\\n3 3 4\", \"10 10 5\\n1 6 1\\n4 1 3\\n6 9 4\\n9 4 2\\n3 1 3\", \"5 4 3\\n2 1 1\\n3 6 4\\n1 4 2\", \"5 4 2\\n2 1 1\\n6 3 4\", \"5 4 2\\n2 1 2\\n6 3 4\", \"10 10 5\\n1 6 1\\n4 1 1\\n6 9 4\\n9 4 2\\n3 1 4\", \"5 4 1\\n2 1 2\\n6 3 4\", \... | none | {
"id": "p03944 AtCoder Beginner Contest 047 - Snuke's Coloring 2 (ABC Edit)",
"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": "\"Search\" is an operation to obtain the desired inf... | code | {
"ground_truth": "{\"inputs\": [\"7\\n11\\n15\\n23\\n36\\n51\\n61\\n86\\n51\\n4\\n1\\n2\\n3\\n5\\n4\\n0\", \"7\\n11\\n15\\n0\\n36\\n51\\n61\\n86\\n51\\n4\\n1\\n2\\n3\\n5\\n4\\n0\", \"7\\n11\\n15\\n0\\n42\\n51\\n61\\n86\\n51\\n4\\n1\\n2\\n4\\n5\\n4\\n0\", \"7\\n11\\n8\\n-2\\n53\\n51\\n17\\n109\\n42\\n4\\n1\\n0\\n3\\n... | none | {
"id": "p00188 Search",
"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": "And where the are the phone numbers?\n\nYou are give... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\nabc\\n\", \"2 3\\nba\\n\", \"3 2\\nabc\\n\", \"3 3\\nayy\\n\", \"3 1\\nazz\\n\", \"10 9\\nbcegikmyyy\\n\", \"1 3\\nf\\n\", \"3 99948\\nttt\\n\", \"5 10\\nkekff\\n\", \"10 3\\nggjnohlepu\\n\", \"8 8\\nlolololo\\n\", \"10 2\\nkmiejhcimj\\n\", \"8 9\\npppppppp\\n\", \"10 5\\nhqqq... | rating_1401-1600 | {
"id": "940_C. Phone Numbers",
"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": "Two players play a game. The game is played on a rec... | code | {
"ground_truth": "{\"inputs\": [\"6 5 4 3 2 1\\n\", \"10 10 1 1 10 10\\n\", \"1 6 1 2 1 6\\n\", \"24 32 6 2 7 4\\n\", \"45 62 28 48 28 50\\n\", \"100 32 71 12 71 22\\n\", \"57 85 29 40 29 69\\n\", \"95 28 50 12 50 13\\n\", \"5 4 1 1 5 4\\n\", \"100 100 1 1 100 100\\n\", \"51 76 50 5 45 76\\n\", \"37 100 33 13 32 30\... | rating_>1900 | {
"id": "176_C. Playing with Superglue",
"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": "Given a square array of integers A, we want the minim... | code | {
"ground_truth": "{\"fn_name\": \"minFallingPathSum\", \"inputs\": [[[[1, 2, 3], [4, 5, 6], [7, 8, 9], [], []]]], \"outputs\": [12]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-23811",
"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": "Write a program which reads a sequence of $n$ intege... | code | {
"ground_truth": "{\"inputs\": [\"5\\n10 1 5 4 17\", \"5\\n13 1 5 4 17\", \"5\\n13 1 5 7 17\", \"5\\n13 0 5 7 17\", \"5\\n13 0 7 7 17\", \"5\\n23 0 7 7 17\", \"5\\n23 0 0 7 17\", \"5\\n23 0 0 4 17\", \"5\\n43 0 0 4 17\", \"5\\n43 0 0 4 18\", \"5\\n43 0 -1 4 18\", \"5\\n43 0 -1 4 17\", \"5\\n43 0 -1 4 0\", \"5\\n43 1... | none | {
"id": "p02402 Min",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "In the Bus of Characters there are $n$ rows of seat,... | code | {
"ground_truth": "{\"inputs\": [\"2\\n3 1\\n0011\\n\", \"6\\n10 8 9 11 13 5\\n010010011101\\n\", \"1\\n1\\n01\\n\", \"1\\n1000000\\n01\\n\", \"2\\n1 1000000\\n0011\\n\", \"2\\n1000000000 1\\n0101\\n\", \"2\\n1000000000 999999999\\n0011\\n\", \"10\\n24 53 10 99 83 9 15 62 33 47\\n00100000000111111111\\n\", \"2\\n1000... | EASY | {
"id": "taco-train-19232",
"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": "Meka-Naruto plays a computer game. His character has... | code | {
"ground_truth": "{\"inputs\": [\"7\\n1 1 1 1\\n2 2 2 2\\n1 2 3 4\\n4 3 2 1\\n228 21 11 3\\n239 21 11 3\\n1000000 1 1000000 1\\n\", \"4\\n568133 729913 934882 371491\\n916127 997180 932938 203988\\n112133 793452 857041 842130\\n572010 190716 396183 683429\\n\", \"2\\n395916 225366 921987 169483\\n604656 668976 45950... | rating_>1900 | {
"id": "1413_E. Solo mid Oracle",
"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": "You are given an array $a$ of length $n$. The array ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n3\\n-1 0 1\\n5\\n1 -2 -2 1 -3\\n6\\n0 0 0 0 0 0\\n4\\n-1 2 -3 4\\n\", \"1\\n4\\n-3 -1 1 1\\n\", \"1\\n4\\n-1 -4 2 3\\n\", \"1\\n3\\n0 65536 65536\\n\", \"1\\n4\\n7 7 7 -21\\n\", \"1\\n4\\n3 -3 -3 9\\n\"], \"outputs\": [\"YES\\nNO\\nYES\\nNO\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\"... | EASY | {
"id": "taco-train-11242",
"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": "Makes solves problems on Decoforces and lots of othe... | code | {
"ground_truth": "{\"inputs\": [\"4 20\\n10 3 6 3\\n\", \"3 3\\n2 1 9\\n\", \"1 2\\n9\\n\", \"7 6\\n4 20 16 14 3 17 4\\n\", \"1 1\\n1000000000\\n\", \"4 2\\n45 44 35 38\\n\", \"2 1\\n4 1000000000\\n\", \"2 1\\n1 4\\n\", \"100 10\\n246 286 693 607 87 612 909 312 621 37 801 558 504 914 416 762 187 974 976 123 635 488 ... | rating_1401-1600 | {
"id": "825_C. Multi-judge Solving",
"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": "You are given a string s of length n, which consists... | code | {
"ground_truth": "{\"inputs\": [\"9 4\\nABCABCABC\\n\", \"9 3\\nACAABCCAB\\n\", \"3 2\\nBBB\\n\", \"1 4\\nD\\n\", \"6 3\\nABBCCC\\n\", \"3 5\\nABC\\n\", \"5 3\\nAABBC\\n\", \"22 1\\nAAAAAAAAAAAAAAAAAAAAAA\\n\", \"1 1\\nA\\n\", \"2 2\\nBA\\n\", \"3 3\\nCBA\\n\", \"7 2\\nAABBBBB\\n\", \"76 26\\nABCDEFGHIJKLMNOPQRSTUVW... | rating_<=1200 | {
"id": "1038_A. Equality",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Geek's Paint Shop is one of the famous shop in Geekla... | code | {
"ground_truth": "{\"inputs\": [\"N = 3\\r\\nA[] =\\r\\n[\\\"2234597891 zmxvvxbcij 8800654113 jihgfedcba\\\",\\r\\n\\\"1234567891 abcdefghij 9876543219 jihgfedcba\\\",\\r\\n\\\"2234597891 zmxvvxbcij 8800654113 jihgfedcba\\\"]\", \"N = 2\\r\\nA[] =\\r\\n[\\\"3122049353 onafrnbhtr 9822827304 yzfhdgzcvx\\\", \\r\\n\\\"... | EASY | {
"id": "taco-train-23418",
"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": "Yaroslav has an array that consists of *n* integers.... | code | {
"ground_truth": "{\"inputs\": [\"1\\n1\", \"3\\n1 1 2\", \"4\\n7 7 7 7\", \"4\\n479 170 465 146\", \"5\\n996 437 605 996 293\", \"6\\n727 539 896 668 36 896\", \"7\\n674 712 674 674 674 674 674\", \"8\\n742 742 742 742 742 289 742 742\", \"9\\n730 351 806 806 806 630 85 757 967\", \"10\\n324 539 83 440 834 640 440 ... | rating_<=1200 | {
"id": "296A",
"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": "Dasha decided to have a rest after solving the probl... | code | {
"ground_truth": "{\"inputs\": [\"7\\n1 2\\n1 3\\n2 4\\n2 5\\n3 6\\n3 7\", \"6\\n1 2\\n2 3\\n2 4\\n2 5\\n2 6\", \"4\\n1 2\\n2 3\\n3 4\", \"10\\n2 9\\n9 3\\n3 10\\n9 4\\n9 6\\n9 5\\n2 7\\n2 1\\n2 8\", \"10\\n2 5\\n5 6\\n6 1\\n6 7\\n6 8\\n5 10\\n5 3\\n2 9\\n2 4\", \"8\\n7 8\\n8 2\\n2 4\\n8 6\\n8 5\\n7 3\\n7 1\", \"10\... | rating_>1900 | {
"id": "761E",
"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": "Bear Limak prepares problems for a programming compe... | code | {
"ground_truth": "{\"inputs\": [\"5\\nLIMAK\\n\", \"20\\nVKVKVVVKVOVKVQKKKVVK\\n\", \"7\\nVVKEVKK\\n\", \"4\\nVKVK\\n\", \"5\\nBVVKV\\n\", \"75\\nZXPZMAKZZZZZZAZXAZAAPOAFAZUZZAZABQZZAZZBZAAAZZFANYAAZZZZAZHZARACAAZAZDPCAVZ\\n\", \"75\\nVVVVVKVKVVKKEVVVVVAKVKKZKVVPKKZKAVKVAKVMZKZVUVKKIVVZVVVKVKZVVVVKKVKVZZVOVKV\\n\", ... | rating_>1900 | {
"id": "791_E. Bear and Company",
"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 a grid with n rows and m columns. Every cel... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n\", \"4 3\\n\", \"2020 2021\\n\", \"4 4\\n\", \"1000 1000\\n\", \"10 19\\n\", \"3 3\\n\", \"8 8\\n\", \"2019 2018\\n\", \"4 1\\n\", \"3 1\\n\", \"1848 1937\\n\", \"2000 2000\\n\", \"2 1\\n\", \"4 2\\n\", \"2021 2\\n\", \"9 9\\n\", \"101 100\\n\", \"7 7\\n\", \"999 2013\\n\", \... | rating_>1900 | {
"id": "1503_E. 2-Coloring",
"rating": 3100,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an integer, take the (mean) average of each pai... | code | {
"ground_truth": "{\"fn_name\": \"digits_average\", \"inputs\": [[246], [89], [2], [245], [345], [346], [3700]], \"outputs\": [[4], [9], [2], [4], [5], [5], [4]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-9653",
"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": "Ivan wants to have a good dinner. A good dinner shou... | code | {
"ground_truth": "{\"inputs\": [\"4 3 2 1\\n1 2 3 4\\n5 6 7\\n8 9\\n10\\n2\\n1 2\\n1 1\\n2\\n3 1\\n3 2\\n1\\n1 1\\n\", \"1 1 1 1\\n1\\n1\\n1\\n1\\n1\\n1 1\\n0\\n0\\n\", \"5 5 5 5\\n836 776 809 618 397\\n121 629 373 169 333\\n589 439 410 388 446\\n936 472 433 647 791\\n25\\n1 2\\n4 5\\n5 4\\n4 1\\n3 5\\n5 2\\n2 4\\n3... | HARD | {
"id": "taco-train-6289",
"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": "# Convert Improper Fraction to Mixed Number\n\nYou wi... | code | {
"ground_truth": "{\"fn_name\": \"get_mixed_num\", \"inputs\": [[\"18/11\"], [\"13/5\"], [\"75/10\"]], \"outputs\": [[\"1 7/11\"], [\"2 3/5\"], [\"7 5/10\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-11938",
"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": "The employees of the F company have lots of ways to ... | code | {
"ground_truth": "{\"inputs\": [\"2 1\\n2 1\", \"3 2\\n1 2\\n1 1\", \"3 3\\n1 3\\n2 3\\n1 3\", \"3 2\\n1 1\\n3 2\", \"5 2\\n3 3\\n3 1\", \"5 3\\n3 1\\n4 3\\n5 4\", \"7 3\\n4 4\\n5 4\\n2 4\", \"10 3\\n7 10\\n8 7\\n5 5\", \"100 50\\n11 28\\n11 1\\n98 58\\n38 27\\n24 27\\n67 37\\n90 48\\n91 14\\n43 29\\n3 64\\n24 6\\n5... | rating_>1900 | {
"id": "420D",
"rating": 2200,
"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": "Many modern text editors automatically check the spe... | code | {
"ground_truth": "{\"inputs\": [\"helloo\", \"woooooow\", \"aabbaa\", \"yesssssss\", \"aabbaabbaabbaabbaabbaabbcccccc\", \"aaa\", \"abbbbbccbbbbbbbccccbbbbzbbbbbccbbbbbbbccccbbbbxybbbbbccbbbbbbbccccbbbb\", \"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz... | rating_1201-1400 | {
"id": "363C",
"rating": 1400,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "This is an interactive problem.\n\nIn the Wonderful ... | code | {
"ground_truth": "{\"inputs\": [\"10 2\\n\\nYes\\n\\nNo\\n\\nYes\\n\\nYes\\n\", \"1 2\\n\\nYes\\n\\nNo\\n\\nYer\\n\\nYes\\n\", \"1 2\\n\\nseY\\n\\nNo\\n\\nYes\\n\\nYds\\n\", \"1 2\\n\\nYes\\n\\noN\\n\\nYer\\n\\nYes\\n\", \"1 2\\n\\nYes\\n\\nNo\\n\\nYer\\n\\nYds\\n\", \"1 2\\n\\nYes\\n\\noN\\n\\nYer\\n\\nseY\\n\", \"... | rating_>1900 | {
"id": "1040_D. Subway Pursuit",
"rating": 2100,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Gildong's town has a train system that has 100 train... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 2\\n1\\n3 4\\n3 2\\n1 3 4\\n2 4\\n9 14\\n2 7 16 28 33 57 59 86 99\\n3 9 14 19 25 26 28 35 41 59 85 87 99 100\\n\", \"3\\n1 2\\n1\\n3 4\\n3 2\\n1 3 4\\n2 4\\n9 14\\n2 7 16 28 33 57 59 92 99\\n3 9 14 19 25 26 28 35 41 59 85 87 99 100\\n\", \"3\\n1 2\\n1\\n1 4\\n3 2\\n1 3 4\\n2 4... | rating_<=1200 | {
"id": "1453_A. Cancel the Trains",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Kefa wants to celebrate his first big salary by goin... | code | {
"ground_truth": "{\"inputs\": [\"5 100\\n0 7\\n11 32\\n99 10\\n46 8\\n87 54\\n\", \"4 5\\n75 5\\n0 100\\n150 20\\n75 1\\n\", \"5 9\\n0 98\\n2 1000000000\\n8 1000000000\\n5 999999999\\n3 989898989\\n\", \"4 1\\n2 4\\n2 2\\n3 3\\n3 3\\n\", \"3 1\\n801 10101\\n802 134509124\\n801 1\\n\", \"5 6\\n5 11\\n10 11\\n11 11\\... | rating_1401-1600 | {
"id": "580_B. Kefa and Company",
"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": "You are given a permutation p_1, p_2, ..., p_n. You ... | code | {
"ground_truth": "{\"inputs\": [\"4 5\\n3 1 4 2\\n2 1 1 2 1\\n2 3 4 4 1\\n\", \"4 5\\n3 1 4 2\\n2 2 1 2 1\\n2 3 4 4 1\\n\", \"4 5\\n3 1 4 2\\n2 2 1 3 1\\n2 3 4 4 1\\n\", \"4 5\\n3 1 4 2\\n2 2 1 3 1\\n2 4 4 4 1\\n\", \"4 5\\n3 1 4 2\\n2 4 1 3 1\\n2 4 4 4 1\\n\", \"4 5\\n3 1 4 2\\n2 4 1 3 1\\n2 4 4 4 2\\n\", \"4 5\\n3... | rating_>1900 | {
"id": "1117_G. Recursive Queries",
"rating": 2500,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "# Task\nFor the given set `S` its powerset is the set... | code | {
"ground_truth": "{\"fn_name\": \"powerset\", \"inputs\": [[[1, 2]], [[1, 2, 3]], [[1]], [[125, 15, 155, 15, 158]], [[1, 2, 3, 4]]], \"outputs\": [[[[], [2], [1], [1, 2]]], [[[], [3], [2], [2, 3], [1], [1, 3], [1, 2], [1, 2, 3]]], [[[], [1]]], [[[], [158], [15], [15, 158], [155], [155, 158], [155, 15], [155, 15, 158... | EASY | {
"id": "taco-train-3211",
"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 circles. Find the area of their in... | code | {
"ground_truth": "{\"inputs\": [\"0 0 4\\n6 0 4\\n\", \"0 0 5\\n11 0 5\\n\", \"0 0 10\\n9 0 1\\n\", \"0 0 2\\n2 2 2\\n\", \"0 0 10\\n5 0 5\\n\", \"-9 8 7\\n-9 8 5\\n\", \"-60 -85 95\\n-69 -94 95\\n\", \"159 111 998\\n161 121 1023\\n\", \"6008 8591 6693\\n5310 8351 7192\\n\", \"-13563 -6901 22958\\n-19316 -16534 1851... | HARD | {
"id": "taco-train-17656",
"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": "Chef spent N days working really hard! He planned lo... | code | {
"ground_truth": "{\"inputs\": [[\"1\", \"4 2 2\", \"5 7 6 1\", \"3 3 1 1\", \"6 3\", \"1 4\"]], \"outputs\": [[\"3\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-14246",
"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": "The main Bertown street is represented by a straight... | code | {
"ground_truth": "{\"inputs\": [\"1 1\\n1 1000000000 1000000000\\n1 1000000000 1000000000\\n\", \"4 3\\n1 10 10\\n5 6 2\\n6 7 3\\n5 7 4\\n5 7 1\\n1 2 1\\n1 10 11\\n\", \"3 3\\n500 50000000 1000000000\\n500 1000000000 999999999\\n500 50000000 999999998\\n1 1000000000 999999998\\n500 501 999999999\\n999999999 10000000... | rating_>1900 | {
"id": "160_E. Buses and People",
"rating": 2400,
"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": "Vasya decided to pass a very large integer *n* to Ka... | code | {
"ground_truth": "{\"inputs\": [\"003512\\n021\", \"199966633300\\n63\", \"01\\n0\", \"0000454312911\\n9213544\", \"13\\n3\", \"00010454312921\\n9213544\", \"11317110\\n01\", \"1516532320120301262110112013012410838210025280432402042406224604110031740090203024020012\\n0126064\", \"233121122272652143504001162131110307... | rating_>1900 | {
"id": "670F",
"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": "Suppose I have two vectors: `(a1, a2, a3, ..., aN)` a... | code | {
"ground_truth": "{\"fn_name\": \"is_orthogonal\", \"inputs\": [[[1, 2], [2, 1]], [[1, -2], [2, 1]], [[7, 8], [7, -6]], [[-13, -26], [-8, 4]], [[1, 2, 3], [0, -3, 2]], [[3, 4, 5], [6, 7, -8]], [[3, -4, -5], [-4, -3, 0]], [[1, -2, 3, -4], [-4, 3, 2, -1]], [[2, 4, 5, 6, 7], [-14, -12, 0, 8, 4]], [[5, 10, 1, 20, 2], [-... | EASY | {
"id": "taco-train-6601",
"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": "We have a grid with H rows and W columns of squares.... | code | {
"ground_truth": "{\"inputs\": [\"2 2 1\", \"2 3 2\", \"3 3 2\", \"3 3 3\", \"3 2 3\", \"1 2 3\", \"1 4 3\", \"1 4 5\", \"1 6 5\", \"1 6 4\", \"1 8 4\", \"1 1 4\", \"3 2 1\", \"2 5 2\", \"6 3 2\", \"6 3 3\", \"3 2 6\", \"1 2 2\", \"1 3 3\", \"1 5 4\", \"3 3 1\", \"2 6 2\", \"6 3 6\", \"3 4 3\", \"1 2 1\", \"1 6 3\",... | none | {
"id": "p03594 CODE FESTIVAL 2017 qual A - Four Coloring",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Read problems statements in Mandarin Chinese and Rus... | code | {
"ground_truth": "{\"inputs\": [\"6\\n10 2 9\\n6 2 9\\n6 1 9\\n4 1 9\\n5 1 9\\n10 3 9\"], \"outputs\": [\"2\\n4\\n1\\n1\\n0\\n12\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-22353",
"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": "Takahashi is taking exams on N subjects. The score o... | code | {
"ground_truth": "{\"inputs\": [\"5 10 7\\n8 10 3 6\\n\", \"4 100 60\\n100 100 100\\n\", \"4 100 60\\n0 0 0\\n\", \"5 20 10\\n12 12 12 13\\n\", \"5 20 10\\n12 12 13 13\\n\", \"5 20 10\\n7 7 8 8\\n\", \"5 20 10\\n7 7 7 8\\n\", \"100 100 100\\n100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100... | EASY | {
"id": "taco-train-13668",
"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": "Positive integer number x is called prime, if it has... | code | {
"ground_truth": "{\"inputs\": [\"10\\n\", \"97\\n\"], \"outputs\": [\"7 11\\n\", \"97 97\\n\"]}",
"style": "rule"
} | rating_1601-1900 | {
"id": "64_E. Prime Segment",
"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": "<image>\n\nWilliam is not only interested in trading... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 2\\n\", \"5\\n1 5 2 11 14\\n\", \"12\\n392850 5106 875938 182161 428704 549289 288659 412650 535721 134149 452414 453967\\n\", \"12\\n568 458 137 58 355 983 701 835 7 849 264 878\\n\", \"11\\n913 380 423 296 411 508 201 365 269 274 579\\n\", \"13\\n586 21 307 710 326 244 494 6... | rating_>1900 | {
"id": "1556_F. Sports Betting",
"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": "Problem Statement\n\nFox Ciel is practicing miniatur... | code | {
"ground_truth": "{\"inputs\": [\"4\\n0 0\\n-10 -10\\n10 -10\\n10 10\\n-10 10\\n0\", \"4\\n1 0\\n-10 -10\\n10 -10\\n10 10\\n-10 10\\n0\", \"4\\n2 0\\n-10 -10\\n10 -10\\n4 10\\n-17 10\\n0\", \"4\\n1 0\\n-7 -10\\n10 -10\\n10 10\\n-10 10\\n0\", \"4\\n2 0\\n-10 -10\\n10 -10\\n10 10\\n-17 6\\n0\", \"4\\n2 0\\n-10 -10\\n0... | none | {
"id": "p01681 Putter",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "One way to create a task is to learn from life. You ... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n2 3 4\", \"4 2\\n50 100 50 100\", \"10 3\\n2 2 2 2 2 2 2 2 2 2\", \"1 1\\n2\", \"2 1\\n2 2\", \"2 2\\n2 2\", \"11 4\\n2 3 4 5 6 7 8 9 10 11 12\", \"70 1311\\n1146 769 1530 1132 877 1352 1295 1282 1086 914 852 1351 1432 847 1105 776 1278 716 1435 749 1320 869 812 1179 1239 1426... | rating_1201-1400 | {
"id": "472B",
"rating": 1300,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a chessboard consisting of $n$ rows an... | code | {
"ground_truth": "{\"inputs\": [\"5 3 5\\n4 4\\n3 5\\n2 4\\n3 4\\n3 5\\n\", \"50 50 1\\n1 50\\n\", \"50 50 1\\n1 50\\n\", \"50 41 1\\n1 50\\n\", \"5 5 5\\n4 4\\n3 5\\n2 4\\n3 4\\n3 5\\n\", \"5 5 5\\n4 4\\n3 5\\n2 3\\n3 3\\n3 5\\n\", \"5 5 5\\n1 4\\n3 5\\n2 3\\n3 3\\n3 5\\n\", \"50 50 1\\n2 50\\n\", \"5 3 5\\n4 2\\n3... | MEDIUM | {
"id": "taco-train-10075",
"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": "Disclaimer: there are lots of untranslateable puns i... | code | {
"ground_truth": "{\"inputs\": [\"5\\n3 2 1 6 5\", \"4\\n3 3 3 3\", \"1\\n0\", \"1\\n1\", \"1\\n1000000000\", \"1\\n6\", \"228\\n1 3 1 7 1 3 1 15 1 3 1 7 1 3 1 31 1 3 1 7 1 3 1 15 1 3 1 7 1 3 1 63 1 3 1 7 1 3 1 15 1 3 1 7 1 3 1 31 1 3 1 7 1 3 1 15 1 3 1 7 1 3 1 127 1 3 1 7 1 3 1 15 1 3 1 7 1 3 1 31 1 3 1 7 1 3 1 15 ... | rating_>1900 | {
"id": "875D",
"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": "Easy and hard versions are actually different proble... | code | {
"ground_truth": "{\"inputs\": [\"6 3 2\\n6 0 0\\n11 1 0\\n9 0 1\\n21 1 1\\n10 1 0\\n8 0 1\\n\", \"6 3 1\\n6 0 0\\n11 1 0\\n9 0 1\\n21 1 1\\n10 1 0\\n8 0 1\\n\", \"3 3 1\\n27 0 0\\n28 0 0\\n11 0 0\\n\", \"1 1 1\\n3 0 1\\n\", \"8 5 1\\n43 0 1\\n5 0 1\\n23 1 1\\n55 0 1\\n19 1 1\\n73 1 1\\n16 1 1\\n42 1 1\\n\", \"27 5 ... | rating_>1900 | {
"id": "1374_E2. Reading Books (hard version)",
"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": "You are given an unweighted tree with *n* vertices. ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 2\\n1 3\", \"5\\n1 2\\n1 3\\n2 4\\n2 5\", \"2\\n1 2\", \"4\\n1 3\\n1 4\\n1 2\", \"4\\n2 1\\n1 3\\n3 4\", \"4\\n4 3\\n3 2\\n2 1\", \"5\\n2 1\\n2 3\\n2 4\\n2 5\", \"5\\n4 5\\n4 1\\n1 2\\n2 3\", \"5\\n1 4\\n4 3\\n3 2\\n2 5\", \"6\\n4 5\\n4 1\\n4 6\\n4 2\\n4 3\", \"6\\n6 5\\n6 2\\... | rating_>1900 | {
"id": "911F",
"rating": 2400,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "DLS and JLS are bored with a Math lesson. In order t... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3\\n1 3 2\\n2\\n0 3\\n1\\n1\\n1\\n1\\n1\\n2\\n1\\n1\\n\", \"7\\n2\\n1000000000 0\\n2\\n1000000000 0\\n2\\n1 0\\n2\\n1000000000 0\\n2\\n1 0\\n2\\n1 0\\n2\\n1000000000 0\\n2\\n1 0\\n1\\n999999999\\n1\\n99999999\\n1\\n1000000000\\n1\\n999999999\\n3\\n1000000000 999999999 999999998\... | rating_<=1200 | {
"id": "1248_A. Integer Points",
"rating": 1000,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given an array a_1, a_2, ..., a_n where all ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1\\n8\\n6\\n4 3 6 6 2 9\\n4\\n4 5 6 7\\n5\\n7 5 2 2 4\\n\", \"1\\n5\\n2 6 2 4 5\\n\", \"1\\n5\\n2 6 2 4 1\\n\", \"4\\n1\\n8\\n6\\n4 6 6 6 2 9\\n4\\n4 5 6 7\\n5\\n7 5 2 2 4\\n\", \"4\\n1\\n9\\n6\\n4 5 6 6 2 9\\n4\\n4 5 6 7\\n5\\n11 5 2 2 4\\n\", \"4\\n1\\n9\\n6\\n4 6 6 6 2 9\\n4\... | rating_1201-1400 | {
"id": "1401_C. Mere Array",
"rating": 1300,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Majin wants to label his N (1 ≤ N ≤ 1,000,000) tower... | code | {
"ground_truth": "{\"inputs\": [\"1\\n10 0\", \"1\\n11 0\", \"1\\n4 0\", \"1\\n4 1\", \"1\\n1 0\", \"1\\n11 1\", \"1\\n3 0\", \"1\\n5 1\", \"1\\n11 2\", \"1\\n6 2\", \"1\\n7 3\", \"1\\n8 2\", \"1\\n14 3\", \"1\\n28 3\", \"1\\n9 3\", \"1\\n28 0\", \"1\\n29 0\", \"1\\n13 0\", \"1\\n16 0\", \"1\\n10 2\", \"1\\n22 0\", ... | none | {
"id": "nsit15",
"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": "Snuke is standing on a two-dimensional plane. In one... | code | {
"ground_truth": "{\"inputs\": [\"1 1 2 2\\n\", \"314 159 2653 589\\n\", \"1 1 1000000 1000000\\n\", \"349 602 998593 983904\\n\", \"33400 31000 33400 593020\\n\", \"1999 1322 290329 1325\\n\", \"799999 789898 979797 999999\\n\", \"1000000 1000000 1000000 1000000\\n\", \"53245 34234 643323 948342\\n\", \"3 3 3 3\\n\... | MEDIUM_HARD | {
"id": "taco-train-22759",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "According to Berland laws it is only allowed to sell... | code | {
"ground_truth": "{\"inputs\": [\"5\\n18\\nVODKA\\nCOKE\\n19\\n17\", \"2\\n2\\nGIN\", \"3\\nWHISKEY\\n3\\nGIN\", \"4\\n813\\nIORBQITQXMPTFAEMEQDQIKFGKGOTNKTOSZCBRPXJLUKVLVHJYNRUJXK\\nRUM\\nRHVRWGODYWWTYZFLFYKCVUFFRTQDINKNWPKFHZBFWBHWINWJW\", \"4\\nSAKE\\nSAKE\\n13\\n2\", \"2\\n0\\n17\", \"1\\n0\"], \"outputs\": [\"2... | rating_<=1200 | {
"id": "56A",
"rating": 1000,
"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": "In 40XX, the Earth was invaded by aliens! Already mo... | code | {
"ground_truth": "{\"inputs\": [\"100 5\\n101 101 5 5\\n110 110 2 3\\n-112 -100 9 11\\n-208 160 82 90\\n-110 108 10 2\\n10 11\\n15 0 5 1\\n25 0 5 1\\n35 0 5 1\\n45 0 5 1\\n55 0 5 1\\n65 0 5 1\\n75 0 5 1\\n85 0 5 1\\n95 0 5 1\\n-20 0 5 20\\n-30 0 500 5\\n0 0\", \"100 5\\n101 101 5 5\\n110 110 2 3\\n-112 -100 9 11\\n-... | none | {
"id": "p00204 UFO Shooting Down Operation",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "problem\n\nGiven a sequence of n integers a1, a2, ..... | code | {
"ground_truth": "{\"inputs\": [\"5 3\\n2\\n5\\n-4\\n10\\n3\\n0 0\", \"5 3\\n2\\n5\\n-4\\n8\\n3\\n0 0\", \"5 3\\n2\\n5\\n-4\\n12\\n3\\n0 0\", \"5 3\\n2\\n5\\n-4\\n14\\n3\\n0 0\", \"5 3\\n2\\n9\\n-4\\n14\\n1\\n0 0\", \"5 3\\n1\\n9\\n-4\\n2\\n1\\n0 0\", \"5 3\\n2\\n8\\n-4\\n12\\n3\\n0 0\", \"5 1\\n2\\n9\\n-4\\n14\\n1\... | none | {
"id": "p00439 Maximum Sum",
"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": "Taro, a junior high school student, is working on hi... | code | {
"ground_truth": "{\"inputs\": [\"6\\nonetwo2\\n-\\nonetwo1\\nonetwo2\\n-\\nonetwo1\\n7\\nv\\ntopbottom2\\nonetwo2\\n-\\nonetwo1\\ntopbottom1\\n-\\n6\\nbaz2\\nfoo2\\nbaz1v\\nbar2\\nfoo1\\nbar1\\n0\", \"6\\nonetwo2\\n-\\nonetwo1\\nonetwo2\\n-\\nonetwo1\\n7\\nv\\ntopbottom2\\nonetwo2\\n-\\nonetwo1\\ntopbottom1\\n-\\n6... | none | {
"id": "p01439 Chinese Classics",
"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": "DZY loves collecting special strings which only cont... | code | {
"ground_truth": "{\"inputs\": [\"abc\\n3\\n1 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1\\n\", \"mmzhr\\n3\\n443 497 867 471 195 670 453 413 579 466 553 881 847 642 269 996 666 702 487 209 257 741 974 133 519 453\\n\", \"ajeeseerqnpaujubmajpibxrccazaawetywxmifzehojf\\n23\\n359 813 772 413 733 654 33 87 890 43... | EASY | {
"id": "taco-train-3693",
"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": "Mr. Das is a teacher teaching for several years in a... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"3\", \"Rahul 1345964789 47\", \"Rupendra 1457856987 58\", \"Priya 1478569820 45\", \"2\", \"Tanuja 4310779415 97\", \"Akash 3689781245 43\"]], \"outputs\": [[\"Priya 1478569820 45\", \"Rahul 1345964789 47\", \"Akash 3689781245 43\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-23820",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a binary string s and two integers x and y. Arr... | code | {
"ground_truth": "{\"inputs\": [\"X = 1, Y = 1, S = \\\"0011\\\"\", \"X = 1, Y = 1, S = \\\"1011011\\\"\"], \"outputs\": [\"\\\"0101\\\"\", \"\\\"0101111\\\"\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-16108",
"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": "Since chandu_don is busy in talking to his girlfrien... | code | {
"ground_truth": "{\"inputs\": [\"5\\n2 3 1 4 2\\n3\\n0 4 2\\n1 4 2\\n0 4 7\\n\\nSAMPLE\", \"5\\n2 3 1 4 2\\n2\\n0 4 2\\n1 4 2\\n0 4 7\\n\\nSAMPLE\", \"5\\n2 3 2 4 2\\n3\\n0 4 2\\n1 4 2\\n0 4 7\\n\\nSAMPLE\", \"5\\n2 3 3 4 2\\n3\\n0 4 2\\n1 4 2\\n0 4 7\\n\\nSAMPLE\", \"5\\n2 0 1 4 1\\n2\\n0 4 2\\n1 4 2\\n0 3 7\\n\\n... | none | {
"id": "range-query",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There is a haunted town called HauntedLand. The stru... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2 2\\n*.\\n..\\n3 4\\n.*..\\n***.\\n.*..\"], \"outputs\": [\"1\\n2\"]}",
"style": "rule"
} | none | {
"id": "devperf",
"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": "VisuAlgo (http://visualgo.net) is a website develope... | code | {
"ground_truth": "{\"inputs\": [\"6 10\\n0 1 26\\n1 3 29\\n1 5 9\\n2 3 25\\n2 4 43\\n4 2 3\\n5 0 13\\n5 2 33\\n5 3 18\\n5 4 58\\n5 1\\n\", \"7 9\\n0 1 1\\n0 2 2\\n1 2 1\\n2 3 1\\n2 4 3\\n3 4 1\\n4 5 1\\n4 6 2\\n5 6 1\\n0 6\\n\", \"5 6\\n0 1 1\\n1 2 2\\n2 4 3\\n0 3 3\\n3 4 4\\n0 4 6\\n0 4\\n\"], \"outputs\": [\"1\\n\... | MEDIUM | {
"id": "taco-train-3040",
"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 nums of n positive integers. The task ... | code | {
"ground_truth": "{\"inputs\": [\"nums = {1,5,4}\"], \"outputs\": [\"3\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-15987",
"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 integer arrays Arr1 and Arr2 of size N. Use... | code | {
"ground_truth": "{\"inputs\": [\"N = 5\\r\\nArr1 = {7, 4, 8, 0, 1}\\r\\nArr2 = {9, 7, 2, 3, 6}\", \"N = 4\\r\\nArr1 = {6, 7, 5, 3}\\r\\nArr2 = {5, 6, 2, 9}\"], \"outputs\": [\"9 7 6 4 8\", \"5 6 9 7\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-22082",
"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": "Little Petya likes arrays of integers a lot. Recentl... | code | {
"ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"2\\n1 2\\n\", \"4\\n1 2 3 4\\n\", \"3\\n1 1 1\\n\", \"3\\n1 2 2\\n\", \"5\\n1 1 1 1 2\\n\", \"6\\n1 2 3 3 2 1\\n\", \"7\\n6 5 4 3 2 1 0\\n\", \"10\\n1 2 1 2 1 2 1 2 1 2\\n\", \"11\\n1 1 1 1 1 2 2 2 2 2 1\\n\", \"3\\n1 2 1\\n\", \"4\\n562617869 961148050 596819899 95113... | MEDIUM_HARD | {
"id": "taco-train-7245",
"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": "The integer numbers from 1 to nm was put into rectan... | code | {
"ground_truth": "{\"inputs\": [\"3 4 11\\n\", \"20000 10000 200000000\\n\"], \"outputs\": [\"8\\n\", \"200000000\\n\"]}",
"style": "rule"
} | rating_1401-1600 | {
"id": "64_C. Table",
"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": "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\\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 1106... | EASY | {
"id": "taco-train-9497",
"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 Arjit is in love with Deepa. They have always... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4\\n8\\n\\nSAMPLE\", \"2\\n4\\n8\\n\\nSANPLE\", \"2\\n4\\n2\\n\\nSBMPLE\", \"2\\n2\\n2\\n\\nMBSPLE\", \"2\\n2\\n8\\n\\nELMPBS\", \"2\\n4\\n8\\n\\nSBMPLE\", \"2\\n4\\n8\\n\\nASMPLE\", \"2\\n4\\n8\\n\\nELPNAS\", \"2\\n4\\n2\\n\\nMBSPLE\", \"2\\n2\\n2\\n\\nMBSPLD\", \"2\\n4\\n2\\n\... | none | {
"id": "in-love-with-primes",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "We all are aware of Gaurav and his love for \"weird\... | code | {
"ground_truth": "{\"inputs\": [\"10\\n11\\n6\\n25\\n11\\n23\\n21\\n23\\n8\\n2\\n4\", \"10\\n8\\n15\\n17\\n14\\n5\\n5\\n9\\n1\\n10\\n20\", \"1000\\n49059\\n49063\\n21101\\n38400\\n28867\\n54233\\n36628\\n45561\\n21277\\n24726\\n12689\\n21203\\n54618\\n40882\\n51282\\n45199\\n21878\\n29977\\n40098\\n54469\\n20423\\n5... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-16346",
"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": "Vanya and his friends are walking along the fence of... | code | {
"ground_truth": "{\"inputs\": [\"3 7\\n4 5 14\\n\", \"6 1\\n1 1 1 1 1 1\\n\", \"6 5\\n7 6 8 9 10 5\\n\", \"10 561\\n657 23 1096 487 785 66 481 554 1000 821\\n\", \"10 420\\n214 614 297 675 82 740 174 23 255 15\\n\", \"46 71\\n30 26 56 138 123 77 60 122 73 45 79 10 130 3 14 1 38 46 128 50 82 16 32 68 28 98 62 106 2 ... | rating_<=1200 | {
"id": "677_A. Vanya and Fence",
"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": "Ksusha the Squirrel is standing at the beginning of ... | code | {
"ground_truth": "{\"inputs\": [\"2 1\\n..\\n\", \"5 2\\n.#.#.\\n\", \"7 3\\n.#.###.\\n\", \"10 3\\n..........\\n\", \"2 200\\n..\\n\", \"2 1\\n..\\n\", \"2 2\\n..\\n\", \"2 100000\\n..\\n\", \"3 1\\n.#.\\n\", \"3 2\\n.#.\\n\", \"3 10000\\n.#.\\n\", \"2 2\\n..\\n\", \"3 2\\n.#.\\n\", \"3 10000\\n.#.\\n\", \"2 200\\n... | EASY | {
"id": "taco-train-7900",
"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": "Mr. Scrooge, a very busy man, decided to count the t... | code | {
"ground_truth": "{\"inputs\": [\"2 1\\n0 0\\n10 0\\n\", \"6 10\\n5 0\\n4 0\\n6 0\\n3 0\\n7 0\\n2 0\\n\", \"5 10\\n3 1\\n-5 6\\n-2 -1\\n3 2\\n10 0\\n\", \"48 447\\n14 9\\n9 -17\\n-17 11\\n-14 14\\n19 -8\\n-14 -17\\n-7 10\\n-6 -11\\n-9 -19\\n19 10\\n-4 2\\n-5 16\\n20 9\\n-10 20\\n-7 -17\\n14 -16\\n-2 -10\\n-18 -17\\n... | rating_<=1200 | {
"id": "127_A. Wasted Time",
"rating": 900,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "\\textit {Life is change, change is stability.} \n\n... | code | {
"ground_truth": "{\"inputs\": [\"2\\n3\\n1 1 1\\n2\\n69 96\"], \"outputs\": [\"0\\n1\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-7768",
"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": "A little boy Gerald entered a clothes shop and found... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n1 2 3\\n1 2\\n2 3\\n3 1\", \"3 2\\n2 3 4\\n2 3\\n2 1\", \"4 4\\n1 1 1 1\\n1 2\\n2 3\\n3 4\\n4 1\", \"4 3\\n10 10 5 1\\n2 1\\n3 1\\n3 4\", \"4 0\\n9 8 2 10\", \"4 3\\n5 5 9 6\\n3 2\\n1 4\\n3 4\", \"4 3\\n5 1 10 1\\n2 1\\n3 2\\n1 4\", \"4 3\\n1 2 8 6\\n1 3\\n1 4\\n3 4\", \"4 4\\... | rating_<=1200 | {
"id": "102A",
"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": "Alice likes word \"nineteen\" very much. She has a s... | code | {
"ground_truth": "{\"inputs\": [\"nniinneetteeeenn\\n\", \"nneteenabcnneteenabcnneteenabcnneteenabcnneteenabcii\\n\", \"nineteenineteen\\n\", \"mmmsermimjmrhrhejhrrejermsneheihhjemnehrhihesnjsehthjsmmjeiejmmnhinsemjrntrhrhsmjtttsrhjjmejj\\n\", \"rhsmnrmhejshinnjrtmtsssijimimethnm\\n\", \"jnirirhmirmhisemittnnsmsttes... | none | {
"id": "393_A. Nineteen",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There are N persons, conveniently numbered 1 through... | code | {
"ground_truth": "{\"inputs\": [\"2\", \"7\", \"3\", \"4\", \"5\", \"6\", \"8\", \"10\", \"12\", \"19\", \"37\", \"26\", \"43\", \"27\", \"50\", \"13\", \"9\", \"11\", \"18\", \"14\", \"15\", \"21\", \"35\", \"28\", \"36\", \"24\", \"54\", \"22\", \"17\", \"39\", \"34\", \"25\", \"31\", \"30\", \"42\", \"20\", \"32\... | none | {
"id": "p03896 CODE FESTIVAL 2016 Relay (Parallel) - 3y3s Challenge",
"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 Arrays A[] and B[] of length N and M respec... | code | {
"ground_truth": "{\"inputs\": [\"N = 5, M = 3\\nA[] = {1, 2, 5, 3, 1}\\nB[] = {1, 3, 5}\", \"N = 2, M = 2\\nA[] = {1, 4}\\nB[] = {1, 4}\"], \"outputs\": [\"4\", \"0\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-12043",
"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": "The snail crawls up the column. During the day it cra... | code | {
"ground_truth": "{\"fn_name\": \"snail\", \"inputs\": [[3, 2, 1], [10, 3, 1], [10, 3, 2], [100, 20, 5], [5, 10, 3]], \"outputs\": [[2], [5], [8], [7], [1]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-12687",
"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 modern cryptography much is tied to the algorithm... | code | {
"ground_truth": "{\"inputs\": [\"7\\n2 2\\n1 1\\n2 3\\n8 10\\n8 2\\n321321321321 2\\n123214213213 4356903202345442785\\n\", \"25\\n14 6\\n14 7\\n14 8\\n14 9\\n14 10\\n14 11\\n14 12\\n14 13\\n14 14\\n14 15\\n15 1\\n15 2\\n15 3\\n15 4\\n15 5\\n15 6\\n15 7\\n15 8\\n15 9\\n15 10\\n15 11\\n15 12\\n15 13\\n15 14\\n15 15\... | rating_>1900 | {
"id": "1310_F. Bad Cryptography",
"rating": 3400,
"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": "Alice and Bob play a game. There is a paper strip wh... | code | {
"ground_truth": "{\"inputs\": [\"4\\n0 3\\n3 3\\n3 4\\n4 4\\n\", \"1\\n73 18\\n\", \"1\\n25 6\\n\", \"24\\n19 9\\n20 9\\n21 9\\n22 9\\n23 9\\n24 9\\n25 9\\n26 9\\n27 9\\n28 9\\n29 9\\n30 9\\n31 9\\n32 9\\n1000000000 999999999\\n999999996 999999999\\n999999997 999999999\\n1000000000 6\\n1000000000 3\\n1000000000 9\\... | MEDIUM_HARD | {
"id": "taco-train-5013",
"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": "Every day, Mike goes to his job by a bus, where he b... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"ABABAB\", \"ABC\"]], \"outputs\": [[\"YES\", \"NO\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-24854",
"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 have a fraction <image>. You need to find the fi... | code | {
"ground_truth": "{\"inputs\": [\"2 3 7\\n\", \"1 2 0\\n\", \"1 10 1\\n\", \"53 101 6\\n\", \"567 1580 0\\n\", \"69168 84860 4\\n\", \"35 111 4\\n\", \"99971 99989 0\\n\", \"25102 31579 2\\n\", \"13805 15538 3\\n\", \"38790 39359 0\\n\", \"2 3 0\\n\", \"7 31 3\\n\", \"1 9 0\\n\", \"45 97 0\\n\", \"1636 3269 6\\n\", ... | rating_1201-1400 | {
"id": "900_B. Position in Fraction",
"rating": 1300,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You have an array a of length n. For every positive ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n4\\n1 7 6 5\\n5\\n1 2 3 4 5\\n2\\n0 -4\\n\", \"6\\n3\\n1000000000 0 -1000000000\\n1\\n6\\n2\\n-1000000000 1000000000\\n2\\n1000000000 -1000000000\\n2\\n1000000000 1000000000\\n2\\n-1000000000 -1000000000\\n\", \"6\\n3\\n1000000000 0 -1000000000\\n1\\n6\\n2\\n-1000000000 10000000... | rating_1401-1600 | {
"id": "1339_C. Powered Addition",
"rating": 1500,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A haiku is a Japanese form of poetry. It consists of... | code | {
"ground_truth": "{\"inputs\": [\"20\\nva\\nfi\\nve\\nmor\\nlling\\nspe\\nin\\ni\\nsh\\nti\\nhard\\ncov\\near\\nfe\\nred\\nja\\nry\\nneed\\nly\\nning\\nspelling very hard\\nearly in morning tired\\ni need covfefe\\n\", \"22\\nq\\nc\\nda\\nplus\\nto\\nthe\\ne\\nthee\\nun\\nlate\\nci\\na\\nshall\\nby\\ncom\\ni\\nru\\n... | MEDIUM | {
"id": "taco-train-13356",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The developers of Looksery have to write an efficien... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\nxxxx\\nxfax\\nxcex\\nxxxx\\n\", \"4 2\\nxx\\ncf\\nae\\nxx\\n\", \"2 3\\nfac\\ncef\\n\", \"1 4\\nface\\n\", \"5 5\\nwmmwn\\nlurcm\\nkeetd\\nfokon\\ncxxgx\\n\", \"5 5\\nkjxbw\\neacra\\nxefhx\\nucmcz\\npgtjk\\n\", \"1 1\\np\\n\", \"2 5\\nacdmw\\nefazb\\n\", \"5 2\\ndz\\nda\\nsx\\... | EASY | {
"id": "taco-train-23962",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Read problem statements in [Mandarin], [Bengali], [R... | code | {
"ground_truth": "{\"inputs\": [\"4\\n10 8 12 \\n14 2 10\\n4444 5555 6666 \\n8 8 12\\n\"], \"outputs\": [\"Take second dose now\\nToo Late\\nToo Early\\nTake second dose now\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-7476",
"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": "Sagheer is playing a game with his best friend Solim... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 2 3\\n1 1\", \"3\\n1 2 3\\n1 1\", \"8\\n7 2 2 5 4 3 1 1\\n1 1 1 4 4 5 6\", \"6\\n7 7 7 7 7 7\\n1 1 1 1 1\", \"6\\n3 1 1 1 2 2\\n1 1 1 1 1\", \"6\\n1 2 3 4 5 6\\n1 2 3 4 5\", \"7\\n15 3 5 1 2 4 8\\n1 1 2 2 3 3\", \"7\\n15 3 5 1 2 4 9\\n1 1 2 2 3 3\", \"7\\n15 16 32 1 2 4 9\\n1 ... | rating_>1900 | {
"id": "812E",
"rating": 2300,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a sequence A, where its elements are e... | code | {
"ground_truth": "{\"inputs\": [\"15\\n+ 2432543\\n-\\n+ 4567886\\n+ 65638788\\n-\\n+ 578943\\n-\\n-\\n+ 62356680\\n-\\n+ 711111\\n-\\n+ 998244352\\n-\\n-\\n\", \"4\\n-\\n+ 1\\n+ 2\\n-\\n\", \"3\\n+ 489111368\\n+ 489111368\\n+ 489111368\\n\", \"3\\n+ 202794029\\n+ 810021800\\n+ 810021800\\n\", \"2\\n+ 717107178\\n+ ... | rating_>1900 | {
"id": "1542_D. Priority Queue",
"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": "There is a set A = \\\\{ a_1, a_2, \\ldots, a_N \\\\... | code | {
"ground_truth": "{\"inputs\": [\"1 100000\\n1\", \"3 21\\n1 2 3\", \"2 5\\n2 3\", \"2 4\\n2 3\", \"2 7\\n2 3\", \"3 20\\n1 2 3\", \"1 100000\\n2\", \"3 21\\n1 1 3\", \"2 3\\n2 3\", \"2 7\\n1 3\", \"1 100000\\n4\", \"3 21\\n1 1 4\", \"2 4\\n2 5\", \"2 1\\n1 3\", \"2 4\\n3 5\", \"2 2\\n1 3\", \"2 2\\n2 3\", \"2 5\\n2... | none | {
"id": "p03170 Educational DP Contest - Stones",
"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": "Chef's friend Alex runs a movie theatre. Due to the ... | code | {
"ground_truth": "{\"inputs\": [[\"5\", \"12\", \"A 3\", \"B 12\", \"C 6\", \"A 9\", \"B 12\", \"C 12\", \"D 3\", \"B 9\", \"D 3\", \"B 12\", \"B 9\", \"C 6\", \"7\", \"A 9\", \"A 9\", \"B 6\", \"C 3\", \"D 12\", \"A 9\", \"B 6\", \"2\", \"A 9\", \"B 6\", \"1\", \"D 12\", \"0\"]], \"outputs\": [[\"575\", \"525\", \"... | MEDIUM_HARD | {
"id": "taco-train-24470",
"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": "Two T-shirt sizes are given: $a$ and $b$. The T-shir... | code | {
"ground_truth": "{\"inputs\": [\"6\\nXXXS XS\\nXXXL XL\\nXL M\\nXXL XXL\\nXXXXXS M\\nL M\\n\", \"6\\nS L\\nL S\\nM L\\nL M\\nS M\\nM S\\n\", \"1\\nM S\\n\", \"1\\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXS XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXL\\n\", \"3\\nM XS\\nM S\\nS M\\n\", \"3\\nM XS\\nM S... | EASY | {
"id": "taco-train-446",
"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 consisting of lowercase english alp... | code | {
"ground_truth": "{\"inputs\": [\"S1 = \\\"geeks\\\", S2 = \\\"keegs\\\"\", \"S1 = \\\"geeks\\\", S2 = \\\"geeks\\\"\"], \"outputs\": [\"1\", \"0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-13142",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a positive integer $n$ and asked to ma... | code | {
"ground_truth": "{\"inputs\": [\"1374 2\\n\", \"210 1\\n\", \"666 3\\n\"], \"outputs\": [\"7413\\n\", \"201\\n\", \"666\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-361",
"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": "Consider the following pseudocode, run on an array $... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 3 4\\n\"], \"outputs\": [\"4\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-9847",
"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 given an array A consisting of N integers.\n... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2\\n1 3\\n3\\n2 7 1\\n4\\n4 6 7 2\"], \"outputs\": [\"1\\n3\\n6\\n\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-2709",
"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": "Boboniu defines BN-string as a string s of character... | code | {
"ground_truth": "{\"inputs\": [\"3\\nB\\nN\\nBN\\n\", \"3\\nBNNNBNNNNBNBBNNNBBNNNNBBBBNNBBBBBBNBBBBBNBBBNNBBBNBNBBBN\\nBBBNBBBBNNNNNBBNBBBNNNBB\\nBBBBBBBBBBBBBBNBBBBBNBBBBBNBBBBNB\\n\", \"8\\nNNN\\nNNN\\nBBNNBBBN\\nNNNBNN\\nB\\nNNN\\nNNNNBNN\\nNNNNNNNNNNNNNNNBNNNNNNNBNB\\n\", \"10\\nN\\nBBBBBB\\nBNNNBBNBB\\nNNNNBNB... | rating_>1900 | {
"id": "1394_C. Boboniu and String",
"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": "Traveling around the universe Benny saw some strange... | code | {
"ground_truth": "{\"inputs\": [\"0 1 0 0 0 0 0 0 1 1 1 2 3 4 5\\n1\\n13 16\\n\\nSAMPLE\", \"0 1 1 0 2 2 2 2 0 2 1 1 2 0 0\\n1000\\n620 999571\\n626 999523\\n738 999939\\n1157 999335\\n494 999039\\n933 999280\\n997 999727\\n78 999899\\n71 999243\\n102 999229\\n1042 999118\\n1020 999961\\n1232 999598\\n63 999781\\n75... | none | {
"id": "benny-and-universal-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": "The most common technique for shuffling a deck of ca... | code | {
"ground_truth": "{\"inputs\": [\"10\\n1 2 7 3 8 9 4 5 10 6\\n\", \"10\\n3 8 1 9 4 5 2 7 10 6\\n\", \"8\\n2 1 4 3 6 5 8 7\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"3\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-22358",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Read problems statements in Mandarin chinese, Russia... | code | {
"ground_truth": "{\"inputs\": [\"1\\n4 2\\n1 2 3 4\\n2 2 2 2\\n6 3\"], \"outputs\": [\"7\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-22920",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given two numbers L and R (inclusive) find the produc... | code | {
"ground_truth": "{\"inputs\": [\"L = 1, R = 10\", \"L = 1, R = 20\"], \"outputs\": [\"210\", \"9699690\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-622",
"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": "Simple interest on a loan is calculated by simply tak... | code | {
"ground_truth": "{\"fn_name\": \"interest\", \"inputs\": [[100, 0.1, 1], [100, 0.1, 2], [100, 0.1, 10], [100, 0, 10], [0, 0.1, 10], [100, 0.1, 0]], \"outputs\": [[[110, 110]], [[120, 121]], [[200, 259]], [[100, 100]], [[0, 0]], [[100, 100]]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-6151",
"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": "An oft-forgotten part of a well-rounded software eng... | code | {
"ground_truth": "{\"inputs\": [\"50\\n4\\n110 10\\n80 10\\n80 0\\n110 0\\n\", \"24\\n3\\n10 10\\n30 10\\n20 20\\n\", \"1280\\n10\\n100 120\\n97 50\\n94 99\\n74 97\\n50 87\\n29 71\\n13 50\\n3 26\\n0 0\\n100 0\\n\"], \"outputs\": [\"6\\n85\\n90\\n95\\n100\\n105\\n\", \"4\\n17.071067\\n20\\n22.928932\\n\", \"6\\n27.50... | HARD | {
"id": "taco-train-13130",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.