data_source
stringclasses
3 values
prompt
listlengths
2
2
ability
stringclasses
1 value
reward_model
dict
sub_source
stringclasses
12 values
extra_info
dict
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "At Aiz Pharmaceutical, research on chemical substanc...
code
{ "ground_truth": "{\"inputs\": [\"6 5 8\\n1 3\\n2 5\\n3 4\\n2 4\\n2 5\\n1 1 5 1\\n1 1 5 2\\n1 1 5 3\\n1 1 5 4\\n1 1 5 5\\n1 1 5 6\\n2 3 4 2\\n1 1 1 1\", \"6 5 8\\n1 3\\n2 5\\n3 4\\n3 4\\n2 5\\n1 1 5 1\\n1 1 5 2\\n1 1 5 3\\n1 1 5 4\\n1 1 5 5\\n1 1 5 6\\n2 3 4 2\\n1 1 1 1\", \"6 5 8\\n1 3\\n2 5\\n3 4\\n2 4\\n2 5\\n1 1...
none
{ "id": "p00420 Chemical Substance Alpha", "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": "Stan Ford is a typical college graduate student, mea...
code
{ "ground_truth": "{\"inputs\": [\"5 900\\n800 700 400 300 200\\n\", \"5 900\\n800 700 40 300 200\\n\"], \"outputs\": [\"2243\\n\", \"1900\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-9620", "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": "Nick is interested in prime numbers. Once he read ab...
code
{ "ground_truth": "{\"inputs\": [\"27 2\", \"45 7\", \"2 0\", \"15 1\", \"17 1\", \"34 5\", \"37 4\", \"43 5\", \"47 7\", \"50 5\", \"57 6\", \"60 8\", \"62 7\", \"76 9\", \"69 7\", \"113 10\", \"141 11\", \"207 16\", \"231 18\", \"296 19\", \"332 20\", \"378 24\", \"428 23\", \"497 27\", \"640 32\", \"798 35\", \"80...
rating_<=1200
{ "id": "17A", "rating": 1000, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Professor X wants his students to help each other in ...
code
{ "ground_truth": "{\"inputs\": [\"N = 5, arr[] = {3, 8, 5, 2, 25}\", \"N = 4, a[] = {1, 2, 3, 4}\"], \"outputs\": [\"2 5 2 -1 -1\", \"-1 -1 -1 -1 \"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-5027", "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": "Raccoon is fighting with a monster.\n\nThe health of...
code
{ "ground_truth": "{\"inputs\": [\"211 5\\n31 41 59 26 53\", \"10 3\\n4 5 6\", \"20 3\\n4 5 6\", \"210 5\\n31 41 59 26 53\", \"211 5\\n31 33 59 26 53\", \"10 3\\n4 4 6\", \"20 3\\n3 5 6\", \"210 3\\n31 41 59 26 53\", \"211 5\\n31 33 59 26 24\", \"10 3\\n4 0 6\", \"20 3\\n3 3 6\", \"210 3\\n31 55 59 26 53\", \"211 9\\...
none
{ "id": "p02784 AtCoder Beginner Contest 153 - Common Raccoon vs Monster", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given array a with n elements and the number...
code
{ "ground_truth": "{\"inputs\": [\"7 8\\n6 2 9 2 7 2 3\\n\", \"6 4\\n2 2 2 3 3 3\\n\", \"1 1\\n2000\\n\", \"2 1\\n2 2\\n\", \"3 5\\n5 7 9\\n\", \"1 1\\n333\\n\", \"1 1\\n2222\\n\", \"1 3\\n5\\n\", \"1 1\\n1234\\n\", \"3 1\\n3 3 3\\n\", \"7 1\\n6 2 9 2 7 2 3\\n\", \"2 10\\n14 15\\n\", \"1 1\\n1024\\n\", \"1 5\\n4321\\...
rating_>1900
{ "id": "632_D. Longest Subsequence", "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": "Polycarp plays a well-known computer game (we won't ...
code
{ "ground_truth": "{\"inputs\": [\"4\\n4 4\\n1000000000 0\\n7 15\\n8 7\\n\", \"2\\n7 4\\n1 5\\n\", \"1\\n33993 5\\n\", \"1\\n666 666\\n\", \"1\\n667 666\\n\", \"1\\n656 656\\n\", \"1\\n1656 5\\n\", \"1\\n1319 1777\\n\", \"1\\n656 656\\n\", \"1\\n666 666\\n\", \"2\\n7 4\\n1 5\\n\", \"1\\n33993 5\\n\", \"1\\n1656 5\\n\...
EASY
{ "id": "taco-train-7933", "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 string is a palindrome if it reads the same from t...
code
{ "ground_truth": "{\"inputs\": [\"mew\\n\", \"wuffuw\\n\", \"qqqqqqqq\\n\", \"ijvji\\n\", \"iiiiiii\\n\", \"wobervhvvkihcuyjtmqhaaigvvgiaahqmtjyuchikvvhvrebow\\n\", \"wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww\\n\", \"wobervhvvkihcuyjtmqhaaigvahheoqleromusrartldojsjvy\\n\", \"ijvxljt\\n\", \"fyhcncnchyf\\n\"...
EASY
{ "id": "taco-train-22558", "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": "Anya has bought a new smartphone that uses Berdroid ...
code
{ "ground_truth": "{\"inputs\": [\"5 4 2\\n3 1 5 2 4\\n4 4 4 4\\n\", \"8 3 3\\n1 2 3 4 5 6 7 8\\n7 8 1\\n\", \"71 96 75634\\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...
rating_1401-1600
{ "id": "518_C. Anya and Smartphone", "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": "Two bored soldiers are playing card war. Their card ...
code
{ "ground_truth": "{\"inputs\": [\"4\\n2 1 3\\n2 4 2\\n\", \"3\\n1 2\\n2 1 3\\n\", \"10\\n8 1 6 5 3 8 7 10 4\\n2 9 2\\n\", \"9\\n8 4 8 5 6 3 2 7 1\\n1 9\\n\", \"10\\n2 7 5\\n8 9 3 2 4 6 8 1 10\\n\", \"7\\n6 3 5 2 1 6 4\\n1 7\\n\", \"10\\n9 8 7 6 2 3 5 4 10 1\\n1 9\\n\", \"5\\n4 1 5 3 2\\n1 4\\n\", \"5\\n2 2 1\\n3 4 5...
rating_1201-1400
{ "id": "546_C. Soldier and Cards", "rating": 1400, "split": "confidence_train", "sub_source": "rating_1201-1400" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "We have a string of letters 'a' and 'b'. We want to ...
code
{ "ground_truth": "{\"inputs\": [\"ab\\n\", \"aab\\n\", \"aaaaabaabababaaaaaba\\n\", \"abaabaaabbabaabab\\n\", \"abbaa\\n\", \"abbaaabaabaaaaabbbbaababaaaaabaabbaaaaabbaabbaaaabbbabbbabb\\n\", \"aababbaaaabbaabbbbbbbbabbababbbaaabbaaabbabbba\\n\", \"aabbaababbabbbaabbaababaaaabbaaaabaaaaaababbaaaabaababbabbbb\\n\", \...
MEDIUM
{ "id": "taco-train-21953", "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": "Let us call a pair of integer numbers m-perfect, if ...
code
{ "ground_truth": "{\"inputs\": [\"1 2 5\\n\", \"-1 4 15\\n\", \"0 -1 5\\n\", \"0 1 8\\n\", \"-134 -345 -134\\n\", \"-134 -345 -133\\n\", \"999999999 -1000000000 1000000000\\n\", \"0 0 0\\n\", \"0 0 1\\n\", \"-1000000000000000000 1 1000000000000000000\\n\", \"-3 26 -1\\n\", \"-25 4 -8\\n\", \"12 30 -8\\n\", \"-12 17 ...
MEDIUM_HARD
{ "id": "taco-train-11964", "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": "Let's call the string beautiful if it does not conta...
code
{ "ground_truth": "{\"inputs\": [\"5 4\\nbaacb\\n1 3\\n1 5\\n4 5\\n2 3\\n\", \"10 3\\nababababab\\n1 2\\n1 2\\n1 2\\n\", \"1 1\\na\\n1 1\\n\", \"10 3\\naaabababab\\n1 2\\n1 2\\n1 2\\n\", \"5 4\\nbaacb\\n1 3\\n1 5\\n4 5\\n2 4\\n\", \"10 3\\nababababab\\n1 2\\n1 1\\n1 2\\n\", \"10 3\\naaabababab\\n1 1\\n1 2\\n1 2\\n\",...
rating_1401-1600
{ "id": "1555_D. Say No to Palindromes", "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": "A group of friends was given a necklace. The necklac...
code
{ "ground_truth": "{\"inputs\": [\"3 4\\n1 2 2 1 \\n\", \"3 4\\n2 2 4 1\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-1346", "rating": null, "split": "confidence_train", "sub_source": "HARD" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given an array a consisting of n integers, a...
code
{ "ground_truth": "{\"inputs\": [\"6\\n1 1 2 3 2 4\\n2\\n2 6\\n1 2\\n\", \"10\\n5 9 6 4 8 7 4 9 7 6\\n10\\n4 9\\n4 7\\n4 7\\n4 8\\n9 10\\n4 9\\n4 8\\n1 5\\n4 4\\n2 5\\n\", \"10\\n5 9 6 4 8 7 4 9 7 1\\n10\\n4 9\\n4 7\\n4 7\\n4 8\\n9 10\\n4 9\\n4 8\\n1 5\\n4 4\\n2 5\\n\", \"6\\n1 1 2 3 2 5\\n2\\n2 6\\n1 2\\n\", \"6\\n1...
rating_>1900
{ "id": "1000_F. One Occurrence", "rating": 2400, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "A poor old man works in a palace for a living. One da...
code
{ "ground_truth": "{\"inputs\": [\"N = 2, n = 2\", \"N = 3, n = 4.\"], \"outputs\": [\"1 3\", \"1 3\"]}", "style": "rule" }
EASY
{ "id": "taco-train-11261", "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 bus moves along the coordinate line Ox from the po...
code
{ "ground_truth": "{\"inputs\": [\"6 9 2 4\\n\", \"6 10 2 4\\n\", \"6 5 4 3\\n\", \"2 2 1 1\\n\", \"10 4 6 10\\n\", \"3 1 1 1\\n\", \"2 1 1 1\\n\", \"1000000 51923215 2302 10000\\n\", \"10 11 3 2\\n\", \"20 50 10 25\\n\", \"10 10 5 20\\n\", \"15 65 5 50\\n\", \"10 19 1 5\\n\", \"10 19 9 5\\n\", \"23 46 12 2\\n\", \"2...
MEDIUM
{ "id": "taco-train-17237", "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": "Problem\n\nYou decide to play a weird game with your...
code
{ "ground_truth": "{\"inputs\": [\"1\\n10 1\", \"3\\n25 53AI\\n43 3BI0\\n62 pn6\", \"2\\n10 1\\n10 1\", \"1\\n18 1\", \"2\\n5 1\\n10 1\", \"3\\n25 52AI\\n43 3BI0\\n62 pn6\", \"1\\n28 1\", \"3\\n25 52AI\\n45 3BI0\\n62 pn6\", \"1\\n54 1\", \"3\\n25 52AI\\n45 3AI0\\n62 pn6\", \"3\\n25 52AI\\n45 3AI0\\n55 pn6\", \"3\\n25...
none
{ "id": "p01008 Last One", "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": "Description\nYou are given a function f: WxW → W, wh...
code
{ "ground_truth": "{\"inputs\": [\"1111222222 25896476\", \"69 69\", \"1004 19\", \"147 369\", \"356 653\", \"123456789 987654321\"], \"outputs\": [\"1001\", \"1135657426\", \"1032168868\", \"1023\", \"0\", \"482\"]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-23515", "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": "Nowadays out little Chef is traveling a lot. While t...
code
{ "ground_truth": "{\"inputs\": [\"2\\n12 2\\n18 3\"], \"outputs\": [\"2\\n2\"]}", "style": "rule" }
none
{ "id": "iitk2p01", "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": "Consider a table G of size n × m such that G(i, j) =...
code
{ "ground_truth": "{\"inputs\": [\"100 8 5\\n5 2 1 2 1\\n\", \"100 100 7\\n1 2 3 4 5 6 7\\n\", \"100 100 5\\n5 2 1 2 1\\n\", \"1000000000000 1000000000000 10\\n99991 99992 99993 99994 99995 99996 99997 99998 99999 31000000000\\n\", \"991234567890 927215128595 5\\n6 11 8 3 2000000014\\n\", \"54275126675 128566125 50\\...
rating_>1900
{ "id": "338_D. GCD Table", "rating": 2900, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There are N towns on a plane. The i-th town is locat...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 5\\n3 9\\n7 8\\n\", \"6\\n8 3\\n4 9\\n12 19\\n18 1\\n13 5\\n7 6\\n\"], \"outputs\": [\"3\\n\", \"8\\n\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-23888", "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": "An infinitely long railway has a train consisting of...
code
{ "ground_truth": "{\"inputs\": [\"5\\n4 1 2 5 3\", \"4\\n4 1 3 2\", \"1\\n1\", \"2\\n1 2\", \"2\\n2 1\", \"6\\n5 3 6 1 4 2\", \"7\\n1 2 3 6 7 4 5\", \"8\\n6 2 1 8 5 7 3 4\", \"3\\n1 2 3\", \"3\\n1 3 2\", \"3\\n2 1 3\", \"3\\n2 3 1\", \"3\\n3 1 2\", \"3\\n3 2 1\", \"7\\n1 3 5 7 2 4 6\", \"7\\n1 5 2 6 3 7 4\", \"5\\n1...
rating_1401-1600
{ "id": "605A", "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 ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Mrs Jefferson is a great teacher. One of her strategi...
code
{ "ground_truth": "{\"fn_name\": \"shortest_arrang\", \"inputs\": [[10], [14], [16], [22], [65]], \"outputs\": [[[4, 3, 2, 1]], [[5, 4, 3, 2]], [[-1]], [[7, 6, 5, 4]], [[33, 32]]]}", "style": "rule" }
EASY
{ "id": "taco-train-25318", "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": "Back in 2015, Usain Bolt announced that he'll be ret...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"10 100 10 10\", \"100 10 5 10\"]], \"outputs\": [[\"Bolt\", \"Tiger\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-8344", "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": "Ivan loves burgers and spending money. There are n b...
code
{ "ground_truth": "{\"inputs\": [\"5\\n12 14 23 13 7\\n15\\n1 1\\n1 2\\n1 3\\n1 4\\n1 5\\n2 2\\n2 3\\n2 4\\n2 5\\n3 3\\n3 4\\n3 5\\n4 4\\n4 5\\n5 5\\n\", \"4\\n7 2 3 4\\n3\\n1 4\\n2 3\\n1 3\\n\", \"5\\n17 65 16 3 29\\n5\\n2 3\\n2 4\\n1 4\\n3 5\\n3 4\\n\", \"10\\n32 52 25 0 1 9 8 16 64 16\\n10\\n2 7\\n2 6\\n6 8\\n1 1\...
rating_>1900
{ "id": "1100_F. Ivan and Burgers", "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": "Two players A and B have a list of n integers each. ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n100 100 100\\n100 100 100\\n\", \"2\\n1 4\\n5 1\\n\", \"2\\n2 1\\n5 6\\n\", \"10\\n30518 196518 274071 359971 550121 204862 843967 173607 619138 690754\\n219513 171337 183499 549873 542337 661387 397647 495917 413076 918417\\n\", \"25\\n887969 76030 478041 100616 413694 211522 8...
rating_1201-1400
{ "id": "1038_C. Gambling", "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": "In Wolf town there are 2 big markets S and T. The di...
code
{ "ground_truth": "{\"inputs\": [\"4\\n15 15 50\\n15 15 18\\n43 88 200\\n2013 2013 2013\", \"4\\n15 15 50\\n15 15 18\\n43 88 200\\n2013 1560 2013\", \"4\\n2 15 50\\n15 15 18\\n43 88 200\\n2013 1560 2013\", \"4\\n2 25 50\\n15 15 28\\n43 88 200\\n2013 1798 2013\", \"4\\n2 25 50\\n15 12 28\\n43 88 200\\n2013 1798 2013\"...
MEDIUM_HARD
{ "id": "taco-train-25059", "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": "Archimedes is the name of a new 2D video game, which...
code
{ "ground_truth": "{\"inputs\": [\"0.5 -5.301 3.098\\n\", \"0.5 8 8\\n\", \"1 8 8\\n\", \"0.5 -8 8\\n\", \"0.5 0 -8\\n\"], \"outputs\": [\"-1.26167861 3.88425357\\n\", \"9.21068947 2.56226688\\n\", \"6.22375968 -0.31921472\\n\", \"-4.36385220 9.46891588\\n\", \"-3.60855706 -3.61140618\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-23598", "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": "Anna Hazare is a well known social activist in India...
code
{ "ground_truth": "{\"inputs\": [[\"1\", \"6\", \"3\", \"5\", \"1 4\", \"3 5 6\", \"2 4 6\", \"4 5\", \"\", \"\"]], \"outputs\": [[\"4 1.166667\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-16265", "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": "Mr. Bender has a digital table of size n × n, each c...
code
{ "ground_truth": "{\"inputs\": [\"9 3 8 10\\n\", \"6 4 3 1\\n\", \"1000000000 44 30 891773002\\n\", \"1000000000 999999938 999999936 384381709\\n\", \"1000000000 999999946 60 715189365\\n\", \"1000000000 999999946 999999941 715189365\\n\", \"1000000 951981 612086 60277\\n\", \"1000000000 6 999999904 272656295\\n\", ...
rating_1601-1900
{ "id": "256_B. Mr. Bender and Square", "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": "Ma5termind and Subway are bored of their normal life...
code
{ "ground_truth": "{\"inputs\": [\"a2b3c2a1\\n4\\n2\\n5\\n1\\n8\\n\\nSAMPLE\", \"a2b3c2a1\\n4\\n4\\n5\\n1\\n8\\n\\nSAMPLE\", \"a2b3c2a1\\n4\\n6\\n5\\n1\\n16\\n\\nSAMPLE\", \"a2b3c2a1\\n4\\n6\\n9\\n1\\n16\\n\\nPAMSLE\", \"a2b3c2a1\\n4\\n2\\n9\\n1\\n16\\n\\nPAMSLE\", \"a2b3c2a1\\n4\\n2\\n2\\n2\\n16\\n\\nPAMSLE\", \"a2b...
none
{ "id": "expand-it-1", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Kuldeep is tired from all the fun he's having with C...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 4\\n1 2\\n\\nSAMPLE\", \"2\\n1 1\\n1 2\\n\\nSAMPLE\", \"2\\n1 1\\n2 2\\n\\nSAMPLE\", \"2\\n1 0\\n2 2\\n\\nSAEPLM\", \"2\\n1 1\\n1 0\\n\\nSAMPLE\", \"2\\n2 1\\n2 2\\n\\nSAEPLM\", \"2\\n2 4\\n1 2\\n\\nELPMAS\", \"2\\n2 1\\n4 2\\n\\nSAEPLM\", \"2\\n1 0\\n3 3\\n\\nSAMPLE\", \"2\\n...
none
{ "id": "double-factorial-1", "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": "Bob loves everything sweet. His favorite chocolate b...
code
{ "ground_truth": "{\"inputs\": [\"3\\n0 1 0\\n\", \"5\\n1 0 1 0 1\\n\", \"10\\n0 0 1 0 0 0 1 1 0 1\\n\", \"20\\n0 0 0 0 1 1 1 0 1 0 0 1 0 1 1 0 1 1 1 0\\n\", \"50\\n0 1 1 1 1 1 1 0 1 1 0 1 1 1 0 0 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 1 0 0 0 1 0 0 0 0 1 0 1 1 0 0 0 0 0\\n\", \"99\\n0 0 0 1 0 1 0 1 0 1 0 1 0 0 1 1 1 1 1 1...
EASY
{ "id": "taco-train-16536", "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": "Variation of this nice kata, the war has expanded and...
code
{ "ground_truth": "{\"fn_name\": \"bits_war\", \"inputs\": [[[1, 5, 12]], [[7, -3, 20]], [[7, -3, -2, 6]], [[-3, -5]], [[]]], \"outputs\": [[\"odds win\"], [\"evens win\"], [\"tie\"], [\"evens win\"], [\"tie\"]]}", "style": "rule" }
EASY
{ "id": "taco-train-6181", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Chef has an array A of length N.\n\nAn index i is ca...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3\\n5 10 20\\n4\\n3 5 7 11\\n4\\n2 2 2 2\\n\"], \"outputs\": [\"3\\n0\\n4\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-6541", "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 + 1 cities, numbered from 0 to n. n road...
code
{ "ground_truth": "{\"inputs\": [\"2\\n6\\nLRRRLL\\n3\\nLRL\\n\", \"2\\n6\\nLLRRRL\\n3\\nLRL\\n\", \"2\\n6\\nLLRRRL\\n3\\nRLL\\n\", \"2\\n6\\nLRRRLL\\n3\\nRLL\\n\", \"2\\n6\\nLLRRRL\\n3\\nLLR\\n\", \"2\\n6\\nLRRRLL\\n3\\nLLR\\n\", \"2\\n6\\nLRLRRL\\n3\\nLRL\\n\", \"2\\n6\\nRRLRLL\\n3\\nRLL\\n\", \"2\\n6\\nRRRLLL\\n3\...
rating_1601-1900
{ "id": "1476_D. Journey", "rating": 1700, "split": "confidence_train", "sub_source": "rating_1601-1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Given a string consisting of only numbers from 0 to ...
code
{ "ground_truth": "{\"inputs\": [\"5\\n11\\n5\\n11\\n0\", \"5\\n11\\n5\\n21\\n0\", \"5\\n18\\n5\\n21\\n0\", \"5\\n18\\n5\\n1\\n0\", \"5\\n18\\n6\\n1\\n0\", \"5\\n28\\n6\\n1\\n0\", \"5\\n28\\n11\\n1\\n0\", \"5\\n28\\n3\\n1\\n0\", \"5\\n43\\n3\\n1\\n0\", \"5\\n43\\n3\\n0\\n0\", \"5\\n11\\n5\\n15\\n0\", \"5\\n11\\n5\\n1...
none
{ "id": "p00429 String", "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 Ru...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2\\n1 0\\n0 1\\n2\\n1 1\\n1 1\", \"2\\n2\\n1 0\\n0 1\\n2\\n1 1\\n1 1\", \"1\\n3\\n0 1 2\\n2 0 1\\n1 2 0\", \"3\\n5\\n0 1 1 1 1\\n1 0 1 1 1\\n1 1 0 1 1\\n1 1 1 0 1\\n1 1 1 1 0\\n3\\n2 2 2\\n2 2 2\\n2 2 2\\n3\\n3 3 3\\n3 3 3\\n3 3 3\", \"1\\n4\\n0 1 1 1\\n1 0 1 1\\n1 1 0 1\\n1 1 1...
VERY_HARD
{ "id": "taco-test-787", "rating": null, "split": "confidence_train", "sub_source": "VERY_HARD" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "PizzaForces is Petya's favorite pizzeria. PizzaForce...
code
{ "ground_truth": "{\"inputs\": [\"6\\n12\\n15\\n300\\n1\\n9999999999999999\\n3\\n\", \"1\\n42042069\\n\", \"1\\n13594805\\n\", \"1\\n6239398373929\\n\", \"1\\n199199199199195\\n\", \"1\\n199199199199199\\n\", \"1\\n100002\\n\", \"1\\n6969696969696\\n\", \"1\\n74828681\\n\", \"1\\n6243893\\n\", \"1\\n11855229238139\\...
rating_<=1200
{ "id": "1555_A. PizzaForces", "rating": 900, "split": "confidence_train", "sub_source": "rating_<=1200" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There is a plane like Figure 1 with 8 vertical and 8...
code
{ "ground_truth": "{\"inputs\": [\"00000000\\n00000000\\n01100000\\n00110000\\n00000000\\n00000000\\n00000000\\n00000000\\n\\n00011110\\n00000000\\n00000000\\n00000000\\n00000000\\n00000000\\n00000000\\n00000000\\n\\n00000000\\n00000000\\n00110000\\n00110000\\n00000000\\n00000000\\n00000000\\n00000000\"], \"outputs\"...
none
{ "id": "p00036 A Figure on Surface", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given an array *a* consisting of *n* integer...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 5\\n3\\n3 5 3 5\\n1 5 5 1\\n1 5 1 5\", \"5\\n1 2 3 4 5\\n1\\n1 1 1 1\", \"1\\n1\\n1\\n1 1 1 1\", \"1\\n2\\n5\\n1 1 5 6\\n1 1 8 4\\n1 1 5 8\\n1 1 7 1\\n1 1 6 3\"], \"outputs\": [\"5 2 5 4 5 \", \"1 2 3 4 5 \", \"1 \", \"2 \"]}", "style": "rule" }
rating_>1900
{ "id": "911G", "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 n find its next greater or ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n6\\n2\\n\\nSAMPLE\", \"10\\n71\\n8497\\n6364\\n6530\\n9199\\n5754\\n1508\\n9388\\n6992\\n4494\", \"10\\n71\\n8497\\n6364\\n6530\\n9199\\n5487\\n1508\\n9388\\n6992\\n4494\", \"2\\n6\\n2\\n\\nELPMAS\", \"10\\n71\\n8497\\n6642\\n6530\\n9199\\n5487\\n2600\\n9388\\n6992\\n4494\", \"1...
none
{ "id": "just-find-the-next-number", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Anfisa the monkey got disappointed in word processor...
code
{ "ground_truth": "{\"inputs\": [\"7 4\\n9\\n1 2 2 3\\n2 3 3 2\\n3 2 2 1\\n2 1 1 2\\n3 2 4 2\\n4 2 5 3\\n5 3 6 2\\n6 2 5 1\\n5 1 4 2\\n2\\n2 2 black\\n2 2 red\\n\", \"5 5\\n5\\n1 1 2 2\\n2 2 4 2\\n4 2 4 4\\n4 4 2 4\\n2 4 2 2\\n2\\n3 3 black\\n3 3 green\\n\", \"4 5\\n6\\n1 1 1 3\\n1 3 3 3\\n3 3 3 1\\n3 1 1 1\\n1 3 3 1...
rating_>1900
{ "id": "44_F. BerPaint", "rating": 2700, "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 is a given string *S* consisting of *N* symbol...
code
{ "ground_truth": "{\"inputs\": [\"great10\", \"aaaaaaaaaa\", \"great10\", \"aaaaaaaaaa\", \"aabb\", \"w\", \"129a\", \"233444\", \"abacaba\", \"abcdefghijklmnopqrstuvwxyz0987654321abcdefghijklmnopqrstuvwxyz0987654321abcdefghijklmnopqrstuvwxyz0987654321\", \"zazaeeeeeeeq34443333444tttttt\", \"00000000000000000000000\...
rating_1401-1600
{ "id": "50B", "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": "For an integer N, we will choose a permutation \\\\{...
code
{ "ground_truth": "{\"inputs\": [\"13\", \"2\", \"1\", \"21\", \"3\", \"4\", \"30\", \"6\", \"0\", \"-1\", \"8\", \"-4\", \"9\", \"15\", \"14\", \"16\", \"17\", \"11\", \"10\", \"7\", \"-17\", \"25\", \"-19\", \"-12\", \"29\", \"-27\", \"36\", \"-23\", \"-18\", \"-25\", \"-32\", \"-51\", \"-11\", \"-59\", \"-85\", \"...
none
{ "id": "p02924 AtCoder Beginner Contest 139 - ModSum", "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 the coach of the national athletics team and...
code
{ "ground_truth": "{\"inputs\": [\"6\\nASHMEADE 9.90 8.85\\nBLAKE 9.69 8.72\\nBOLT 9.58 8.43\\nCARTER 9.78 8.93\\nFRATER 9.88 8.92\\nPOWELL 9.72 8.61\\n\", \"9\\nAUSTRIN 15.60 14.92\\nDRANGE 15.14 14.19\\nDREGI 15.00 14.99\\nLAAKSONEN 16.39 14.97\\nLUNDSTROM 15.83 15.35\\nMARDELL 13.36 13.20\\nPOLACEK 13.05 12.55\\nS...
EASY
{ "id": "taco-train-12880", "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": "For he knew every Who down in Whoville beneath, Was ...
code
{ "ground_truth": "{\"inputs\": [\"6 6\\nHSHSHS\\n\", \"14 100\\n...HHHSSS...SH\\n\", \"23 50\\nHHSS.......SSHHHHHHHHHH\\n\", \"34 44\\n.HHHSSS.........................HS\\n\", \"34 45\\n.HHHSSS.........................HS\\n\", \"34 34\\n.HHHSSS.........................HS\\n\", \"34 33\\n.HHHSSS.........................
HARD
{ "id": "taco-test-729", "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": "This kata is all about adding numbers.\n\nYou will cr...
code
{ "ground_truth": "{\"fn_name\": \"add\", \"inputs\": [[100, 200, 300], [2], [4, -3, -2], [-1, -2, -3, -4]], \"outputs\": [[1400], [2], [-8], [-30]]}", "style": "rule" }
EASY
{ "id": "taco-train-11971", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There are $n$ bulbs in a straight line, numbered fro...
code
{ "ground_truth": "{\"inputs\": [\"3 1\\n1 1 1\\n\"], \"outputs\": [\"1\\n\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-7600", "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": "Tired of the overpopulated world, Miu - The introver...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"6\", \"7 -1 2 13 -5 15\", \"4\", \"6 10 3 12\"]], \"outputs\": [[\"5\", \"3\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-20380", "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 positive integer N, return the number of posi...
code
{ "ground_truth": "{\"fn_name\": \"numDupDigitsAtMostN\", \"inputs\": [[20]], \"outputs\": [1]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-9788", "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": "Dr. Grey is a data analyst, who visualizes various a...
code
{ "ground_truth": "{\"inputs\": [\"3 50\\n100\\n0\\n100\\n3 50\\n100\\n100\\n50\\n10 10\\n1\\n2\\n3\\n4\\n5\\n16\\n17\\n18\\n29\\n30\\n0 0\", \"3 50\\n100\\n0\\n100\\n3 50\\n100\\n100\\n50\\n10 10\\n1\\n2\\n3\\n4\\n5\\n16\\n17\\n18\\n29\\n53\\n0 0\", \"3 50\\n100\\n0\\n100\\n3 50\\n100\\n100\\n50\\n10 10\\n1\\n2\\n3\...
none
{ "id": "p00864 Grey Area", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "What joy! Petya's parents went on a business trip fo...
code
{ "ground_truth": "{\"inputs\": [\"0\\n0 0 0 0 0 0 0 1 1 2 3 0\\n\", \"5\\n1 1 1 1 2 2 3 2 2 1 1 1\\n\", \"11\\n1 1 4 1 1 5 1 1 4 1 1 1\\n\", \"41\\n2 1 7 7 4 2 4 4 9 3 10 0\\n\", \"12\\n1 1 1 1 1 1 1 1 1 1 1 1\\n\", \"97\\n17 0 10 0 0 0 18 0 14 23 15 0\\n\", \"41\\n3 1 3 4 3 6 6 1 4 4 0 6\\n\", \"0\\n55 81 28 48 99 ...
rating_<=1200
{ "id": "149_A. Business trip", "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 ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a natural number N, find the number of ways in ...
code
{ "ground_truth": "{\"inputs\": [\"N = 2\", \"N = 4\"], \"outputs\": [\"2\", \"8\"]}", "style": "rule" }
EASY
{ "id": "taco-train-7677", "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 problems statements in mandarin chinese, russia...
code
{ "ground_truth": "{\"inputs\": [\"5 3 4\\n1 0 0 1 1\\n?!!?\", \"4 2 4\\n1 1 1 1 1\\n?!!?\", \"5 3 5\\n0 0 0 0 0\\n?!!?\", \"10 5 5\\n1 1 1 1 1 1 1 1 0 0\\n?!!?!\", \"6 3 3\\n1 1 1 0 0 0\\n?!!?\", \"100 50 20\\n1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
MEDIUM_HARD
{ "id": "taco-test-664", "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": "Complete the function that calculates the derivative ...
code
{ "ground_truth": "{\"fn_name\": \"derivative\", \"inputs\": [[\"4x+1\"], [\"-4x-1\"], [\"x^2+2x+1\"], [\"0\"], [\"-100\"], [\"-x^2+3x+4\"], [\"-x^5-x^4-x^3\"], [\"10x^9+10x^3+10x\"], [\"100x^5+12x^3-3x-3\"], [\"-1000x^7+200x^4+6x^2+x+1000\"]], \"outputs\": [[\"4\"], [\"-4\"], [\"2x+2\"], [\"0\"], [\"0\"], [\"-2x+3\"...
EASY
{ "id": "taco-train-18169", "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": "Polycarp took n videos, the duration of the i-th vid...
code
{ "ground_truth": "{\"inputs\": [\"6 3\\n3 3 1 4 1 6\\n\", \"3 1\\n1 10 100\\n\", \"3 3\\n1 1 2\\n\", \"3 3\\n1 1 1\\n\", \"2 1\\n3 3\\n\", \"2 1\\n1 3\\n\", \"2 2\\n1 3\\n\", \"2 2\\n3 1\\n\", \"4 2\\n2 1 3 1\\n\", \"1 1\\n3\\n\", \"2 1\\n1 2\\n\", \"6 3\\n5 3 1 4 1 6\\n\", \"3 1\\n1 10 110\\n\", \"1 1\\n5\\n\", \"3...
rating_<=1200
{ "id": "1070_K. Video Posts", "rating": 1100, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Zane the wizard is going to perform a magic show shu...
code
{ "ground_truth": "{\"inputs\": [\"7 3 4\\n3 4 6\\n1 2\\n2 5\\n5 7\\n7 1\\n\", \"5 1 2\\n2\\n1 2\\n2 4\\n\", \"10000 1 9\\n55\\n44 1\\n2929 9292\\n9999 9998\\n44 55\\n49 94\\n55 53\\n100 199\\n55 50\\n53 11\\n\", \"100000 3 7\\n2 3 4\\n1 5\\n5 1\\n1 5\\n5 1\\n1 4\\n4 3\\n3 2\\n\", \"1000000 9 11\\n38 59 999999 199 28...
EASY
{ "id": "taco-train-6486", "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": "Thore Husfeldt likes to compare his time on solved K...
code
{ "ground_truth": "{\"inputs\": [\"2\\nThoreTiemann\\nThoreHusfeldt\\n\", \"2\\nThoreHusfeldt\\nJohanSannemo\\n\", \"2\\nThoreHusfeldter\\nThoreHusfeldt\\n\", \"2\\nJohanSannemo\\nThoreHusfeldt\\n\"], \"outputs\": [\"ThoreH\\n\", \"Thore is awesome\\n\", \"Thore sucks\\n\", \"T\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-19247", "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": "Write a function called \"filterEvenLengthWords\".\n\...
code
{ "ground_truth": "{\"fn_name\": \"filter_even_length_words\", \"inputs\": [[[\"Hello\", \"World\"]], [[\"One\", \"Two\", \"Three\", \"Four\"]]], \"outputs\": [[[]], [[\"Four\"]]]}", "style": "rule" }
EASY
{ "id": "taco-train-12113", "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": "Snuke found N strange creatures. Each creature has a...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1 1 1 1 1\", \"3\\n3 1 4\", \"6\\n40 1 30 2 7 20\", \"5\\n1 1 1 1 2\", \"3\\n3 1 3\", \"6\\n40 1 26 2 7 20\", \"3\\n1 1 3\", \"6\\n7 2 21 2 9 20\", \"5\\n1 2 1 1 2\", \"6\\n40 1 26 2 9 20\", \"5\\n1 2 1 0 2\", \"6\\n40 1 21 2 9 20\", \"5\\n1 1 1 0 2\", \"6\\n40 1 21 1 9 20\", \"...
none
{ "id": "p03786 AtCoder Grand Contest 011 - Colorful Creatures", "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 problem statements in [Bengali], [Mandarin Chin...
code
{ "ground_truth": "{\"inputs\": [\"3\\n13\\n54\\n198\"], \"outputs\": [\"11\\n48\\n159\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-14244", "rating": null, "split": "confidence_train", "sub_source": "VERY_HARD" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The 15th month of 2119. A spellbook was written by t...
code
{ "ground_truth": "{\"inputs\": [\"9 10\\nriris\\nsoa\\nelah\\nclar\\narma\\nmemori\\nneoles\\nqhaon\\nclue\\nclar riris\\nriris memori\\nriris neoles\\nsoa clar\\nsoa memori\\nneoles elah\\nelah qhaon\\nneoles qhaon\\nclue riris\\narma elah\", \"3 3\\ntorn\\nsiole\\ndimi\\ntorn siole\\ntorn dimi\\nsiole dimi\", \"4 ...
none
{ "id": "p01455 Intelligible Double Magic", "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": "Steve and Josh are bored and want to play something. ...
code
{ "ground_truth": "{\"fn_name\": \"winner\", \"inputs\": [[[\"A\", \"7\", \"8\"], [\"K\", \"5\", \"9\"]], [[\"T\"], [\"T\"]], [[\"T\", \"9\"], [\"T\", \"8\"]], [[], []]], \"outputs\": [[\"Steve wins 2 to 1\"], [\"Tie\"], [\"Steve wins 1 to 0\"], [\"Tie\"]]}", "style": "rule" }
EASY
{ "id": "taco-train-16801", "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": "Tom is interested in power consumption of his favour...
code
{ "ground_truth": "{\"inputs\": [\"2 8 4 2 5 10\\n20 30\\n50 100\\n\", \"1 3 2 1 5 10\\n0 10\\n\", \"30 54 76 95 48 16\\n9 11\\n23 97\\n112 116\\n126 185\\n214 223\\n224 271\\n278 282\\n283 348\\n359 368\\n373 376\\n452 463\\n488 512\\n532 552\\n646 665\\n681 685\\n699 718\\n735 736\\n750 777\\n791 810\\n828 838\\n84...
rating_<=1200
{ "id": "10_A. Power Consumption Calculation", "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": "Farmer Jon has recently bought $n$ tree seedlings th...
code
{ "ground_truth": "{\"inputs\": [\"4\\n2 3 4 3\\n\", \"6\\n39 38 9 35 39 20\\n\"], \"outputs\": [\"7\\n\", \"42\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-12664", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Chef appeared for a placement test. \n\nThere is a p...
code
{ "ground_truth": "{\"inputs\": [\"4\\n10 3\\n100 10\\n130 4\\n70 0\\n\"], \"outputs\": [\"3\\n100\\n52\\n0\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-20678", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Chef has a binary string S of length N. Chef wants t...
code
{ "ground_truth": "{\"inputs\": [\"3\\n4\\n1010\\n5\\n11111\\n3\\n011\\n\"], \"outputs\": [\"7\\n0\\n2\\n\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-5369", "rating": null, "split": "confidence_train", "sub_source": "VERY_HARD" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a Binary Search Tree of size N, find the Median...
code
{ "ground_truth": "{\"fn_name\": \"findMedian\", \"inputs\": [\"6\\n / \\\\\\n 3 8 \\n / \\\\ / \\\\\\n1 4 7 9\", \"6\\n / \\\\\\n 3 8 \\n / \\\\ / \\n1 4 7\"], \"outputs\": [\"6\", \"5\"]}", "style": "rule" }
EASY
{ "id": "taco-train-20301", "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": "\"Multidimensional spaces are completely out of styl...
code
{ "ground_truth": "{\"inputs\": [\"6 2\\nCAT\\nTACT\\n\", \"2 1\\nA\\n\", \"1000 10\\nATTTTTTTTT\\nAGGGGGGGGG\\nACCCCCCCCC\\nTGGGGGGGGG\\nTAAAAAAAAA\\nTCCCCCCCCC\\nGCCCCCCCCC\\nGTTTTTTTTT\\nCAAAAAAAAA\\nCGGGGGGGGG\\n\", \"1000 10\\nCAGTAGTGGA\\nTATCGACTAC\\nCCACTGCGCT\\nCCTGCGCTCC\\nTCGTCTATGG\\nAGTTAAAGCT\\nTACGACCT...
rating_>1900
{ "id": "86_C. Genetic engineering", "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": "Merge sort is a well-known sorting algorithm. The ma...
code
{ "ground_truth": "{\"inputs\": [\"3 3\", \"4 1\", \"5 6\", \"100 100\", \"10000 10001\", \"10000 20001\", \"10000 30001\", \"20000 10001\", \"20000 20001\", \"20000 30001\", \"30000 10001\", \"30000 20001\", \"30000 30001\", \"40000 10001\", \"40000 20001\", \"40000 30001\", \"50000 10001\", \"50000 20001\", \"50000...
rating_1601-1900
{ "id": "873D", "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": "Chaneka has a hobby of playing with animal toys. Eve...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 2 0 1\\n0 1 0 0\\n\", \"2\\n2 2 0 1\\n0 1 0 0\\n\", \"2\\n1 2 -1 1\\n0 1 0 0\\n\", \"2\\n2 1 0 1\\n0 1 0 1\\n\", \"2\\n2 1 1 -1\\n1 1 0 0\\n\", \"2\\n4 0 1 1\\n0 0 1 0\\n\", \"2\\n4 0 0 1\\n0 0 1 0\\n\", \"2\\n4 0 0 1\\n0 1 1 0\\n\", \"2\\n1 2 0 1\\n0 2 0 0\\n\", \"2\\n0 2 0 1...
EASY
{ "id": "taco-train-15934", "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": "Wilbur the pig really wants to be a beaver, so he de...
code
{ "ground_truth": "{\"inputs\": [\"4 3 0.4\\n4 3 1 2\\n\", \"2 2 0.500000\\n1 2\\n\", \"1 23546167 0.410950\\n282\\n\", \"1 24050696 0.492823\\n991\\n\", \"10 5 0.900000\\n1 2 3 4 5 6 7 8 9 10\\n\", \"4 3 0.0\\n4 3 1 2\\n\", \"1 74812122 0.574695\\n700\\n\", \"1 69759228 0.788141\\n230\\n\", \"1 60150106 0.492526\\n9...
rating_>1900
{ "id": "596_D. Wilbur and Trees", "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": "Given two strings wild and pattern where wild string ...
code
{ "ground_truth": "{\"inputs\": [\"wild = ge*ks\\n pattern = geeks\", \"wild = ge?ks*\\n pattern = geeksforgeeks\"], \"outputs\": [\"Yes\", \"Yes\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-9011", "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": "Each year in the castle of Dwarven King there is a c...
code
{ "ground_truth": "{\"inputs\": [\"2 3 3 50\\n2 4\\n4 2\", \"4 1 1 1\\n544 397\\n280 101\\n280 101\\n693 970\", \"10 1 1 25\\n981 1\\n352 276\\n164 691\\n203 853\\n599 97\\n901 688\\n934 579\\n910 959\\n317 624\\n440 737\", \"10 6 1 48\\n239 632\\n976 315\\n797 112\\n1 835\\n938 862\\n531 884\\n422 607\\n152 331\\n41...
rating_<=1200
{ "id": "186B", "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": "Note : This question carries $100$ $points$\nCodeLan...
code
{ "ground_truth": "{\"inputs\": [[\"5\", \"100 4 2 2\", \"100 4 3 2\", \"100 4 3 3\", \"200 4 4 2\", \"10 3 2 2\"]], \"outputs\": [[\"POSSIBLE 70\", \"POSSIBLE 55\", \"IMPOSSIBLE 20\", \"POSSIBLE 140\", \"IMPOSSIBLE 4\", \"POSSIBLE\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-18058", "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": "-----Input-----\nThe first line of input contains a ...
code
{ "ground_truth": "{\"inputs\": [\"4 5 0 3\\n0 1 10\\n1 2 1\\n1 3 1\\n0 2 1\\n2 3 10\\n\", \"2 1 0 1\\n0 1 100000\\n\", \"2 1 1 0\\n0 1 100000\\n\"], \"outputs\": [\"4 3 5\\n0 1 2\\n0 2 1\\n1 2 1\\n1 3 1\\n2 3 2\\n\", \"2 100000 1\\n0 1 100000\\n\", \"2 0 0\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-24615", "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": "They say that Berland has exactly two problems, fool...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1 2\\n1 3\\n2 4\\n2 5\\n2\\n1 4\\n3 5\", \"5\\n3 4\\n4 5\\n1 4\\n2 4\\n3\\n2 3\\n1 3\\n3 5\"], \"outputs\": [\"2 1 1 1 \", \"3 1 1 1 \"]}", "style": "rule" }
rating_1601-1900
{ "id": "191C", "rating": 1900, "split": "confidence_train", "sub_source": "rating_1601-1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given an undirected unweighted graph with N ...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\n1 2\\n1 3\\n2 3\\n\", \"7 7\\n1 3\\n2 7\\n3 4\\n4 5\\n4 6\\n5 6\\n6 7\\n\", \"8 7\\n3 7\\n2 7\\n1 2\\n1 6\\n5 6\\n4 5\\n4 8\\n\", \"8 8\\n6 8\\n4 8\\n3 4\\n2 3\\n2 7\\n5 7\\n1 5\\n1 6\\n\", \"8 7\\n1 5\\n2 5\\n3 5\\n4 5\\n5 6\\n5 7\\n5 8\\n\", \"8 28\\n1 2\\n1 3\\n1 4\\n1 5\\n...
EASY
{ "id": "taco-train-20626", "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": "BooBoo is a smart baby who likes to travel around ci...
code
{ "ground_truth": "{\"inputs\": [\"98 64\\n15943 15261 16704 4684\\n18005 28872 27376 2748\\n\", \"998 3961\\n7845 3167 21229 11772\\n17623 22702 10710 17844\\n\", \"1949 8097\\n29667 25906 5164 20663\\n16940 19366 1274 1718\", \"97 91\\n21238 16908 18588 841\\n868 12457 12618 23612\\n\", \"1940 9686\\n14200 8539 243...
MEDIUM
{ "id": "taco-train-9671", "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": "Example\n\nInput\n\n3 2\nR1\n\n\nOutput\n\n3 1 2\n4 ...
code
{ "ground_truth": "{\"inputs\": [\"3 2\\nR1\", \"2 2\\nR1\", \"1 2\\nR1\", \"5 2\\nR1\", \"4 2\\nR1\", \"8 2\\nR1\", \"7 2\\nR1\", \"3 2\\nR2\", \"11 2\\nR1\", \"3 2\\nR3\", \"11 2\\nR2\", \"20 2\\nR1\", \"5 2\\nR3\", \"7 2\\nR2\", \"22 2\\nR1\", \"9 2\\nR2\", \"30 2\\nR1\", \"9 2\\nR1\", \"36 2\\nR1\", \"5 2\\nR2\",...
none
{ "id": "p01832 Shifting a Matrix", "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": "Connect the countless points with lines, till we rea...
code
{ "ground_truth": "{\"inputs\": [\"5\\n7 5 8 6 9\\n\", \"5\\n-1 -2 0 0 -5\\n\", \"5\\n5 4 3 2 1\\n\", \"5\\n1000000000 0 0 0 0\\n\", \"5\\n1000000000 1 0 -999999999 -1000000000\\n\", \"3\\n998 244 353\\n\", \"3\\n-1000000000 0 1000000000\\n\", \"5\\n-1 -1 -1 -1 1\\n\", \"4\\n-9763 530 3595 6660\\n\", \"4\\n-253090305...
MEDIUM_HARD
{ "id": "taco-train-7200", "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": "They say \"years are like dominoes, tumbling one aft...
code
{ "ground_truth": "{\"inputs\": [\"5 8\\n....#..#\\n.#......\\n##.#....\\n##..#.##\\n........\\n4\\n1 1 2 3\\n4 1 4 1\\n1 2 4 5\\n2 5 5 8\\n\", \"7 39\\n.......................................\\n.###..###..#..###.....###..###..#..###.\\n...#..#.#..#..#.........#..#.#..#..#...\\n.###..#.#..#..###.....###..#.#..#..###....
MEDIUM
{ "id": "taco-train-22567", "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": "We have sticks numbered 1, \\cdots, N. The length of...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 1\", \"10\\n9 4 6 1 9 6 10 6 6 8\", \"6\\n4 5 4 3 3 5\", \"5\\n4 4 9 7 5\", \"2\\n1 0\", \"10\\n9 4 8 1 9 6 10 6 6 8\", \"6\\n4 5 8 3 3 5\", \"5\\n4 4 3 7 5\", \"10\\n9 4 16 1 9 6 10 6 6 8\", \"6\\n4 5 6 3 3 5\", \"5\\n4 0 3 7 5\", \"10\\n9 7 16 1 9 6 10 6 6 8\", \"5\\n4 -1 0 ...
none
{ "id": "p02583 AtCoder Beginner Contest 175 - Making Triangle", "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": "Katsusando loves omelette rice.\n\nBesides, he loves...
code
{ "ground_truth": "{\"inputs\": [\"3 4\\n2 1 3\\n3 1 2 3\\n2 3 2\", \"1 30\\n3 5 10 30\", \"5 5\\n4 2 3 4 5\\n4 1 3 4 5\\n4 1 2 4 5\\n4 1 2 3 5\\n4 1 2 3 4\", \"1 30\\n3 2 10 30\", \"3 7\\n2 1 3\\n3 1 2 3\\n2 3 2\", \"3 7\\n2 1 3\\n3 1 2 3\\n2 3 1\", \"3 7\\n2 1 3\\n3 0 2 3\\n2 5 1\", \"1 30\\n3 4 10 30\", \"1 30\\n5...
none
{ "id": "p03126 AtCoder Beginner Contest 118 - Foods Loved by Everyone", "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": "A magic number is defined as a number that can be exp...
code
{ "ground_truth": "{\"inputs\": [\"n = 1\", \"n = 2\"], \"outputs\": [\"5\", \"25\"]}", "style": "rule" }
EASY
{ "id": "taco-train-10615", "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": "Pavel made a photo of his favourite stars in the sky...
code
{ "ground_truth": "{\"inputs\": [\"4\\n4 1 3 2 3 2 1 3\\n\", \"3\\n5 8 5 5 7 5\\n\", \"1\\n553296794 23577639\\n\", \"2\\n100000001 95312501 97600001 1\\n\", \"2\\n1 499999999 705032704 1000000000\\n\", \"2\\n81475384 79354071 83089784 94987161\\n\", \"2\\n229872385 40870434 490042790 160550871\\n\", \"2\\n186213023 ...
MEDIUM
{ "id": "taco-train-7978", "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 is a sequence of length N: A_1, A_2, ..., A_N....
code
{ "ground_truth": "{\"inputs\": [\"8 3\\n7 3 1 8 4 6 2 5\", \"4 3\\n2 3 1 4\", \"3 3\\n1 2 3\", \"8 3\\n14 3 1 8 4 6 2 5\", \"7 3\\n2 3 1 4\", \"3 3\\n2 2 3\", \"12 3\\n0 4 0 4\", \"20 3\\n-1 4 0 4\", \"34 3\\n-1 4 0 6\", \"31 3\\n-1 4 0 6\", \"31 8\\n-2 2 0 6\", \"4 3\\n2 3 2 4\", \"64 3\\n-1 4 0 6\", \"57 3\\n-2 4 ...
none
{ "id": "p03317 AtCoder Beginner Contest 101 - Minimization", "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": "Those days, many boys use beautiful girls' photos as...
code
{ "ground_truth": "{\"inputs\": [\"xiaodao\\n\", \"sevenkplus\\n\", \"wjmzbmr\\n\", \"nuezoadauueermoeaabjrkxttkatspjsjegjcjcdmcxgodowzbwuqncfbeqlhkk\\n\", \"aqzftsvezdgouyrirsxpbuvdjupnzvbhguyayeqozfzymfnepvwgblqzvmxxkxcilmsjvcgyqykpoaktjvsxbygfgsalbjoq\\n\", \"pezu\\n\", \"nheihhxkbbrmlpxpxbhnpofcjmxemyvqqdbanwd\\n...
rating_<=1200
{ "id": "236_A. Boy or Girl", "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": "There are $n$ chests. The $i$-th chest contains $a_i...
code
{ "ground_truth": "{\"inputs\": [\"5\\n4 5\\n10 10 3 1\\n1 2\\n1\\n3 12\\n10 10 29\\n12 51\\n5 74 89 45 18 69 67 67 11 96 23 59\\n2 57\\n85 60\\n\", \"1\\n3 4\\n8 9 10\\n\", \"1\\n5 2\\n1 2 3 4 5\\n\", \"1\\n10 10\\n10 10 10 10 10 10 10 10 10 10\\n\", \"1\\n10 5\\n9 8 7 6 5 4 3 2 1 0\\n\", \"1\\n4 4\\n2 3 4 5\\n\", \...
MEDIUM_HARD
{ "id": "taco-test-454", "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": "Thanks to the Doctor's help, the rebels managed to s...
code
{ "ground_truth": "{\"inputs\": [\"6 7\\n1 2\\n2 3\\n3 4\\n4 6\\n6 5\\n4 4\\n3 6\\n4 2 7 3\\n1 10 2\\n3 8 2\\n5 1 0\\n6 5 4\\n3 7\\n5 2\\n\", \"1 1\\n1 1\\n2 1 657705832 300429230\\n1 435788130 187757098\\n1 464180683 238039721\\n1 101041215\\n\", \"1 1\\n1 1\\n1 2 498328473 730315543\\n1 267535146 337021959\\n1 3407...
rating_>1900
{ "id": "1184_B2. The Doctor Meets Vader (Medium)", "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": "Problem statement\n\nA lazy guy in UVCE is designing...
code
{ "ground_truth": "{\"inputs\": [\"2\\n5\\n1 2 3 4 5\\n6\\n1 2 3 4 5 6\"], \"outputs\": [\"6\\n9\"]}", "style": "rule" }
none
{ "id": "botm", "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": "Given an array $a$, consisting of $n$ integers, find...
code
{ "ground_truth": "{\"inputs\": [\"3\\n13 35 77\\n\", \"6\\n1 2 4 8 16 32\\n\", \"2\\n2 5\\n\", \"4\\n12 9 1 8\\n\", \"4\\n15 12 9 10\\n\", \"56\\n15 10 44 38 12 7 20 17 16 3 43 10 32 4 31 38 8 15 21 8 37 44 19 21 26 24 22 21 16 43 45 36 29 36 41 44 39 34 7 8 42 49 5 31 50 34 22 13 22 38 38 45 14 15 18 45\\n\", \"74\...
MEDIUM
{ "id": "taco-train-13990", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problems statements in Mandarin Chinese, Russia...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2 5\\n1 1000000000\"], \"outputs\": [\"0.266667\\n0.0000001\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-5356", "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": "Sherlock Holmes and Dr. Watson played some game on a...
code
{ "ground_truth": "{\"inputs\": [\"1\\n1\", \"2\\n1 2\\n3 4\", \"4\\n5 7 8 4\\n9 5 3 2\\n1 6 6 4\\n9 5 7 3\", \"2\\n1 1\\n1 1\", \"3\\n1 2 3\\n4 5 6\\n7 8 9\", \"3\\n1 2 3\\n3 1 2\\n2 3 1\", \"4\\n1 2 3 4\\n8 7 6 5\\n9 10 11 12\\n16 15 14 13\", \"1\\n53\", \"5\\n1 98 22 9 39\\n10 9 44 49 66\\n79 17 23 8 47\\n59 69 72...
rating_<=1200
{ "id": "157A", "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": "From the childhood we are taught that a comes before...
code
{ "ground_truth": "{\"inputs\": [\"2\\nwcyuogmlrdfphitxjakqvzbnes\\njcdokai\\nmiruqopsxthzdcnvkfbglwayje\\nwgfsyvno\\n\\nSAMPLE\", \"10\\nihpcfylbjskmxqogaetnwzdvur\\nlvjiwjvzlybrlmclbyxpopnuxlzbqxrvhnizyipzqrvsztylptnwbsvcxegtfwawvradfryklqlezbbowsuqtsyoxrkwcbmmgngaefavwoikahtllsbvowqogdripwevhayxyyjuwcdyuatiwikdoxh...
none
{ "id": "fast-sort-1", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Nowadays all circuses in Berland have a round arena ...
code
{ "ground_truth": "{\"inputs\": [\"0.000000 0.000000\\n1.000000 1.000000\\n0.000000 1.000000\\n\", \"76.820252 66.709341\\n61.392328 82.684207\\n44.267775 -2.378694\\n\", \"6.949504 69.606390\\n26.139268 72.136945\\n24.032442 57.407195\\n\", \"36.856072 121.845502\\n46.453956 109.898647\\n-30.047767 77.590282\\n\", \...
rating_>1900
{ "id": "1_C. Ancient Berland Circus", "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": "Of course our child likes walking in a zoo. The zoo ...
code
{ "ground_truth": "{\"inputs\": [\"4 3\\n10 20 30 40\\n1 3\\n2 3\\n4 3\\n\", \"3 3\\n10 20 30\\n1 2\\n2 3\\n3 1\\n\", \"7 8\\n40 20 10 30 20 50 40\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\\n6 7\\n1 4\\n5 7\\n\", \"10 14\\n594 965 90 327 549 206 514 993 803 635\\n1 2\\n1 3\\n3 4\\n2 5\\n5 6\\n5 7\\n4 8\\n4 9\\n5 10\\n10 4\\n7 8\...
HARD
{ "id": "taco-train-8443", "rating": null, "split": "confidence_train", "sub_source": "HARD" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There are a number of rectangles on the x-y plane. T...
code
{ "ground_truth": "{\"inputs\": [\"3\\n4 28 27 11\\n15 20 42 5\\n11 24 33 14\\n5\\n4 28 27 11\\n12 11 34 2\\n7 26 14 16\\n14 16 19 12\\n17 28 27 21\\n2\\n300000 1000000 600000 0\\n0 600000 1000000 300000\\n0\", \"3\\n4 28 27 11\\n15 20 42 5\\n11 24 33 14\\n5\\n4 28 27 11\\n12 11 34 2\\n7 26 14 16\\n14 16 19 12\\n17 2...
none
{ "id": "p00916 Count the Regions", "rating": 0, "split": "confidence_train", "sub_source": "none" }