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": "Last weekend you and your friends went to visit the ... | code | {
"ground_truth": "{\"inputs\": [\"0\\n\", \"59\\n\"], \"outputs\": [\"1\\n\", \"1583850964596120042686772779038896\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-20365",
"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": "There are n types of coins in Byteland. Conveniently... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1\\n4 4\\n2\\n\", \"1\\n\\n4\\n2\\n\", \"3\\n3 3\\n10 10 10\\n17\\n\", \"20\\n2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2\\n1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 299981\\n1234567890\\n\", \"10\\n1 1 1 1 1 1 1 1 1\\n55 75 21 92 159 178 181 137 29 73\\n1000000533\\n\", \"10\\n1 1 1 1 1 ... | rating_>1900 | {
"id": "756_E. Byteland coins",
"rating": 3200,
"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": "Consider a zero-indexed matrix with $m$ rows and $n$... | code | {
"ground_truth": "{\"inputs\": [\"4 2\\n6 7 1 3\\n\"], \"outputs\": [\"1 6 2 5\\n\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-23775",
"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": "A boy Bob likes to draw. Not long ago he bought a re... | code | {
"ground_truth": "{\"inputs\": [\"6 7\\n.......\\n..***..\\n..*....\\n..***..\\n..*....\\n..***..\", \"3 3\\n***\\n*.*\\n***\", \"1 1\\n*\", \"2 1\\n*\\n*\", \"5 1\\n.\\n*\\n.\\n.\\n.\", \"1 6\\n*****.\", \"2 2\\n..\\n*.\", \"8 2\\n..\\n..\\n..\\n..\\n..\\n*.\\n..\\n..\", \"50 1\\n.\\n.\\n.\\n.\\n.\\n.\\n.\\n.\\n.\\... | rating_<=1200 | {
"id": "14A",
"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": "Kalila and Dimna are two jackals living in a huge ju... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 5\\n5 4 3 2 0\\n\", \"6\\n1 2 3 10 20 30\\n6 5 4 3 2 0\\n\", \"6\\n2 2 3 10 20 30\\n6 5 4 3 2 0\\n\", \"5\\n1 4 3 4 5\\n5 4 3 2 0\\n\", \"6\\n1 2 3 10 20 25\\n6 5 4 3 2 0\\n\", \"6\\n1 1 2 10 20 25\\n6 5 4 3 2 0\\n\", \"5\\n1 2 3 4 5\\n9 4 3 2 0\\n\", \"5\\n1 2 3 4 5\\n6... | rating_>1900 | {
"id": "319_C. Kalila and Dimna in the Logging Industry",
"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": "Programmer Rostislav got seriously interested in the... | code | {
"ground_truth": "{\"inputs\": [\"1 10 2\\n\", \"2 4 5\\n\", \"1 243 3\\n\", \"18102 43332383920 28554\\n\", \"438133886369772308 942612870269666780 7193\\n\", \"1 2576683920000 2\\n\", \"19562 31702689720 17701\\n\", \"366070689449360724 928290634811046396 8230\\n\", \"1000000000 1000000000000000000 1000000000\\n\"... | rating_1401-1600 | {
"id": "614_A. Link/Cut Tree",
"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": "Phoenix has collected n pieces of gold, and he wants... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 2\\n3 2 1\\n5 3\\n1 2 3 4 8\\n1 5\\n5\\n\", \"1\\n6 46\\n10 11 12 13 21 25\\n\", \"3\\n3 2\\n3 2 1\\n5 3\\n1 2 3 4 8\\n1 5\\n5\\n\", \"1\\n6 46\\n18 11 12 13 21 25\\n\", \"3\\n3 2\\n3 2 1\\n5 3\\n1 2 5 4 8\\n1 5\\n5\\n\", \"1\\n6 46\\n18 11 12 4 21 25\\n\", \"3\\n3 4\\n3 2 1\\... | rating_<=1200 | {
"id": "1515_A. Phoenix and Gold",
"rating": 800,
"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": "Alena has successfully passed the entrance exams to ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n0 1 0 1 1\", \"7\\n1 0 1 0 0 1 0\", \"1\\n0\", \"1\\n1\", \"2\\n0 0\", \"2\\n0 1\", \"2\\n1 0\", \"2\\n1 1\", \"10\\n0 0 0 0 0 0 0 0 0 0\", \"9\\n1 1 1 1 1 1 1 1 1\", \"11\\n0 0 0 0 0 0 0 0 0 0 1\", \"12\\n1 0 0 0 0 0 0 0 0 0 0 0\", \"20\\n1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 0 0 1 0 0... | rating_<=1200 | {
"id": "586A",
"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": "You are given two integers $n$ and $m$. You have to ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 100\\n2 2\\n5 5\\n2 1000000000\\n1000000000 1000000000\\n\", \"1\\n54 33\\n\", \"1\\n9021 10000\\n\", \"1\\n53 5\\n\", \"1\\n1001 1\\n\", \"2\\n12345 12345\\n12345 12345\\n\", \"2\\n12345 12345\\n1 1\\n\", \"1\\n9021 100\\n\", \"1\\n53 100\\n\", \"1\\n9021 5\\n\", \"1\\n9021 2... | EASY | {
"id": "taco-train-23356",
"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": "This is the hard version of the problem. The differe... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n3 4 5\\n\", \"4 3\\n2 3 5 6\\n\", \"4 3\\n9 1 1 1\\n\", \"3 2\\n1000000000 1 999999999\\n\", \"2 2\\n603532654 463735162\\n\", \"5 5\\n292213182 292213182 292213182 292213183 292213182\\n\", \"5 2\\n720537834 720537833 720537836 720537836 720537836\\n\", \"5 2\\n294086679 2940... | HARD | {
"id": "taco-train-14492",
"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 wants to rent a car to travel to his restaurant... | code | {
"ground_truth": "{\"inputs\": [\"4\\n20 10 8 2 4\\n50 12 12 4 3\\n40 3 15 8 40\\n21 9 9 2 9\\n\"], \"outputs\": [\"DIESEL\\nPETROL\\nANY\\nDIESEL\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-17898",
"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 going to hold a competition of one-to-one ga... | code | {
"ground_truth": "{\"inputs\": [\"4 1\\n\", \"7 3\\n\", \"3 1\\n\", \"5 2\\n\", \"9 4\\n\", \"11 5\\n\", \"146037 73018\\n\", \"179651 89825\\n\", \"13265 6632\\n\", \"46879 23439\\n\", \"80493 40246\\n\", \"8383 2466\\n\", \"25190 4535\\n\", \"41997 7219\\n\", \"58804 1294\\n\", \"75611 32437\\n\", \"9 3\\n\", \"6 ... | MEDIUM | {
"id": "taco-train-21224",
"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 a sequence A of n elemen... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 5 7 10 21\\n8\\n2 4 17 8 22 21 100 35\", \"5\\n1 5 7 10 21\\n8\\n2 4 17 10 22 21 100 35\", \"5\\n1 5 7 3 21\\n8\\n2 4 17 10 22 21 100 42\", \"5\\n1 5 7 3 21\\n8\\n0 4 17 10 22 21 100 42\", \"5\\n1 5 7 3 21\\n8\\n0 4 17 11 22 21 010 42\", \"5\\n0 5 7 3 21\\n8\\n0 4 17 11 22 21 ... | none | {
"id": "p02271 Exhaustive Search",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a number N check whether it is wierd or not. A ... | code | {
"ground_truth": "{\"inputs\": [\"N = 70\", \"N = 12\"], \"outputs\": [\"1\", \"0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-6037",
"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": "Apple adventure\n\nsquare1001 and E869120 got lost i... | code | {
"ground_truth": "{\"inputs\": [\"5 5 2\\ns..#a\\n.#...\\na#e.#\\n...#a\\n.#...\", \"5 5 2\\ns..#a\\n.#...\\ne#a.#\\n...#a\\n.#...\", \"5 5 2\\ns..#a\\n.#../\\n#.a#e\\n...#a\\n.#...\", \"5 5 2\\nb#..s\\n.#/./\\ne#a.#\\n...#a\\n.#...\", \"5 5 1\\ns..#a\\n.#...\\na#e.#\\n...#b\\n.#...\", \"5 5 2\\ns.#.a\\n.#../\\ne#a.... | none | {
"id": "p02211 Apple Adventure",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A palidrome craftsperson starts to work in the early... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\nab\\nba\\n1 1\\n2 2\", \"2 2\\nab\\nba\\n1 1\\n1 2\", \"2 2\\nab\\na\\n1 1\\n1 2\", \"2 2\\nac\\nba\\n1 1\\n2 2\", \"2 2\\nba\\na\\n1 1\\n1 2\", \"2 2\\nba\\nb\\n1 1\\n1 2\", \"2 2\\n`b\\nb`\\n1 2\\n1 2\", \"4 2\\n`c\\nbb\\n-2 -4\\n2 4\", \"2 2\\nab\\na\\n1 2\\n1 2\", \"2 2\\n... | none | {
"id": "p01424 Palindrome Generator",
"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 Sambhli village is stretched along the motorway ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n10 20 30\", \"5\\n10003 10004 10001 10002 1\"], \"outputs\": [\"0\\n10.000000 20.000000 30.000000\", \"0.500000\\n1.000000 10001.500000 10003.500000\"]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-6522",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Kolya got string s for his birthday, the string cons... | code | {
"ground_truth": "{\"inputs\": [\"aaba\\n2\\n\", \"aaabbbb\\n2\\n\", \"abracadabra\\n10\\n\", \"zwvrx\\n3\\n\", \"ayi\\n10\\n\", \"eexlzphiay\\n1\\n\", \"zumtumtlitf\\n2\\n\", \"xbmrxbmrkzovhb\\n3\\n\", \"ijtvifbuajod\\n5\\n\", \"jhfwjyyzwrjiyrrgveiqkoltivghgkontrqragikttxxuwszjwqhwxindyrdqhucnbwgwrppgqmsasrzohezjlf... | MEDIUM | {
"id": "taco-train-1977",
"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 alternating sum of an array A = [A_{1}, A_{2}, \... | code | {
"ground_truth": "{\"inputs\": [\"2\\n3\\n1 5 2\\n5\\n1 10 1 5 2\\n\", \"2\\n5\\n10 9 8 7 6\\n4\\n1 2 3 4\\n\", \"3\\n4\\n9 8 7 6\\n6\\n1 2 3 4 5 6\\n3\\n6 7 8\\n\", \"4\\n3\\n10 20 30\\n5\\n1 2 3 4 5\\n4\\n4 3 2 1\\n7\\n10 20 10 20 10 20 10\\n\", \"1\\n4\\n100 200 300 400\\n\", \"2\\n5\\n1 2 3 4 5\\n6\\n1 2 3 4 5 6... | HARD | {
"id": "taco-test-231",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are preparing for an exam on scheduling theory. ... | code | {
"ground_truth": "{\"inputs\": [\"5 300\\n3 100\\n4 150\\n4 80\\n2 90\\n2 300\", \"2 100\\n1 787\\n2 788\", \"2 100\\n2 42\\n2 58\", \"1 1\\n1 1\", \"10 481\\n4 25\\n3 85\\n6 96\\n6 13\\n1 9\\n4 27\\n2 7\\n3 42\\n9 66\\n9 70\", \"1 1000000000\\n1 10000\", \"1 1\\n1 10000\", \"5 66\\n2 64\\n4 91\\n5 91\\n1 79\\n3 85\... | rating_1601-1900 | {
"id": "913D",
"rating": 1800,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Tuzik and Vanya are playing the following game.\nThe... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"4 4\", \"2 2\"]], \"outputs\": [[\"Tuzik\", \"Vanya\"]]}",
"style": "rule"
} | HARD | {
"id": "taco-train-15340",
"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 of integers of size, N. Assume ‘0’ as ... | code | {
"ground_truth": "{\"inputs\": [\"arr[ ] = {2, 2, 0, 4, 0, 8}\", \"arr[ ] = {0, 2, 2, 2, 0, 6, 6, 0, 0, 8}\"], \"outputs\": [\"4 4 8 0 0 0\", \"4 2 12 8 0 0 0 0 0 0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-3856",
"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 is a special offer in Vasya's favourite superm... | code | {
"ground_truth": "{\"inputs\": [\"2\\n10 3 1 1\\n1000000000 1 1000000000 1\\n\", \"1\\n19260817 1 1 1\\n\", \"16\\n1 1 1 1\\n1 1 1 1000000000\\n1 1 1000000000 1\\n1 1 1000000000 1000000000\\n1 1000000000 1 1\\n1 1000000000 1 1000000000\\n1 1000000000 1000000000 1\\n1 1000000000 1000000000 1000000000\\n1000000000 1 1... | EASY | {
"id": "taco-train-19321",
"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": "Many phones use a nine-pivot unlock pattern. The nin... | code | {
"ground_truth": "{\"inputs\": [\"LRRRSRL\\n\", \"??AS???\\n\"], \"outputs\": [\"44\\n\", \"0\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-20101",
"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": "This is a harder version of 1A - Bear and Vowels.\n\... | code | {
"ground_truth": "{\"inputs\": [\"100 35\\nbaabbbbabbbbabbbaabbbbbabbbbbbbbbababbbbbbbbbbbbbbbbbbbabbbabababbbbabbbbbabbbbbbbbbabbbbabababbbabb\\n\", \"100 30\\njpcgbuhfzrefkotgvbyccisvjdemoitjqutzlugxiktgxnxmnamykpdgwddhwzmwdbinorweydwrhjqoptdoafidaqrnfmismzoa\\n\", \"3000 333\\ntlpprzeyrihpuvlploarcoyzijueyrbliyon... | EASY | {
"id": "taco-train-19460",
"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": "Nadaca is a country with N$N$ cities. These cities a... | code | {
"ground_truth": "{\"inputs\": [[\"3\", \"4 3 3\", \"1 2\", \"1 3\", \"1 4\", \"0\", \"4 3 3\", \"1 2\", \"1 3\", \"1 4\", \"1\", \"2 2\", \"4 3 3\", \"1 2\", \"1 3\", \"1 4\", \"1\", \"2 1\"]], \"outputs\": [[\"28\", \"4\", \"6\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-22772",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Valya and Tolya are an ideal pair, but they quarrel ... | code | {
"ground_truth": "{\"inputs\": [\"3\\nabb\\ndad\\n\", \"8\\ndrpepper\\ncocacola\\n\", \"1\\nh\\np\\n\", \"2\\nxc\\nda\\n\", \"3\\nbab\\naab\\n\", \"15\\nxrezbaoiksvhuww\\ndcgcjrkafntbpbl\\n\", \"3\\nbaa\\nbba\\n\", \"10\\ndaefcecfae\\nccdaceefca\\n\", \"10\\nfdfbffedbc\\ncfcdddfbed\\n\", \"100\\nbltlukvrharrgytdxnbj... | MEDIUM_HARD | {
"id": "taco-test-94",
"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": "On a small island, there are two towns Darkside and ... | code | {
"ground_truth": "{\"inputs\": [\"3 3 2 1\\n1 1 4\", \"3 3 2 1\\n1 4 1\", \"3 3 2 1\\n1 1 0\", \"3 6 1 1\\n2 2 0\", \"3 6 2 1\\n1 1 0\", \"3 6 2 1\\n1 2 0\", \"3 6 2 1\\n2 2 0\", \"3 6 1 1\\n2 2 1\", \"3 4 1 1\\n2 2 1\", \"3 4 2 1\\n2 2 1\", \"3 3 2 2\\n1 1 4\", \"3 3 2 0\\n1 4 1\", \"3 3 2 0\\n1 1 0\", \"3 6 2 2\\n... | none | {
"id": "p01346 Ropeway",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a positive integer n, find and return the longe... | code | {
"ground_truth": "{\"fn_name\": \"binaryGap\", \"inputs\": [[22]], \"outputs\": [2]}",
"style": "rule"
} | EASY | {
"id": "taco-train-24152",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a set, we need to find the maximum and minimum ... | code | {
"ground_truth": "{\"inputs\": [\"arr[] = {1, 2, 3};\", \"arr[] = {4, -2, 5};\", \"arr[] = {-4, -2, 3, 7, 5, 0, 1};\"], \"outputs\": [\"Maximum product = 6\\r\\nMinimum product = 1\", \"Maximum product = 20\\r\\nMinimum product = -40\", \"Maximum product = 840\\r\\nMinimum product = -420\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-6896",
"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": "Recently Max has got himself into popular CCG \"Brai... | code | {
"ground_truth": "{\"inputs\": [\"2 1 1\\n10 15\\n6 1\\n\", \"3 0 3\\n10 8\\n7 11\\n5 2\\n\", \"1 0 0\\n2 1\\n\", \"2 11 1\\n1 4\\n1 5\\n\", \"4 8 1\\n9 9\\n7 6\\n2 4\\n6 10\\n\", \"2 13 2\\n208637 682633\\n393097 724045\\n\", \"2 1 2\\n20 1\\n22 23\\n\", \"1 0 200000\\n1 42\\n\", \"2 3 14\\n28 5\\n32 47\\n\", \"3 1... | rating_>1900 | {
"id": "976_E. Well played!",
"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": "Alice and Bob have received three big piles of candi... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 3 4\\n1 10 100\\n10000000000000000 10000000000000000 10000000000000000\\n23 34 45\\n\", \"1\\n111 2 3\\n\", \"1\\n111 2 3\\n\", \"1\\n111 4 3\\n\", \"4\\n1 3 4\\n1 10 100\\n10000000000000000 10000000000000000 10000000000000000\\n23 2 45\\n\", \"1\\n111 3 3\\n\", \"4\\n1 3 2\\n... | EASY | {
"id": "taco-train-20227",
"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": "Sonya decided to organize an exhibition of flowers. ... | code | {
"ground_truth": "{\"inputs\": [\"5 3\\n1 3\\n2 4\\n2 5\", \"6 3\\n5 6\\n1 4\\n4 6\", \"10 4\\n3 3\\n1 6\\n9 9\\n10 10\", \"1 1\\n1 1\", \"1000 10\\n3 998\\n2 1000\\n1 999\\n2 1000\\n3 998\\n2 1000\\n3 998\\n1 1000\\n2 1000\\n3 999\", \"1000 20\\n50 109\\n317 370\\n710 770\\n440 488\\n711 757\\n236 278\\n314 355\\n1... | rating_1201-1400 | {
"id": "1004B",
"rating": 1300,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
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": "ZS the Coder and Chris the Baboon has arrived at Uda... | code | {
"ground_truth": "{\"inputs\": [\"3 2 2\\n0 0 0\\n1 2\\n3 4\\n5 6\", \"3 2 2\\n2 1 2\\n1 3\\n2 4\\n3 5\", \"3 2 2\\n2 0 0\\n1 3\\n2 4\\n3 5\", \"3 2 3\\n2 1 2\\n1 3\\n2 4\\n3 5\", \"3 2 3\\n0 0 0\\n10 30000\\n20000 1000000000\\n1000000000 50000\", \"4 2 1\\n0 0 0 0\\n10 30000\\n20000 1000000000\\n1000000000 50000\\n... | rating_1601-1900 | {
"id": "711C",
"rating": 1700,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Bajtek is learning to skate on ice. He's a beginner,... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2 1\\n1 2\\n\", \"2\\n2 1\\n4 1\\n\", \"55\\n1 1\\n1 14\\n2 2\\n2 19\\n3 1\\n3 3\\n3 8\\n3 14\\n3 23\\n4 1\\n4 4\\n5 5\\n5 8\\n5 15\\n6 2\\n6 3\\n6 4\\n6 6\\n7 7\\n8 8\\n8 21\\n9 9\\n10 1\\n10 10\\n11 9\\n11 11\\n12 12\\n13 13\\n14 14\\n15 15\\n15 24\\n16 5\\n16 16\\n17 5\\n17 1... | rating_<=1200 | {
"id": "217_A. Ice Skating",
"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": "Tic-Tac-Toe are three cousins. They planned to play ... | code | {
"ground_truth": "{\"inputs\": [\"4\\nINDIA\\nPROGRAM\\nHACKEREARTH\\nCOLOUR\\n\\nSAMPLE\", \"100\\nSPLJVSBNMQ\\nWWHUTVFYVS\\nIIDHCVDPTY\\nMYDGOIXYPH\\nOJOHEUSGQJ\\nBFNBMMDCPC\\nNRSRPSAGOE\\nNSIPJMNQTP\\nTUBHAAOBCQ\\nOZOHLOIXHK\\nSVNLNUILUP\\nXMNHGMOYWJ\\nEADXWJNVRW\\nYKTCRWMMQH\\nHIMMNSZLJF\\nVRHXCEGBAI\\nPIXEKYDSY... | none | {
"id": "tic-tac-toe-alphabets",
"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 Ancient Kingdom of Snuke, there was a pyramid... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2 3 5\\n2 1 5\\n1 2 5\\n3 2 5\\n\", \"2\\n0 0 100\\n1 1 98\\n\", \"3\\n99 1 191\\n100 1 192\\n99 0 192\\n\", \"2\\n0 0 180291302\\n20 20 180291262\\n\", \"4\\n47 59 314159265\\n59 47 314159265\\n59 59 314159265\\n47 47 314159265\\n\", \"3\\n67 85 414106187\\n52 100 414106187\\n8... | EASY | {
"id": "taco-train-19752",
"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": "Recently Lynyrd and Skynyrd went to a shop where Lyn... | code | {
"ground_truth": "{\"inputs\": [\"3 6 3\\n2 1 3\\n1 2 3 1 2 3\\n1 5\\n2 6\\n3 5\\n\", \"2 4 3\\n2 1\\n1 1 2 2\\n1 2\\n2 3\\n3 4\\n\", \"1 1 1\\n1\\n1\\n1 1\\n\", \"1 1 1\\n1\\n1\\n1 1\\n\", \"2 4 3\\n2 1\\n1 1 2 2\\n2 2\\n2 3\\n3 4\\n\", \"3 6 3\\n2 1 3\\n1 1 3 1 2 3\\n1 5\\n2 6\\n3 5\\n\", \"3 6 3\\n2 1 3\\n1 2 3 1... | HARD | {
"id": "taco-train-5264",
"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": "Prof. R.K.Vats of NIT Hamirpur has given a problem t... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2 4 8\\n3 6 7\"], \"outputs\": [\"Case 1: Yes\\nCase 2: No\"]}",
"style": "rule"
} | none | {
"id": "goc203",
"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": "As you might know, the memory in current computers c... | code | {
"ground_truth": "{\"inputs\": [\"1001\\n\", \"1111\\n\", \"00000\\n\"], \"outputs\": [\"3\\n\", \"1\\n\", \"1\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-16672",
"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": "Fatal Eagle has decided to do something to save his ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n10 3\\n20 5\\n\\nSAMPLE\", \"10\\n113 6\\n93 2\\n163 20\\n163 8\\n143 2\\n121 3\\n199 5\\n156 16\\n54 9\\n133 1\", \"10\\n113 6\\n93 2\\n163 20\\n163 5\\n143 2\\n121 3\\n199 5\\n156 16\\n54 9\\n133 1\", \"2\\n7 3\\n20 5\\n\\nSAMPLE\", \"10\\n113 6\\n93 2\\n106 20\\n163 5\\n143 2... | none | {
"id": "supernatural-squad-2",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given two strings s and t consisting of smal... | code | {
"ground_truth": "{\"inputs\": [\"?aa?\\nab\\n\", \"??b?\\nza\\n\", \"abcd\\nabacaba\\n\", \"mqwstphetbfrsyxuzdww\\nrutseqtsbh\\n\", \"????????????????????\\nxwkxsxlrre\\n\", \"fzjqgrgzzzghrwgwhfjq\\nggwfrjzzqh\\n\", \"ng?\\nvu\\n\", \"???\\nb\\n\", \"??a?\\na\\n\", \"c?aa???a?cdcc??\\nabcadbaccb\\n\", \"cc?cdb?????... | MEDIUM | {
"id": "taco-train-15386",
"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": "Pappu is confused between 6 & 9. He works in the bill... | code | {
"ground_truth": "{\"inputs\": [\"amount = 56\", \"amount = 66\"], \"outputs\": [\"3\", \"33\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-24453",
"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": "A group of friends has just played a round of miniat... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n2 2 2\\n4 2 1\\n4 4 1\\n\", \"6 4\\n3 1 2 2\\n4 3 2 2\\n6 6 3 2\\n7 3 4 3\\n3 4 2 4\\n2 3 3 5\\n\"], \"outputs\": [\"1\\n2\\n2\\n\", \"1\\n2\\n5\\n5\\n4\\n3\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-13578",
"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": "Tourist walks along the X axis. He can choose either... | code | {
"ground_truth": "{\"inputs\": [\"3\\n-1 1\\n42 7\\n40 8\\n2\\n\", \"12\\n-6712 6\\n2375 73\\n4643 197\\n-5660 215\\n-378 223\\n2228 307\\n3305 340\\n3449 468\\n-4389 707\\n-7161 729\\n-1838 921\\n-1655 985\\n730\\n\", \"5\\n1 5\\n6 7\\n17127 17\\n17072 42\\n17042 77\\n3\\n\", \"7\\n-976754 20479\\n79929143 911181\\... | rating_>1900 | {
"id": "76_F. Tourist",
"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": "One fine day Sasha went to the park for a walk. In t... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\n4 3 2 16\\n1 13 14 15\\n5 7 8 12\\n6 11 9 10\\n\", \"2 3\\n1 2 3\\n4 5 6\\n\", \"1 5\\n1 2 3 4 5\\n\", \"1 1\\n1\\n\", \"1 5\\n2 1 3 4 5\\n\", \"1 1\\n1 2 3 4 5\\n\", \"1 2\\n1 2 3 4 2\\n\", \"4 1\\n1 2 3 4 2\\n\", \"3 1\\n1 2 3 4 2\\n\", \"1 1\\n1 2 3 4 2\\n\", \"2 1\\n1 2 3 ... | rating_>1900 | {
"id": "1109_F. Sasha and Algorithm of Silence's Sounds",
"rating": 3200,
"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": "Vanya walks late at night along a straight street of... | code | {
"ground_truth": "{\"inputs\": [\"7 15\\n15 5 3 7 9 14 0\\n\", \"2 5\\n2 5\\n\", \"46 615683844\\n431749087 271781274 274974690 324606253 480870261 401650581 13285442 478090364 266585394 425024433 588791449 492057200 391293435 563090494 317950 173675329 473068378 356306865 311731938 192959832 321180686 141984626 578... | rating_<=1200 | {
"id": "492_B. Vanya and Lanterns",
"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": "Ancient Egyptians are known to have understood diffi... | code | {
"ground_truth": "{\"inputs\": [\"(1?1)\\n1 0\\n\", \"(2?(1?2))\\n1 1\\n\", \"((1?(5?7))?((6?2)?7))\\n3 2\\n\", \"((1?(5?7))?((6?2)?7))\\n2 3\\n\", \"((4?3)?(((2?(4?((4?((2?(3?(7?3)))?(((((3?(6?2))?3)?(((((6?6)?(1?5))?((8?8)?1))?(5?((7?((6?((((3?8)?8)?(8?5))?7))?8))?((8?(2?8))?3))))?6))?(8?(7?5)))?8)))?((((7?(4?3))?... | HARD | {
"id": "taco-train-5123",
"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": "```if-not:ruby\nCreate a function, that accepts an ar... | code | {
"ground_truth": "{\"fn_name\": \"interleave\", \"inputs\": [[[1, 2, 3], [\"c\", \"d\", \"e\"]], [[1, 2, 3], [4, 5]], [[1, 2], [3, 4, 5]], [[null], [null, null], [null, null, null]], [[1, 2, 3], [4, 5, 6], [7, 8, 9]], [[]]], \"outputs\": [[[1, \"c\", 2, \"d\", 3, \"e\"]], [[1, 4, 2, 5, 3, null]], [[1, 3, 2, 4, null,... | EASY | {
"id": "taco-train-239",
"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 mysterious language (codenamed \"Sec... | code | {
"ground_truth": "{\"inputs\": [\"1\\n\"], \"outputs\": [\"INTERCAL\"]}",
"style": "rule"
} | rating_>1900 | {
"id": "171_E. MYSTERIOUS LANGUAGE",
"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": "There are *n* cities and *m* two-way roads in Berlan... | code | {
"ground_truth": "{\"inputs\": [\"2\\n5 5\\n2 1\\n4 5\\n2 3\\n1 3\\n3 5\\n7 2\\n3 7\\n4 2\", \"4\\n9 17\\n3 6\\n2 6\\n6 9\\n4 1\\n2 8\\n1 9\\n7 9\\n8 5\\n1 7\\n4 9\\n6 7\\n3 4\\n9 3\\n8 4\\n2 1\\n3 8\\n2 7\\n5 6\\n2 5\\n3 4\\n1 3\\n4 5\\n5 3\\n2 3\\n12 8\\n10 2\\n9 2\\n6 9\\n10 6\\n8 2\\n4 10\\n11 2\\n4 11\\n19 10\\... | rating_>1900 | {
"id": "723E",
"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": "Filya just learned new geometry object — rectangle. ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n2\\n1\\n0\\n1\\n1\\n1\\n0\\n1\\n\", \"65536\\n65536 65536 65536 65536\\n65535 65535 65535 65535\\n\", \"65536\\n39235 60239 60844 61310\\n734 4630 35003 28918\\n\", \"65536\\n1 32769 32768 65536\\n32769 1 65536 32768\\n\", \"65536\\n65536 65536 65536 65536\\n1 1 65536 65535\\n\"... | rating_>1900 | {
"id": "714_D. Searching Rectangles",
"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": "Yura is tasked to build a closed fence in shape of a... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 2 3\\n12 34 56\\n\", \"1\\n5 4 3\\n\", \"1\\n2434 2442 14\\n\", \"1\\n3 4 5\\n\", \"1\\n10 20 10\\n\", \"2\\n1 2 3\\n12 34 56\\n\", \"1\\n2 1 2\\n\", \"1\\n6 4 3\\n\", \"1\\n4647 2442 14\\n\", \"1\\n3 1 5\\n\", \"1\\n9 20 10\\n\", \"2\\n1 2 6\\n12 34 56\\n\", \"1\\n2 0 2\\n\",... | rating_<=1200 | {
"id": "1422_A. 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": "In Summer Informatics School, if a student doesn't b... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 3 2\\n\", \"3\\n1 2 3\\n\", \"3\\n2 3 1\\n\", \"1\\n1\\n\", \"2\\n2 1\\n\", \"100\\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 6... | EASY | {
"id": "taco-train-4159",
"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": "Polycarpus has a complex electronic device. The core... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1\\n4 7\\n4\\n1 2\\n2 3\\n4 5\\n5 6\\n\"], \"outputs\": [\"\\n0\\n1\\n2 3 5\\n\"]}",
"style": "rule"
} | rating_>1900 | {
"id": "1250_N. Wires",
"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": "Vasya is currently at a car rental service, and he w... | code | {
"ground_truth": "{\"inputs\": [\"3 1 8 10\\n10 8\\n5 7\\n11 9\\n3\\n\", \"2 2 10 18\\n10 4\\n20 6\\n5 3\\n\", \"1 1 2 2\\n1000000000 1000000000\\n1\\n\", \"1 1 1000000000 1000000000\\n100 1000000000\\n1\\n\", \"1 1 10 18\\n5 6\\n5\\n\", \"2 1 1000000000 2000000000\\n111 999999999\\n101 999999998\\n1\\n\", \"4 13 40... | rating_1601-1900 | {
"id": "737_A. Road to Cinema",
"rating": 1700,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Johnny has recently found an ancient, broken compute... | code | {
"ground_truth": "{\"inputs\": [\"10\\n10 5\\n11 44\\n17 21\\n1 1\\n96 3\\n2 128\\n1001 1100611139403776\\n1000000000000000000 1000000000000000000\\n7 1\\n10 8\\n\", \"1\\n703687441776640 327680\\n\", \"1\\n13776210264515 327680\\n\", \"10\\n10 5\\n11 44\\n17 21\\n1 1\\n96 3\\n2 128\\n1001 1100611139403776\\n1000000... | rating_<=1200 | {
"id": "1362_A. Johnny and Ancient Computer",
"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": "An array of positive integers a1, a2, ..., an is giv... | code | {
"ground_truth": "{\"inputs\": [\"8 3\\n1 1 2 2 1 3 1 1\\n2 7\\n1 6\\n2 7\\n\", \"3 2\\n1 2 1\\n1 2\\n1 3\\n\", \"9 10\\n6 2 3 1 4 8 5 9 8\\n3 9\\n6 6\\n9 9\\n9 9\\n9 9\\n2 3\\n3 9\\n3 8\\n6 9\\n5 6\\n\", \"10 10\\n5 10 9 2 9 3 5 5 6 5\\n5 10\\n2 2\\n3 10\\n4 8\\n1 3\\n1 5\\n5 5\\n10 10\\n8 9\\n6 10\\n\", \"8 10\\n1... | rating_>1900 | {
"id": "86_D. Powerful array",
"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": "\"We've tried solitary confinement, waterboarding an... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 5\\n00001\\n\", \"10\\n-10 -9 -8 -7 -6 6 7 8 9 10\\n0000111110\\n\", \"99\\n-94 -97 -95 -99 94 98 91 95 90 -98 -92 -93 -91 -100 84 81 80 89 89 70 76 79 69 74 -80 -90 -83 -81 -80 64 60 60 60 68 56 50 55 50 57 39 47 47 48 49 37 31 34 38 34 -76 -71 -70 -76 -70 23 21 24 29 2... | rating_1401-1600 | {
"id": "940_D. Alena And The Heater",
"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": "— Thanks a lot for today.\n\n— I experienced so many... | code | {
"ground_truth": "{\"inputs\": [\"2 100\\n\", \"5 30\\n\", \"77809 868097296\\n\", \"90898 94010922\\n\", \"1 1000000000\\n\", \"100000 1\\n\", \"22951 23793302\\n\", \"58832 563860457\\n\", \"100000 1000000000\\n\", \"67298 349286579\\n\", \"41163 472310076\\n\", \"90234 156145441\\n\", \"60276 428978808\\n\", \"46... | rating_1201-1400 | {
"id": "897_B. Chtholly's request",
"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": "Anya and Kirill are doing a physics laboratory work.... | code | {
"ground_truth": "{\"inputs\": [\"3\\n100 100 101\\n\", \"6\\n-1 1 1 0 0 -1\\n\", \"7\\n-10 -9 -10 -8 -10 -9 -9\\n\", \"10\\n100 100 100 100 100 100 100 100 100 100\\n\", \"6\\n1 1 1 3 3 3\\n\", \"60\\n-86077 -86075 -86076 -86076 -86077 -86077 -86075 -86075 -86075 -86077 -86075 -86076 -86075 -86075 -86075 -86076 -86... | rating_1601-1900 | {
"id": "931_C. Laboratory Work",
"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": "Pavel has several sticks with lengths equal to power... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2 2 2 2\\n\", \"3\\n1 1 1\\n\", \"3\\n3 3 3\\n\", \"1\\n1\\n\", \"1\\n963837006\\n\", \"5\\n1 3 3 5 3\\n\", \"100\\n5 5 2 4 5 4 4 4 4 2 5 3 4 2 4 4 1 1 5 3 2 2 1 3 3 2 5 3 4 5 1 3 5 4 4 4 3 1 4 4 3 4 5 2 5 4 2 1 2 2 3 5 5 5 1 4 5 3 1 4 2 2 5 1 5 3 4 1 5 1 2 2 3 5 1 3 2 4 2 4 2... | HARD | {
"id": "taco-test-580",
"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": "# Task\n Your Informatics teacher at school likes com... | code | {
"ground_truth": "{\"fn_name\": \"new_numeral_system\", \"inputs\": [[\"G\"], [\"A\"], [\"D\"], [\"E\"], [\"O\"]], \"outputs\": [[[\"A + G\", \"B + F\", \"C + E\", \"D + D\"]], [[\"A + A\"]], [[\"A + D\", \"B + C\"]], [[\"A + E\", \"B + D\", \"C + C\"]], [[\"A + O\", \"B + N\", \"C + M\", \"D + L\", \"E + K\", \"F +... | EASY | {
"id": "taco-train-17740",
"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 Paul wants to learn how to play piano. He alr... | code | {
"ground_truth": "{\"inputs\": [\"7\\n1 5 7 8 10 3 1\\n\", \"19\\n3 3 7 9 8 8 8 8 7 7 7 7 5 3 3 3 3 8 8\\n\", \"5\\n1 1 4 2 2\\n\", \"20\\n5 3 3 2 5 5 3 3 5 1 2 5 1 3 3 4 2 5 5 5\\n\", \"1\\n50\\n\", \"100\\n5 5 2 4 5 4 4 4 4 2 5 3 4 2 4 4 1 1 5 3 2 2 1 3 3 2 5 3 4 5 1 3 5 4 4 4 3 1 4 4 3 4 5 2 5 4 2 1 2 2 3 5 5 5 1... | rating_1601-1900 | {
"id": "1032_C. Playing Piano",
"rating": 1700,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Levko loves strings of length n, consisting of lower... | code | {
"ground_truth": "{\"inputs\": [\"2 3\\nyx\\n\", \"2 2\\nyz\\n\", \"4 7\\nabcd\\n\", \"100 1000\\nazazyatdzzalzzazzhlazzzgzaaaadzazbzgzaazazazzzazztgegfzzzazszfnzzahiudzeaaazmqxkzkcatjzazkzzqzaaaaha\\n\", \"1 1\\ne\\n\", \"47 0\\njuyaazzxaazzzmzbdaffzfaaxazzfzzaxaucaajzzazmzuz\\n\", \"1 0\\nc\\n\", \"10 2000\\naztza... | rating_>1900 | {
"id": "361_E. Levko and Strings",
"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 ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "AcmeCorp is always looking to expand its drilling op... | code | {
"ground_truth": "{\"inputs\": [\"2\\n5 8 4 -2 0 0 -3 2 0 0 3\\n8 10 4 -1 -1 1 -1 1 1 -1 1\\n\", \"1\\n8 9 3 -14 -14 14 -14 0 20\\n\", \"1\\n2 1 8 -4 -4 -1 -3 -2 2 2 2 1 -3 4 -4 3 4 -3 4\\n\"], \"outputs\": [\"5.2696518641\\n\", \"9\\n\", \"1.8605210188\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-733",
"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": "Ms.Kox enjoys her job, but she does not like to wast... | code | {
"ground_truth": "{\"inputs\": [\"6 9 \\n0 1 1 \\n1 2 1 \\n2 3 1 \\n3 4 1 \\n4 5 1 \\n2 4 5 \\n3 5 8 \\n1 3 3 \\n0 2 4 \\n0 5 \\n9 \\n0 1 \\n1 2 \\n2 3 \\n3 4 \\n4 5 \\n2 4 \\n3 5 \\n1 3 \\n0 2\\n\"], \"outputs\": [\"7 \\n6 \\n6 \\n8 \\n11 \\n5 \\n5 \\n5 \\n5\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-9922",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Mike is a bartender at Rico's bar. At Rico's, they p... | code | {
"ground_truth": "{\"inputs\": [\"5 6\\n1 2 3 4 6\\n1\\n2\\n3\\n4\\n5\\n1\", \"3 3\\n151790 360570 1\\n2\\n3\\n3\", \"1 1\\n1\\n1\", \"5 10\\n1 1 1 1 1\\n1\\n2\\n3\\n4\\n5\\n5\\n4\\n3\\n2\\n1\", \"1 2\\n499590\\n1\\n1\"], \"outputs\": [\"0\\n1\\n3\\n5\\n6\\n2\", \"0\\n1\\n0\", \"0\", \"0\\n1\\n3\\n6\\n10\\n6\\n3\\n1... | rating_>1900 | {
"id": "547C",
"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": "Madeline has an array a of n integers. A pair (u, v)... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 8 1 6\\n\", \"5\\n1 1 1 2 2\\n\", \"3\\n3 1 2\\n\", \"1\\n1\\n\", \"20\\n10 10 9 9 8 8 7 7 6 6 5 5 4 4 3 3 2 2 1 1\\n\", \"5\\n3 4 3 1 2\\n\", \"100\\n32 85 33 27 35 48 64 40 45 120 68 58 108 115 99 71 47 82 42 34 63 49 102 30 88 70 73 52 51 95 104 41 38 59 91 21 43 107 44 113... | rating_>1900 | {
"id": "1375_E. Inversion SwapSort",
"rating": 2500,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given an integer array a_1, a_2, ..., a_n an... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 10\\n20\\n2 69\\n6 9\\n7 8\\n1 2 1 3 1 2 1\\n10 1\\n1 2 3 1 2 6 1 6 8 10\\n\", \"1\\n84 781\\n403 867 729 928 240 410 849 95 651 852 230 209 358 596 576 230 924 448 288 19 680 470 839 107 931 809 347 903 399 185 840 326 338 758 584 385 862 140 256 537 677 195 593 349 588 452 7... | rating_1401-1600 | {
"id": "1622_C. Set or Decrease",
"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": "Construct a sequence a = {a_1,\\ a_2,\\ ...,\\ a_{2^... | code | {
"ground_truth": "{\"inputs\": [\"1 0\\n\", \"1 1\\n\", \"5 58\\n\", \"17 1000000000\\n\", \"17 262144\\n\", \"7 262143\\n\", \"17 262142\\n\", \"17 131072\\n\", \"17 131071\\n\", \"17 131070\\n\", \"17 65536\\n\", \"17 65535\\n\", \"17 65534\\n\", \"17 2\\n\", \"17 1\\n\", \"17 0\\n\", \"0 1000000000\\n\", \"0 2\\n... | MEDIUM_HARD | {
"id": "taco-train-788",
"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": "You will participate in the ski competition held on ... | code | {
"ground_truth": "{\"inputs\": [\"4 5\\n1 2 3 5\\n1 3 1 3\\n3 2 2 5\\n2 4 6 1\\n3 4 5 5\", \"3 3\\n1 2 1 2\\n2 3 1 2\\n1 3 1 3\", \"3 3\\n1 2 1 2\\n2 3 1 2\\n1 3 1 1\", \"3 3\\n1 2 1 2\\n2 3 0 2\\n1 3 1 1\", \"4 5\\n1 2 3 5\\n1 3 1 3\\n3 2 2 5\\n2 4 9 1\\n3 4 5 5\", \"3 3\\n1 2 1 2\\n2 3 0 2\\n1 3 1 0\", \"3 3\\n1 2... | none | {
"id": "p00319 Downhill Race",
"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 distant future on Earth day lasts for n hours and... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 1\\n1 3\\n\", \"3\\n1 2 3\\n1 3\\n\", \"2\\n5 1\\n1 2\\n\", \"10\\n7171 2280 6982 9126 9490 2598 569 6744 5754 1855\\n7 9\\n\", \"100\\n6072 8210 6405 1191 2533 8552 7594 8793 2207 8855 7415 6252 3433 2339 5532 3118 3054 5750 3690 9843 3881 1390 936 8611 7099 988 7730 38... | rating_1401-1600 | {
"id": "939_C. Convenient For Everybody",
"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": "Anton is playing a very interesting computer game, b... | code | {
"ground_truth": "{\"inputs\": [\"20 3 2\\n10 99\\n2 4 3\\n20 10 40\\n4 15\\n10 80\\n\", \"20 3 2\\n10 99\\n2 4 3\\n200 100 400\\n4 15\\n100 800\\n\", \"10 3 3\\n10 33\\n1 7 6\\n17 25 68\\n2 9 10\\n78 89 125\\n\", \"94 1 1\\n26 324\\n7\\n236\\n77\\n5\\n\", \"3 4 5\\n5 9\\n1 2 1 1\\n3 5 4 1\\n1 1 1 1 3\\n1 2 3 4 5\\n... | MEDIUM_HARD | {
"id": "taco-test-100",
"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": "You are the best freelancer in the city. Everybody kn... | code | {
"ground_truth": "{\"fn_name\": \"work_needed\", \"inputs\": [[60, [[1, 0]]], [60, [[0, 0]]]], \"outputs\": [[\"Easy Money!\"], [\"I need to work 1 hour(s) and 0 minute(s)\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-6221",
"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": "Sereja have array A' that contain N integers. Now Se... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"3 2 4\", \"3 4 1\", \"4 4 1\", \"1 1 1 1\", \"\", \"\"]], \"outputs\": [[\"2 1 3\", \"4 3 2 1\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-24999",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The chef has a recipe he wishes to use for his guest... | code | {
"ground_truth": "{\"inputs\": [[\"3\", \"2 4 4\", \"3 2 3 4\", \"4 3 15 9 6\", \"\"]], \"outputs\": [[\"1 1\", \"2 3 4\", \"1 5 3 2\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-24139",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given an array of n integers. For each eleme... | code | {
"ground_truth": "{\"inputs\": [\"4 1 2 3 4\\n\", \"5 5 46 372 81 9\\n\"], \"outputs\": [\"5 3 5 7 \", \"14 51 418 453 90 \"]}",
"style": "rule"
} | rating_>1900 | {
"id": "470_F. Pairwise Sums",
"rating": 2300,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You desperately need to build some string t. For tha... | code | {
"ground_truth": "{\"inputs\": [\"bbaze\\n3\\nbzb 2\\naeb 3\\nba 10\\n\", \"abacaba\\n4\\naba 2\\nbcc 1\\ncaa 2\\nbbb 5\\n\", \"xyz\\n4\\naxx 8\\nza 1\\nefg 4\\nt 1\\n\", \"aaabbtttefg\\n6\\nabbbca 3\\nffatgg 2\\nyioa 4\\nppaeg 2\\naetgffff 4\\ntreiiaav 10\\n\", \"tatarioispoe\\n5\\ntyfad 3\\npopsia 10\\ntszza 3\\ni... | HARD | {
"id": "taco-test-801",
"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 problem statements in [Vietnamese],\n[Bengali],... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 1 1 1\\n3 2 1 1\\n5 2 1 2\"], \"outputs\": [\"3\\n4\\n13\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-320",
"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": "As you might remember from the previous round, Vova ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 3\\n1 4\\n3 6 3\\n2 4\\n3 6 3\\n\", \"5\\n1 3\\n1 4\\n3 8 3\\n2 4\\n3 6 3\\n\", \"5\\n1 3\\n1 4\\n3 6 3\\n1 4\\n3 6 3\\n\", \"5\\n1 3\\n1 4\\n3 6 3\\n1 4\\n3 2 3\\n\", \"5\\n1 6\\n1 4\\n3 6 3\\n1 4\\n3 6 3\\n\", \"5\\n1 3\\n1 4\\n3 6 5\\n1 4\\n1 2 3\\n\", \"5\\n1 3\\n1 4\\n3 7... | rating_>1900 | {
"id": "817_E. Choosing The Commander",
"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 an integer array arr, partition the array into ... | code | {
"ground_truth": "{\"inputs\": [\"n = 7\\r\\nk = 3\\r\\narr = [1,15,7,9,2,5,10]\", \"n = 1\\r\\nk = 1\\r\\narr = [1]\"], \"outputs\": [\"84\", \"1\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-3876",
"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": "Inna loves digit 9 very much. That's why she asked D... | code | {
"ground_truth": "{\"inputs\": [\"1\\n\", \"123456789987654321\\n\", \"369727\\n\", \"123456789\\n\", \"3639272918194549\\n\", \"1212172727\\n\", \"1188\\n\", \"1212121217272727121\\n\", \"11213141516171819212223242526272829313233343536373839414243444546474849515253545565758596162636465667686971727374757677879818283... | rating_1401-1600 | {
"id": "374_B. Inna and Nine",
"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": "Fishing Prince loves trees, and he especially loves ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n5\\n1 2\\n1 3\\n2 4\\n2 5\\n6\\n1 2\\n1 3\\n1 4\\n2 5\\n2 6\\n\", \"15\\n4\\n1 2\\n2 3\\n3 4\\n4\\n1 2\\n2 4\\n3 4\\n4\\n1 2\\n1 3\\n1 4\\n4\\n1 3\\n2 3\\n4 3\\n4\\n1 4\\n3 4\\n2 3\\n4\\n4 1\\n3 2\\n2 1\\n5\\n1 2\\n2 3\\n3 4\\n4 5\\n5\\n1 2\\n2 3\\n4 1\\n5 1\\n5\\n1 2\\n3 1\\n4 ... | rating_1601-1900 | {
"id": "1406_C. Link Cut Centroids",
"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": "Watson gives an integer $N$ to Sherlock and asks him... | code | {
"ground_truth": "{\"inputs\": [\"2\\n9\\n8\\n\"], \"outputs\": [\"0\\n3\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-23428",
"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": "There are *n* walruses standing in a queue in an air... | code | {
"ground_truth": "{\"inputs\": [\"6\\n10 8 5 3 50 45\", \"7\\n10 4 6 3 2 8 15\", \"5\\n10 3 1 10 11\", \"13\\n18 9 8 9 23 20 18 18 33 25 31 37 36\", \"10\\n15 21 17 22 27 21 31 26 32 30\", \"10\\n18 20 18 17 17 13 22 20 34 29\", \"13\\n16 14 12 9 11 28 30 21 35 30 32 31 43\", \"15\\n18 6 18 21 14 20 13 9 18 20 28 13... | rating_1401-1600 | {
"id": "91B",
"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": "The ancient and mysterious Apaxian civilization, whi... | code | {
"ground_truth": "{\"inputs\": [\"robert\\n\", \"rooobert\\n\", \"roooooobertapalaxxxxios\\n\"], \"outputs\": [\"robert\\n\", \"robert\\n\", \"robertapalaxios\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-20711",
"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.\nFind the minimu... | code | {
"ground_truth": "{\"inputs\": [\"3\\n\", \"10\\n\", \"999999999\\n\", \"1\\n\", \"2\\n\", \"36426\\n\", \"79445\\n\", \"90081\\n\", \"433933447\\n\", \"476190629\\n\", \"262703497\\n\", \"1000000000\\n\", \"1604548808\", \"5\", \"17\", \"1558666763\", \"8\", \"20\", \"1031129102\", \"12\", \"30\", \"1937535494\", \... | EASY | {
"id": "taco-train-20388",
"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": "The AKS algorithm for testing whether a number is pri... | code | {
"ground_truth": "{\"fn_name\": \"aks_test\", \"inputs\": [[3], [4], [5], [7], [10], [33], [101], [1], [2], [11213], [8191], [8192]], \"outputs\": [[true], [false], [true], [true], [false], [false], [true], [false], [true], [true], [true], [false]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-9973",
"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": "Kuriyama Mirai has killed many monsters and got many... | code | {
"ground_truth": "{\"inputs\": [\"6\\n6 4 2 7 2 7\\n3\\n2 3 6\\n1 3 4\\n1 1 6\", \"4\\n5 5 2 3\\n10\\n1 2 4\\n2 1 4\\n1 1 1\\n2 1 4\\n2 1 2\\n1 1 1\\n1 3 3\\n1 1 3\\n1 4 4\\n1 2 2\", \"4\\n2 2 3 6\\n9\\n2 2 3\\n1 1 3\\n2 2 3\\n2 2 3\\n2 2 2\\n1 1 3\\n1 1 3\\n2 1 4\\n1 1 2\", \"18\\n26 46 56 18 78 88 86 93 13 77 21 8... | rating_<=1200 | {
"id": "433B",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given an undirected unweighted tree consisti... | code | {
"ground_truth": "{\"inputs\": [\"9\\n9 3\\n3 5\\n1 2\\n4 3\\n4 7\\n1 7\\n4 6\\n3 8\\n\", \"10\\n6 8\\n10 3\\n3 7\\n5 8\\n1 7\\n7 2\\n2 9\\n2 8\\n1 4\\n\", \"11\\n1 2\\n2 3\\n3 4\\n1 5\\n1 6\\n6 7\\n5 8\\n5 9\\n4 10\\n4 11\\n\", \"7\\n1 4\\n1 5\\n1 6\\n2 3\\n2 4\\n4 7\\n\", \"6\\n1 2\\n1 3\\n1 4\\n4 5\\n4 6\\n\", \"... | rating_>1900 | {
"id": "1073_F. Choosing Two Paths",
"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 ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Andi and Bob are the best friends of each other.They... | code | {
"ground_truth": "{\"inputs\": [\"10000\\n40948825 17115277 23221686 18927955 23341139 27793199 2860249 9006139 44606619 63788292 98407637 42097373 16575413 60717778 59981827 38012510 83512017 61898415 88087784 71073497 9968349 92553338 80880682 97228290 15861243 62653925 82119763 20039182 32525868 29419699 54912509... | MEDIUM | {
"id": "taco-train-4394",
"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": "Memory is now interested in the de-evolution of obje... | code | {
"ground_truth": "{\"inputs\": [\"6 3\", \"8 5\", \"22 4\", \"4 3\", \"57 27\", \"61 3\", \"5 4\", \"10 6\", \"20 10\", \"30 5\", \"25 24\", \"25 3\", \"12 7\", \"18 6\", \"100000 3\", \"100000 9999\", \"9999 3\", \"5323 32\", \"6666 66\", \"38578 32201\", \"49449 5291\", \"65310 32879\", \"41183 4453\", \"49127 971... | rating_1401-1600 | {
"id": "712C",
"rating": 1600,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Problem\n\nAt Abandoned University, N waste material... | code | {
"ground_truth": "{\"inputs\": [\"4 10 1\\n1 2 3 4\", \"4 11 1\\n1 2 3 4\", \"6 25 3\\n8 5 1 1 2 6\", \"4 10 1\\n0 2 3 4\", \"6 25 3\\n8 5 1 1 2 4\", \"4 10 1\\n0 2 6 4\", \"4 21 1\\n1 1 7 3\", \"6 25 1\\n0 1 0 2 2 8\", \"6 25 3\\n8 5 1 0 2 4\", \"8 10 1\\n0 2 6 4\", \"6 25 3\\n8 5 1 0 2 3\", \"6 25 3\\n8 5 1 1 2 3\... | none | {
"id": "p01031 Smell Searcher",
"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": "Alex doesn't like boredom. That's why whenever he ge... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 2\\n\", \"3\\n1 2 3\\n\", \"9\\n1 2 1 3 2 2 2 2 3\\n\", \"5\\n3 3 4 5 4\\n\", \"5\\n5 3 5 3 4\\n\", \"5\\n4 2 3 2 5\\n\", \"10\\n10 5 8 9 5 6 8 7 2 8\\n\", \"10\\n1 1 1 1 1 1 2 3 4 4\\n\", \"100\\n6 6 8 9 7 9 6 9 5 7 7 4 5 3 9 1 10 3 4 5 8 9 6 5 6 4 10 9 1 4 1 7 1 4 9 10 8 2 9... | MEDIUM | {
"id": "taco-train-22770",
"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": "Alexander is a well-known programmer. Today he decid... | code | {
"ground_truth": "{\"inputs\": [\"7\\n2\\n2 5\\n4\\n1 8 2 3\\n3\\n3 8 9\\n5\\n64 25 75 100 50\\n1\\n42\\n6\\n96 128 88 80 52 7\\n5\\n2 4 8 16 17\\n\", \"1\\n32\\n660 510 840 483 805 140 280 476 474 70 120 728 449 210 111 645 105 580 420 84 798 520 132 168 814 329 552 145 332 602 296 430\\n\", \"1\\n16\\n1000 50 643 ... | EASY | {
"id": "taco-train-7435",
"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": "A 1-indexed array is called *positive* if every ele... | code | {
"ground_truth": "{\"inputs\": [\"5\\n3\\n2 3 3\\n4\\n3 1 1 2\\n3\\n1 1 1\\n5\\n1 2 2 4 5\\n6\\n3 2 1 2 2 1\\n\"], \"outputs\": [\"1\\n2\\n3\\n2\\n3\\n\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-18688",
"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 a set of N nuts of different sizes and N bolts ... | code | {
"ground_truth": "{\"inputs\": [\"N = 5\\nnuts[] = {@, %, $, #, ^}\\nbolts[] = {%, @, #, $ ^}\", \"N = 9\\nnuts[] = {^, &, %, @, #, *, $, ~, !}\\nbolts[] = {~, #, @, %, &, *, $ ,^, !}\"], \"outputs\": [\"# $ % @ ^\\r\\n# $ % @ ^\", \"! # $ % & * @ ^ ~\\r\\n! # $ % & * @ ^ ~\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-5853",
"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": "Rahul and Rashi are bored with playing the game of N... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 1\\n0 2\\n1 2\\n\\nSAMPLE\", \"216\\n88 0\\n452 823\\n549 562\\n790 873\\n114 186\\n216 75\\n620 414\\n870 68\\n657 802\\n358 735\\n757 593\\n662 481\\n700 339\\n885 132\\n852 398\\n370 939\\n837 517\\n519 150\\n897 829\\n822 76\\n110 134\\n241 367\\n507 63\\n241 807\\n25 445\... | none | {
"id": "a-coin-game",
"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": "JATC and his friend Giraffe are currently in their r... | code | {
"ground_truth": "{\"inputs\": [\"6\\n1 3 4 5 6 9\\n\", \"3\\n998 999 1000\\n\", \"5\\n1 2 3 4 5\\n\", \"1\\n1\\n\", \"2\\n1 2\\n\", \"2\\n999 1000\\n\", \"9\\n1 4 5 6 7 100 101 102 103\\n\", \"100\\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 ... | EASY | {
"id": "taco-train-5554",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.