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": "Chef is playing a game which contains a binary strin... | code | {
"ground_truth": "{\"inputs\": [[\"1\", \"4\", \"1011\"]], \"outputs\": [[\"1\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-13974",
"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": "Generous sponsors of the olympiad in which Chloe and... | code | {
"ground_truth": "{\"inputs\": [\"8\\n0 5 -1 4 3 2 6 5\\n1 2\\n2 4\\n2 5\\n1 3\\n3 6\\n6 7\\n6 8\\n\", \"4\\n1 -5 1 1\\n1 2\\n1 4\\n2 3\\n\", \"1\\n-1\\n\", \"10\\n3 2 -4 2 0 3 3 3 3 4\\n10 8\\n4 2\\n4 9\\n3 5\\n5 2\\n7 4\\n2 6\\n1 8\\n10 9\\n\", \"10\\n-1 2 -2 -3 -1 -1 0 -4 -5 -4\\n4 6\\n6 9\\n1 2\\n6 2\\n7 8\\n7 9... | MEDIUM_HARD | {
"id": "taco-train-8315",
"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": "Imp likes his plush toy a lot.\n\n [Image] \n\nRecen... | code | {
"ground_truth": "{\"inputs\": [\"6 3\\n\", \"4 2\\n\", \"1000 1001\\n\", \"1000000000 999999999\\n\", \"81452244 81452247\\n\", \"188032448 86524683\\n\", \"365289629 223844571\\n\", \"247579518 361164458\\n\", \"424836699 793451637\\n\", \"602093880 930771525\\n\", \"779351061 773124120\\n\", \"661640950 836815080... | EASY | {
"id": "taco-train-12598",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "A password is considered strong if below conditions a... | code | {
"ground_truth": "{\"fn_name\": \"strongPasswordChecker\", \"inputs\": [[\"\\\"a\\\"\"]], \"outputs\": [3]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-22292",
"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 N x N matrix, where every row and column is s... | code | {
"ground_truth": "{\"fn_name\": \"kthSmallest\", \"inputs\": [\"N = 4\\nmat[][] = {{16, 28, 60, 64},\\n {22, 41, 63, 91},\\n {27, 50, 87, 93},\\n {36, 78, 87, 94 }}\\nK = 3\", \"N = 4\\nmat[][] = {{10, 20, 30, 40}\\n {15, 25, 35, 45}\\n ... | MEDIUM | {
"id": "taco-train-16596",
"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": "Many years have passed, and *n* friends met at a par... | code | {
"ground_truth": "{\"inputs\": [\"3\\n10 1\\n20 2\\n30 3\", \"3\\n3 1\\n2 2\\n4 3\", \"1\\n5 10\", \"1\\n1 1\", \"1\\n1000 1000\", \"1\\n1 1000\", \"2\\n1 1000\\n1000 1\", \"2\\n1 1\\n1000 1000\", \"1\\n1000 1\", \"5\\n407 830\\n12 199\\n768 215\\n668 28\\n628 310\", \"3\\n379 820\\n923 407\\n916 853\", \"3\\n99 768... | rating_1601-1900 | {
"id": "529B",
"rating": 1900,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a simple connected undirected graph wi... | code | {
"ground_truth": "{\"inputs\": [\"5 5\\n1 2\\n2 3\\n3 4\\n2 5\\n4 5\", \"4 4\\n1 2\\n2 3\\n3 4\\n4 1\", \"5 5\\n1 2\\n2 3\\n3 4\\n3 5\\n4 5\", \"10 2\\n1 2\\n1 3\\n0 4\\n3 5\\n4 5\", \"7 2\\n1 2\\n2 3\\n0 2\\n3 5\\n4 5\", \"5 5\\n1 1\\n2 3\\n3 4\\n3 5\\n4 5\", \"5 5\\n1 1\\n2 3\\n4 4\\n3 5\\n4 5\", \"5 5\\n1 2\\n2 3... | none | {
"id": "p02976 AtCoder Grand Contest 035 - Even Degrees",
"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 Little Girl loves problems on games very much. H... | code | {
"ground_truth": "{\"inputs\": [\"aba\\n\", \"abca\\n\", \"aabb\\n\", \"ctjxzuimsxnarlciuynqeoqmmbqtagszuo\\n\", \"gevqgtaorjixsxnbcoybr\\n\", \"xvhtcbtouuddhylxhplgjxwlo\\n\", \"desktciwoidfuswycratvovutcgjrcyzmilsmadzaegseetexygedzxdmorxzxgiqhcuppshcsjcozkopebegfmxzxxagzwoymlghgjexcgfojychyt\\n\", \"aaaaaaaaaaaaaa... | EASY | {
"id": "taco-train-20383",
"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": "High school student Vasya got a string of length *n*... | code | {
"ground_truth": "{\"inputs\": [\"4 2\\nabba\", \"8 1\\naabaabaa\", \"1 0\\na\", \"1 1\\nb\", \"1 0\\nb\", \"1 1\\na\", \"10 10\\nbbbbbbbbbb\", \"10 2\\nbbbbbbbbbb\", \"10 1\\nbbabbabbba\", \"10 10\\nbbabbbaabb\", \"10 9\\nbabababbba\", \"10 4\\nbababbaaab\", \"10 10\\naabaaabaaa\", \"10 10\\naaaabbbaaa\", \"10 1\\n... | rating_1401-1600 | {
"id": "676C",
"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": "Let G(S) denote the sum of the elements of set S and... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1\\n2\\n3\", \"3\\n1\\n2\\n1\", \"3\\n2\\n2\\n1\", \"3\\n2\\n2\\n2\", \"3\\n1\\n2\\n2\", \"3\\n1\\n2\\n5\", \"3\\n1\\n1\\n1\", \"3\\n2\\n2\\n4\", \"3\\n1\\n4\\n2\", \"3\\n1\\n1\\n5\", \"3\\n1\\n1\\n2\", \"3\\n1\\n2\\n4\", \"3\\n1\\n1\\n6\", \"3\\n3\\n2\\n1\", \"3\\n2\\n2\\n3\", ... | none | {
"id": "resn05",
"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": "Agent 007 is on a secret mission in country \"Codela... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1011\\n1\\n0010\\n2\\n\\nSAMPLE\", \"100\\n00\\n467\\n0000111111\\n724\\n101001\\n942\\n100\\n382\\n010101\\n447\\n0110110111\\n35\\n001111110\\n547\\n0000000\\n35\\n101000110\\n446\\n0000001001\\n623\\n1000111\\n323\\n000101\\n639\\n1000111\\n21\\n00101110\\n512\\n00\\n52\\n00\... | none | {
"id": "agent-007-and-secret-mission-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": "It's the turn of the year, so Bash wants to send pre... | code | {
"ground_truth": "{\"inputs\": [\"4 4 3\\n1 2 1\\n2 3 1\\n2 4 1\\n3 1 1\\n\", \"7 11 2\\n1 2 5\\n1 3 5\\n2 4 2\\n2 5 2\\n3 6 3\\n3 7 3\\n4 6 2\\n3 4 2\\n6 7 3\\n4 5 7\\n4 7 7\\n\", \"2 1 1\\n1 2 5\\n\", \"5 3 2\\n1 3 2\\n1 4 3\\n1 5 6\\n\", \"7 4 3\\n1 2 1\\n2 3 1\\n2 4 1\\n3 1 1\\n\", \"7 11 2\\n1 2 5\\n1 3 5\\n2 4... | rating_>1900 | {
"id": "757_F. Team Rocket Rises Again",
"rating": 2800,
"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": "Gitam is a priest in his village. He needs to pay hi... | code | {
"ground_truth": "{\"inputs\": [\"20\\n49 81 42\\n1 2 733422\\n2 3 180800\\n3 4 914\\n4 5 418039\\n5 6 832414\\n6 7 316923\\n7 8 823330\\n8 9 97833\\n9 10 651324\\n10 11 382528\\n11 12 215352\\n12 13 711718\\n13 14 69063\\n14 15 82677\\n15 16 257954\\n16 17 384052\\n17 18 773470\\n18 19 602833\\n19 20 958647\\n20 21... | EASY | {
"id": "taco-train-18220",
"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": "In this problem we consider a very simplified model ... | code | {
"ground_truth": "{\"inputs\": [\"1 1 -3\\n0 3 3 0\\n\", \"3 1 -9\\n0 3 3 -1\\n\", \"-6 -9 -7\\n1 -8 -4 -3\\n\", \"407 -599 272\\n-382 -695 -978 -614\\n\", \"944189733 -942954006 219559971\\n-40794646 -818983912 915862872 -115357659\\n\", \"664808710 -309024147 997224520\\n-417682067 -256154660 -762795849 -292925742... | HARD | {
"id": "taco-train-21554",
"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": "Mishka is decorating the Christmas tree. He has got ... | code | {
"ground_truth": "{\"inputs\": [\"2 2 3\\n\", \"4 2 3\\n\", \"6 4 7\\n\", \"3 2 3\\n\", \"1 1 3\\n\", \"1 1 1\\n\", \"2 2 7\\n\", \"2 4 8\\n\", \"2 5 2\\n\", \"2 3 5\\n\", \"3 3 4\\n\", \"3 4 5\\n\", \"4 2 4\\n\", \"1500 1500 1500\\n\", \"2 100 100\\n\", \"4 4 2\\n\", \"228 2 2\\n\", \"2 3 14\\n\", \"5 2 2\\n\", \"2... | rating_1201-1400 | {
"id": "911_C. Three Garlands",
"rating": 1400,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A rare article in the Internet is posted without a p... | code | {
"ground_truth": "{\"inputs\": [\"A,3,B,2,C,0,D,1,E,0,F,1,G,0,H,1,I,1,J,0,K,1,L,0,M,2,N,0,O,1,P,0\\n\", \"a,5,A,0,a,0,A,0,a,0,A,0\\n\", \"hello,2,ok,0,bye,0,test,0,one,1,two,2,a,0,b,0\\n\", \"b,2,b,0,b,0,b,1,b,0,ba,1,b,0\\n\", \"BA,0\\n\", \"nwEwA,2,C,1,aG,0,xgv,0\\n\", \"ab,0,ba,0\\n\", \"aa,0\\n\", \"a,3,aa,0,b,0,... | rating_1601-1900 | {
"id": "747_E. Comments",
"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": "You are given set of n points in 5-dimensional space... | code | {
"ground_truth": "{\"inputs\": [\"3\\n0 0 1 2 0\\n0 0 9 2 0\\n0 0 5 9 0\\n\", \"6\\n0 0 0 0 0\\n1 0 0 0 0\\n0 1 0 0 0\\n0 0 1 0 0\\n0 0 0 1 0\\n0 0 0 0 1\\n\", \"10\\n0 -110 68 -51 -155\\n-85 -110 68 -51 -155\\n85 -70 51 68 -230\\n0 -40 51 68 75\\n0 5 -51 -68 -190\\n85 0 0 0 0\\n85 -115 -68 51 35\\n85 -75 -187 34 -4... | rating_1601-1900 | {
"id": "850_A. Five Dimensional Points",
"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": "Winnie-the-Pooh likes honey very much! That is why h... | code | {
"ground_truth": "{\"inputs\": [\"1\\n2\\n3\\n5\\n\", \"3\\n2\\n3\\n1\\n\", \"1\\n2\\n6\\n1\\n\", \"1\\n1\\n1\\n99\\n\", \"2\\n3\\n2\\n1\\n\", \"62\\n27\\n16\\n72\\n\", \"1\\n15\\n13\\n11\\n\", \"5\\n3\\n3\\n1\\n\", \"1\\n1\\n1\\n1\\n\", \"75\\n50\\n50\\n5\\n\", \"9\\n37\\n85\\n76\\n\", \"65\\n5\\n8\\n7\\n\", \"5\\n... | rating_<=1200 | {
"id": "876_A. Trip For Meal",
"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": "An extraterrestrial visit!\nRemember your childhood ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 1\\n2 1\\n2 3\\n2 5\\n\\nSAMPLE\", \"4\\n1 1\\n2 1\\n2 3\\n2 5\", \"659\\n8 972726106237281\\n29 516908306\\n9 294\\n27 84664275\\n30 888188693\\n6 40\\n6 29\\n8 877878903230015\\n29 66695922\\n6 38\\n31 1799217893\\n3 3\\n12 311\\n31 631884547720169\\n15 26933\\n9 49741678463... | none | {
"id": "et-comes-to-india",
"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 an array a consisting of n integers. Y... | code | {
"ground_truth": "{\"inputs\": [\"5\\n4\\n1 2 3 4\\n7\\n4 3 3 8 4 5 2\\n3\\n1 1 1\\n7\\n1 3 1 4 5 3 2\\n5\\n5 4 3 2 3\\n\", \"5\\n4\\n1 2 3 4\\n7\\n4 3 3 8 4 5 2\\n3\\n1 1 1\\n7\\n1 3 1 7 5 3 2\\n5\\n5 4 3 2 3\\n\", \"5\\n4\\n1 2 3 4\\n7\\n4 3 3 8 4 5 2\\n3\\n1 1 1\\n7\\n1 3 1 0 5 3 2\\n5\\n5 4 3 2 3\\n\", \"5\\n4\\... | rating_<=1200 | {
"id": "1385_C. Make It Good",
"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": "Chef has found two very old sheets of paper, each of... | code | {
"ground_truth": "{\"inputs\": [\"3\\na?c\\n??b\\n???a\\n???a\\n?abac\\naba?w\", \"3\\na?c\\n??b\\n???a\\n@??a\\n?abac\\naba?w\", \"3\\na?c\\n??b\\n?>?a\\n@??a\\n?bbbc\\naba?w\", \"3\\nc?a\\n??b\\n@>?a\\n@?@a\\nbb?bc\\naba?w\", \"3\\na?c\\nb??\\n@>>a\\n@?@a\\nbb?bc\\nw?aba\", \"3\\na?c\\nb??\\nA>>a\\n@?@a\\nbb?bc\\n... | none | {
"id": "chefstlt",
"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": "Your friend recently gave you some slimes for your b... | code | {
"ground_truth": "{\"inputs\": [\"1\", \"2\", \"3\", \"8\", \"100000\", \"12345\", \"32\", \"70958\", \"97593\", \"91706\", \"85371\", \"97205\", \"34768\", \"12705\", \"30151\", \"4974\", \"32728\", \"8192\", \"65536\", \"32\", \"256\", \"4096\", \"33301\", \"16725\", \"149\", \"16277\", \"99701\"], \"outputs\": [\... | rating_<=1200 | {
"id": "618A",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an array of scores that are non-negative intege... | code | {
"ground_truth": "{\"fn_name\": \"PredictTheWinner\", \"inputs\": [[[1, 5, 2]]], \"outputs\": [false]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-17454",
"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 String, find the longest palindromic subseque... | code | {
"ground_truth": "{\"inputs\": [\"S = \\\"bbabcbcab\\\"\", \"S = \\\"abcd\\\"\"], \"outputs\": [\"7\", \"1\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-3966",
"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": "Bob is a farmer. He has a large pasture with many sh... | code | {
"ground_truth": "{\"inputs\": [\"1 2\\nSW\", \"10 10\\n....W.W.W.\\n.........S\\n.S.S...S..\\nW.......SS\\n.W..W.....\\n.W...W....\\nS..S...S.S\\n....W...S.\\n..S..S.S.S\\nSS.......S\", \"10 10\\n....W.W.W.\\n...W.....S\\n.S.S...S..\\nW......WSS\\n.W..W.....\\n.W...W....\\nS..S...S.S\\n...WWW..S.\\n..S..S.S.S\\nSS.... | rating_<=1200 | {
"id": "948A",
"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": "In the State of Takahashi in AtCoderian Federation, ... | code | {
"ground_truth": "{\"inputs\": [\"5 5\\n1 2\\n1 3\\n3 4\\n3 5\\n4 5\", \"5 1\\n1 2\", \"10 39\\n7 2\\n7 1\\n5 6\\n5 8\\n9 10\\n2 8\\n8 7\\n3 10\\n10 1\\n8 10\\n2 3\\n7 4\\n3 9\\n4 10\\n3 4\\n6 1\\n6 7\\n9 5\\n9 7\\n6 9\\n9 4\\n4 6\\n7 5\\n8 3\\n2 5\\n9 2\\n10 7\\n8 6\\n8 9\\n7 3\\n5 3\\n4 5\\n6 3\\n2 10\\n5 10\\n4 2... | none | {
"id": "p03321 AtCoder Regular Contest 099 - Independence",
"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": "Logical quantifiers are very useful tools for expres... | code | {
"ground_truth": "{\"inputs\": [\"2 1\\n1 2\\n\", \"4 3\\n1 2\\n2 3\\n3 1\\n\", \"3 2\\n1 3\\n2 3\\n\", \"6 3\\n1 3\\n2 5\\n4 6\\n\", \"100 50\\n55 13\\n84 2\\n22 63\\n100 91\\n2 18\\n98 64\\n1 86\\n93 11\\n17 6\\n24 97\\n14 35\\n24 74\\n22 3\\n42 5\\n63 79\\n31 89\\n81 22\\n86 88\\n77 51\\n81 34\\n19 55\\n41 54\\n3... | HARD | {
"id": "taco-train-5474",
"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": "Do you know the game Battleship? If no, look into Wi... | code | {
"ground_truth": "{\"inputs\": [\"2\\n****000000\\n0000000000\\n***00***00\\n0000000000\\n00000000**\\n000**00000\\n00000000**\\n000*000000\\n00000*00*0\\n0*00000000\\n\\n****000000\\n0000000000\\n***00***00\\n0000000000\\n00000000**\\n000**00000\\n00000000**\\n0000*00000\\n00000*00*0\\n0*00000000\\n\"], \"outputs\"... | rating_>1900 | {
"id": "100_H. Battleship",
"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": "Žofka invented a new word puzzle. She gives you two ... | code | {
"ground_truth": "{\"inputs\": [\"hello teams\\n\", \"aacccaaaa bbbbbbbbb\\n\"], \"outputs\": [\"27\\n\", \"3\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-18123",
"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": "Berland has a long and glorious history. To increase... | code | {
"ground_truth": "{\"inputs\": [\"glo?yto?e??an?\\nor\\n\", \"??c?????\\nabcab\\n\", \"winlose???winl???w??\\nwin\\n\", \"ww?ww\\nw\\n\", \"xznxr\\nxznxr\\n\", \"???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????... | rating_>1900 | {
"id": "808_G. Anthem of Berland",
"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": "Problem description.\n\nThis problem is simple and w... | code | {
"ground_truth": "{\"inputs\": [[\"1\", \"10\", \"1 2 3 1 2 3 1 2 3 1\", \"3\", \"5\", \"2\", \"4\", \"6\", \"8\", \"2\", \"\"]], \"outputs\": [[\"3 8 9\", \"2 6 1\", \"1 4 1\", \"1 2 1\", \"3 8 1\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-8305",
"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": "Say you have an array for which the ith element is th... | code | {
"ground_truth": "{\"fn_name\": \"maxProfit\", \"inputs\": [[[3, 3, 5, 0, 0, 3, 1, 4]]], \"outputs\": [6]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-7774",
"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": "A monster is chasing after Rick and Morty on another... | code | {
"ground_truth": "{\"inputs\": [\"20 2\\n9 19\\n\", \"2 1\\n16 12\\n\", \"39 52\\n88 78\\n\", \"59 96\\n34 48\\n\", \"87 37\\n91 29\\n\", \"11 81\\n49 7\\n\", \"39 21\\n95 89\\n\", \"59 70\\n48 54\\n\", \"87 22\\n98 32\\n\", \"15 63\\n51 13\\n\", \"39 7\\n97 91\\n\", \"18 18\\n71 71\\n\", \"46 71\\n16 49\\n\", \"70 ... | EASY | {
"id": "taco-train-1318",
"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 an array of integers a of length n and a value ... | code | {
"ground_truth": "{\"inputs\": [\"n = 4, \\r\\n k = 14,\\r\\n a = {4, 6, 12, 8}\", \"n = 4,\\r\\n k = 25, \\r\\n a = {5, 6, 7, 8}\"], \"outputs\": [\"4\", \"5\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-15880",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a matrix of size *n*<=×<=*m*. Each ele... | code | {
"ground_truth": "{\"inputs\": [\"3 4\\n1\\nA\\n8\", \"2 8\\n5F\\nE3\", \"1 4\\n0\", \"1 4\\nD\", \"10 120\\n4100B3BC23752433106B89343D9BA9\\nD0412141283A93738E2805121044D9\\nB111606365A975606A60A641110C15\\n1134D161132633643B33139A153114\\nBA3F155302119840B0C06860401767\\n3545720632A7CCB123127825403069\\nB6404119C4... | rating_>1900 | {
"id": "884E",
"rating": 2500,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Assume we take a number `x` and perform any one of th... | code | {
"ground_truth": "{\"fn_name\": \"solve\", \"inputs\": [[[1, 3]], [[4, 2]], [[12, 3, 9, 4, 6, 8]], [[4, 8, 6, 3, 12, 9]], [[558, 744, 1488, 279, 2232, 1116]], [[9, 1, 3]], [[3000, 9000]], [[4, 1, 2]], [[10, 5]]], \"outputs\": [[[3, 1]], [[2, 4]], [[9, 3, 6, 12, 4, 8]], [[9, 3, 6, 12, 4, 8]], [[279, 558, 1116, 2232, ... | EASY | {
"id": "taco-train-7943",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The only difference between easy and hard versions a... | code | {
"ground_truth": "{\"inputs\": [\"7 2\\n1 2 3 2 1 3 2\\n\", \"10 4\\n2 3 3 1 1 2 1 2 3 3\\n\", \"3 4\\n1 1 2\\n\", \"9 2\\n1 2 3 4 5 6 7 8 9\\n\", \"1 4\\n1\\n\", \"1 5\\n1\\n\", \"1 1\\n5\\n\", \"9 2\\n1 2 3 4 5 6 7 8 9\\n\", \"1 4\\n1\\n\", \"1 1\\n5\\n\", \"3 4\\n1 1 2\\n\", \"1 5\\n1\\n\", \"9 2\\n1 2 3 4 5 6 7 ... | EASY | {
"id": "taco-train-19095",
"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": "Harry is doing magic practice on X axis.He found 4 p... | code | {
"ground_truth": "{\"inputs\": [\"100\\n1 2 4 5\\n1047669470 1537684409 1775448745 2265463684\\n1860430620 2107055858 4042482395 4289107633\\n1317023953 1409753263 2054649411 2147378721\\n1655693840 2551102033 2783674211 3679082404\\n949958172 2816421785 4103997495 5970461108\\n1713720064 2477558398 3875330310 46391... | EASY | {
"id": "taco-train-23382",
"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": "Vasya follows a basketball game and marks the distan... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 2 3\\n2\\n5 6\\n\", \"5\\n6 7 8 9 10\\n5\\n1 2 3 4 5\\n\", \"5\\n1 2 3 4 5\\n5\\n6 7 8 9 10\\n\", \"3\\n1 2 3\\n3\\n6 4 5\\n\", \"10\\n1 2 3 4 5 6 7 8 9 10\\n1\\n11\\n\", \"10\\n1 2 3 4 5 6 7 8 9 11\\n1\\n10\\n\", \"3\\n1 2 3\\n3\\n1 2 3\\n\", \"3\\n1 2 3\\n3\\n3 4 5\\n\", \"4... | MEDIUM_HARD | {
"id": "taco-train-8216",
"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": "One suggestion to build a satisfactory password is to... | code | {
"ground_truth": "{\"fn_name\": \"make_password\", \"inputs\": [[\"Give me liberty or give me death\"], [\"Keep Calm and Carry On\"]], \"outputs\": [[\"Gml0gmd\"], [\"KCaC0\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-18718",
"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's a chip in the point $(0, 0)$ of the coordina... | code | {
"ground_truth": "{\"inputs\": [\"3\\n8 6\\n0 0\\n9 15\\n\"], \"outputs\": [\"1\\n0\\n2\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-2739",
"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 table consisting of n rows and m col... | code | {
"ground_truth": "{\"inputs\": [\"3 6\\n101010\\n000100\\n100000\\n\", \"2 3\\n111\\n000\\n\", \"6 6\\n111000\\n011100\\n001110\\n000111\\n100011\\n110001\\n\", \"3 3\\n001\\n010\\n100\\n\", \"2 9\\n101010101\\n010101010\\n\", \"10 10\\n0001001101\\n0010001010\\n1100000000\\n0110110110\\n1011011010\\n1001001001\\n01... | rating_1401-1600 | {
"id": "230_C. Shifts",
"rating": 1500,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are developing a new feature for the website whi... | code | {
"ground_truth": "{\"inputs\": [\"3 3 1 2\\n\", \"10 54 100 27 1 33 27 80 49 27 6\\n\", \"10 54 100 28 1 33 27 80 49 27 6\\n\", \"10 54 100 28 1 33 27 80 49 6 6\\n\", \"10 54 100 28 1 3 27 80 49 6 6\\n\", \"10 54 100 27 1 33 27 80 49 21 6\\n\", \"3 3 1 4\\n\", \"10 90 100 28 1 33 27 80 49 6 6\\n\", \"10 54 100 27 2 ... | rating_1601-1900 | {
"id": "784_F. Crunching Numbers Just for You",
"rating": 1900,
"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": "Kostya is extremely busy: he is renovating his house... | code | {
"ground_truth": "{\"inputs\": [\"4 8\\n1 2 3 4\\n5 6 7 8\\n9 1 2 3\\n4 5 6 7\\n\", \"3 4\\n1 2 3\\n4 5 6\\n7 8 9\\n\", \"1 10\\n1\\n\", \"5 2\\n1 2 2 2 3\\n3 3 2 3 2\\n3 1 1 3 2\\n1 3 1 1 3\\n3 3 2 1 2\\n\", \"10 5\\n1 19 20 5 16 1 4 20 19 20\\n18 8 19 13 6 8 4 19 14 20\\n20 3 14 18 2 10 6 4 20 2\\n16 12 5 18 11 11... | rating_>1900 | {
"id": "1500_D. Tiles for Bathroom",
"rating": 2900,
"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": "A:It is a natural number greater than 1 that has no ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n42\\n108\\n250\\n\\nSAMPLE\", \"16\\n88\\n445\\n787\\n54\\n5\\n5345\\n68876\\n45\\n10\\n6876\\n1442\\n6878\\n11\\n554\\n53478\\n989\", \"3\\n60\\n108\\n250\\n\\nSAMPLE\", \"3\\n28\\n31\\n250\\n\\nMARPLE\", \"3\\n52\\n19\\n473\\n\\nMASPLE\", \"3\\n101\\n8\\n473\\n\\nMASEPL\", \"3... | none | {
"id": "p-lover",
"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": "MoEngage has a bundle of N sticks. The i^{th} stick ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1\\n1\\n2\\n2 5\\n4\\n2 2 3 3\\n7\\n1 3 5 7 1 7 5\\n\"], \"outputs\": [\"3\\n2\\n0\\n1\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-2021",
"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": "wHAT DO WE NEED cAPS LOCK FOR?\n\nCaps lock is a com... | code | {
"ground_truth": "{\"inputs\": [\"cAPS\", \"Lock\", \"cAPSlOCK\", \"CAPs\", \"LoCK\", \"OOPS\", \"oops\", \"a\", \"A\", \"aA\", \"Zz\", \"Az\", \"zA\", \"AAA\", \"AAa\", \"AaR\", \"Tdr\", \"aTF\", \"fYd\", \"dsA\", \"fru\", \"hYBKF\", \"XweAR\", \"mogqx\", \"eOhEi\", \"nkdku\", \"zcnko\", \"lcccd\", \"vwmvg\", \"lvc... | rating_<=1200 | {
"id": "131A",
"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": "Problem Statement\nLelouch is one of the famous busi... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 3 2\\nS C B\\nC B T\\nT T\"], \"outputs\": [\"1\"]}",
"style": "rule"
} | none | {
"id": "lelouch1",
"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 trick of fate caused Hatsumi and Taku to come to k... | code | {
"ground_truth": "{\"inputs\": [\"2008 2 29\\n2015 3 1\", \"1999 9 9\\n2001 11 3\", \"2008 2 29\\n2015 1 1\", \"1505 9 9\\n2001 11 3\", \"1505 9 9\\n2619 11 3\", \"1505 13 9\\n2619 11 3\", \"573 1 44\\n2015 1 1\", \"595 2 44\\n2015 2 1\", \"597 2 44\\n2015 2 1\", \"246 21 0\\n2619 11 5\", \"246 21 0\\n5129 11 5\", \... | none | {
"id": "p00365 Age Difference",
"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 non-negative integer(without leading zeroes) ... | code | {
"ground_truth": "{\"inputs\": [\"N = 4\\r\\nA[] = {5, 6, 7, 8}\", \"N = 3\\r\\nA[] = {9, 9, 9}\"], \"outputs\": [\"5 6 7 9\", \"1 0 0 0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-4504",
"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": "per nextum in unam tum XI conscribementis fac sic\n\... | code | {
"ground_truth": "{\"inputs\": [\"0\\n1\\n-2\\n-3\\n-4\\n-5\\n-6\\n-7\\n-8\\n-9\\n10\\n\", \"0\\n1\\n-2\\n-3\\n-4\\n-5\\n-6\\n-2\\n-8\\n-9\\n10\\n\", \"0\\n2\\n-2\\n-3\\n-4\\n-5\\n-6\\n-2\\n-8\\n-9\\n10\\n\", \"0\\n2\\n-2\\n-3\\n-4\\n-5\\n-2\\n-2\\n-8\\n-9\\n10\\n\", \"0\\n2\\n-2\\n-3\\n-4\\n-5\\n-2\\n-2\\n-8\\n-9\\... | MEDIUM | {
"id": "taco-train-12292",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The left-hand rule, which is also known as the wall ... | code | {
"ground_truth": "{\"inputs\": [\"3 3 3\\n1 0 1 2\\n1 2 2 2\\n2 2 2 1\\n0 0 1 0 1 1\\n3 3 4\\n1 0 1 2\\n1 2 2 2\\n2 2 2 1\\n2 1 1 1\\n0 0 1 0 1 1\\n3 3 0\\n0 0 1 0 1 1\\n0 0 0\", \"3 3 3\\n1 0 1 2\\n1 2 2 2\\n2 2 2 1\\n0 0 1 0 1 1\\n3 3 4\\n1 0 1 2\\n1 2 2 2\\n2 2 2 1\\n2 1 1 1\\n0 0 2 0 1 1\\n3 3 0\\n0 0 1 0 1 1\\n... | none | {
"id": "p01251 Left Hand Rule",
"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": "AmShZ has traveled to Italy from Iran for the Thom Y... | code | {
"ground_truth": "{\"inputs\": [\"2 1\\n1 2\\n\", \"4 4\\n1 2\\n1 4\\n2 4\\n1 4\\n\", \"5 7\\n1 2\\n2 3\\n3 5\\n1 4\\n4 3\\n4 5\\n3 1\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"4\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-23540",
"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": "Kristina has two arrays $a$ and $b$, each containing... | code | {
"ground_truth": "{\"inputs\": [\"6\\n4\\n3 5 4 1\\n1 3 2 0\\n3\\n1 2 1\\n0 1 0\\n4\\n5 3 7 2\\n1 1 1 1\\n5\\n1 2 3 4 5\\n1 2 3 4 6\\n1\\n8\\n0\\n1\\n4\\n6\\n\", \"1\\n1\\n372\\n200\\n\", \"1\\n2\\n1456 5324\\n1455 5323\\n\", \"1\\n4\\n372 372 1 8\\n372 372 1 8\\n\", \"1\\n4\\n8293 8293 1 8\\n8293 8293 1 8\\n\"], \"... | EASY | {
"id": "taco-train-24091",
"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": "Jon Snow now has to fight with White Walkers. He has... | code | {
"ground_truth": "{\"inputs\": [\"5 1 2\\n9 7 11 15 5\", \"2 100000 569\\n605 986\", \"10 10 98\\n1 58 62 71 55 4 20 17 25 29\", \"100 100 96\\n11 79 47 73 77 66 50 32 26 38 8 58 45 86 35 49 63 13 35 61 52 44 16 80 32 18 8 4 49 90 78 83 72 3 86 71 96 93 97 60 43 74 58 61 21 96 43 92 31 23 64 60 14 77 27 45 71 27 49 ... | rating_1601-1900 | {
"id": "768C",
"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": "Vasya is an active Internet user. One day he came ac... | code | {
"ground_truth": "{\"inputs\": [\"httpsunrux\\n\", \"ftphttprururu\\n\", \"httpuurrruurruuruuruuurrrurururuurruuuuuuruurr\\n\", \"httpfttpftpfttftpftpftppfrurururu\\n\", \"ftptpruuhttpuhttphuhtuhtrurrutphttuhtuht\\n\", \"ftprftprupruftptprurururftprrftpftprurftprrftprup\\n\", \"httpftphttptphttphrururuhpftphtpftphtp... | rating_<=1200 | {
"id": "245_B. Internet Address",
"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": "A flowerbed has many flowers and two fountains.\n\nY... | code | {
"ground_truth": "{\"inputs\": [\"2 -1 0 5 3\\n0 2\\n5 2\\n\", \"4 0 0 5 0\\n9 4\\n8 3\\n-1 0\\n1 4\\n\", \"5 -6 -4 0 10\\n-7 6\\n-9 7\\n-5 -1\\n-2 1\\n-8 10\\n\", \"10 -68 10 87 22\\n30 89\\n82 -97\\n-52 25\\n76 -22\\n-20 95\\n21 25\\n2 -3\\n45 -7\\n-98 -56\\n-15 16\\n\", \"1 -10000000 -10000000 -10000000 -9999999\... | MEDIUM_HARD | {
"id": "taco-train-22322",
"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": "We call a function good if its domain of definition ... | code | {
"ground_truth": "{\"inputs\": [\"5 5\\n? 1 0\\n? 1 1\\n? 2 1\\n? 2 2\\n? 3 2\\n? 3 3\\n? 4 3\\n? 4 4\\n? 5 4\\n? 5 5\\n!\\n0 1\\n1 2\\n2 3\\n3 4\\n4 5\\n\", \"1 1\\n1\\n1 144596170576560149 -144596170576560149 1\\n\", \"1 1\\n1\\n0 999999999999999999 -999999999999999999 1\\n\", \"1 1\\n1\\n0 0 999999999999999999 1\... | rating_>1900 | {
"id": "1179_E. Alesya and Discrete Math",
"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": "x*y = a + b*lcm(x,y) + c*gcd(x,y)\nIt's easy: you ar... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 1 1\\n160 0 90\\n300 7 5\"], \"outputs\": [\"2\\n8\\n4\"]}",
"style": "rule"
} | none | {
"id": "equatio",
"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, Russia... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 2\\n2 1\\n2 3\\n2 2\\n1 2\\n2 3\\n3 0\\n1 2\\n2 4\\n10 10\"], \"outputs\": [\"6\\n3\\n110\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-12734",
"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": "I'm new to coding and now I want to get the sum of tw... | code | {
"ground_truth": "{\"fn_name\": \"array_plus_array\", \"inputs\": [[[1, 2, 3], [4, 5, 6]], [[-1, -2, -3], [-4, -5, -6]], [[0, 0, 0], [4, 5, 6]], [[100, 200, 300], [400, 500, 600]]], \"outputs\": [[21], [-21], [15], [2100]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-8020",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "problem\n\nYou want to get a treasure on the Nth bas... | code | {
"ground_truth": "{\"inputs\": [\"10 10\\n4 2\\n2 5\\n6 1\\n7 3\\n6 4\\n9 6\\n0 8\\n4 1\\n9 4\", \"10 10\\n4 3\\n2 5\\n6 1\\n7 3\\n6 4\\n9 6\\n0 8\\n4 1\\n9 4\", \"10 10\\n4 3\\n2 5\\n6 1\\n6 3\\n6 4\\n9 6\\n0 8\\n4 1\\n9 4\", \"10 10\\n4 3\\n2 3\\n6 1\\n3 3\\n6 4\\n9 6\\n0 8\\n2 1\\n9 4\", \"5 10\\n4 3\\n2 3\\n6 1\... | none | {
"id": "p00476 Dungeon",
"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": "Arkady decided to buy roses for his girlfriend.\n\nA... | code | {
"ground_truth": "{\"inputs\": [\"5 2\\n10 20 14 20 11\\nRRRRR\\n\", \"5 3\\n4 3 4 1 6\\nRROWW\\n\", \"11 5\\n5 6 3 2 3 4 7 5 4 5 6\\nRWOORWORROW\\n\", \"3 2\\n5920 9303 7542\\nWRR\\n\", \"1 1\\n100\\nO\\n\", \"3 2\\n9700 698 2122\\nOWR\\n\", \"4 2\\n1175 8186 4321 1810\\nWWOO\\n\", \"4 2\\n2884 2918 8629 9905\\nRWO... | rating_>1900 | {
"id": "926_H. Endless Roses Most Beautiful",
"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": "You've got a rectangular parallelepiped with integer... | code | {
"ground_truth": "{\"inputs\": [\"4 6 6\\n\", \"1 1 1\\n\", \"615 18 1230\\n\", \"9 4 36\\n\", \"10000 1 10000\\n\", \"324 9 36\\n\", \"12 14 42\\n\", \"10000 10000 10000\\n\", \"20 10 50\\n\", \"65 156 60\\n\", \"2239 2239 1\\n\", \"644 966 6\\n\", \"9 9 9\\n\", \"1485 55 27\\n\", \"912 276 1748\\n\", \"66 174 319\... | rating_<=1200 | {
"id": "224_A. Parallelepiped",
"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": "Read problem statements in [Hindi], [Bengali], [Mand... | code | {
"ground_truth": "{\"inputs\": [\"2\\n6\\n1 6 11 6 10 11\\n4\\n1 3 5 7\"], \"outputs\": [\"15\\n3\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-24426",
"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": "Let w be a string consisting of lowercase letters.\n... | code | {
"ground_truth": "{\"inputs\": [\"abaccaba\\n\", \"hthth\\n\", \"ab`ccaba\", \"ab`cc`ba\", \"hthtg\", \"hghtt\", \"`b`cc`ba\", \"hgtth\", \"ab`cc`b`\", \"hgtuh\", \"`b`cc`ca\", \"hgsth\", \"`b_cc`ca\", \"hfsth\", \"`b_dc`ca\", \"hfsti\", \"`b_dc`da\", \"hgsti\", \"ad`cd_b`\", \"hgssi\", \"ad`cd_a`\", \"issgh\", \"`a... | EASY | {
"id": "taco-train-24291",
"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 number N. Count the number of digits in N whi... | code | {
"ground_truth": "{\"inputs\": [\"N = 12\", \"N = 23\"], \"outputs\": [\"2\", \"0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-5593",
"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 string S, check whether it can be converted i... | code | {
"ground_truth": "{\"inputs\": [\"S = \\\"bbbbbxxhhelllllooudd\\\"\", \"S = \\\"hlelo\\\"\"], \"outputs\": [\"1\", \"0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-17338",
"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": "Let there be a set of size N. \nPower set of a set S... | code | {
"ground_truth": "{\"inputs\": [\"1\\n2\\n\\nSAMPLE\", \"1\\n2\\n\\nSAMOLE\", \"1\\n1\\n\\nSAMOLE\", \"1\\n3\\n\\nSAMOLE\", \"1\\n4\\n\\nSAMOLD\", \"1\\n7\\n\\nDLOMAS\", \"1\\n6\\n\\nMLODAS\", \"1\\n5\\n\\nMOLDAS\", \"1\\n8\\n\\nMOLDAS\", \"1\\n16\\n\\nMOLDAS\", \"1\\n0\\n\\nRBEMPO\", \"1\\n13\\n\\nDLOMAS\", \"1\\n9... | none | {
"id": "power-set-game-3",
"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": "The Department of economic development of IT City cr... | code | {
"ground_truth": "{\"inputs\": [\"1 30 200\\n\", \"1 1 0\\n\", \"-779 -814 321\\n\", \"-1 1 1\\n\", \"1000 1000 -999\\n\", \"1 1 -1\\n\", \"633 304 -186\\n\", \"-1 1000 1\\n\", \"1 0 -9\\n\", \"1000 1 -1\\n\", \"-181 -227 368\\n\", \"-779 -814 481\\n\", \"-1 2 1\\n\", \"1000 1000 -1322\\n\", \"2 1 -1\\n\", \"633 498... | rating_1201-1400 | {
"id": "630_N. Forecast",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Implement a function, `multiples(m, n)`, which return... | code | {
"ground_truth": "{\"fn_name\": \"multiples\", \"inputs\": [[3, 5], [1, 3.14], [5, -1]], \"outputs\": [[[5, 10, 15]], [[3.14]], [[-1, -2, -3, -4, -5]]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-8900",
"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* cities located along the one-way road.... | code | {
"ground_truth": "{\"inputs\": [\"3 0\\n1 2 3\\n3 2 1\", \"5 1\\n7 4 2 1 0\\n1 2 3 4 5\", \"4 3\\n13 10 7 4\\n4 7 10 13\", \"10 1\\n0 2 1 1 0 2 5 2 5 5\\n4 0 1 4 2 4 4 5 2 3\", \"10 3\\n10 6 0 5 3 8 7 10 7 7\\n6 8 1 4 6 10 8 10 10 4\", \"10 0\\n9 5 6 3 4 4 7 8 5 1\\n4 0 9 0 5 2 3 2 9 5\", \"10 4\\n36 80 90 80 14 84 ... | rating_>1900 | {
"id": "724E",
"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": "Read problems statements in Mandarin chinese, Russia... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2\\n2 2\\n3\\n2 1 3\\n6\\n4 2 5 1 3 5\"], \"outputs\": [\"1\\n1\\n7\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-21456",
"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": "Companies always have a lot of equipment, furniture ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 3 2\", \"4\\n2 2 3 3\", \"1\\n2\", \"3\\n3 3 1\", \"5\\n1 1 1 1 1\", \"5\\n5 3 4 4 2\", \"5\\n19 11 8 8 10\", \"15\\n2 2 1 2 1 2 3 3 1 3 2 1 2 3 2\", \"18\\n3 11 5 9 5 4 6 4 5 7 5 1 8 11 11 2 1 9\", \"42\\n999 863 440 1036 1186 908 330 265 382 417 858 286 834 922 42 569 79 158... | rating_<=1200 | {
"id": "569B",
"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": "Let's say you are standing on the XY-plane at point ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2\\n13 88\\n3\\n2 3 1\\n5\\n4 3 2 1 4\\n\", \"3\\n2\\n13 88\\n3\\n2 3 0\\n5\\n4 3 2 1 4\\n\", \"3\\n2\\n13 88\\n3\\n2 3 1\\n5\\n4 3 3 1 4\\n\", \"3\\n2\\n13 100\\n3\\n2 3 0\\n5\\n4 3 2 1 5\\n\", \"3\\n2\\n13 88\\n3\\n2 3 1\\n5\\n4 3 3 2 4\\n\", \"3\\n2\\n13 100\\n3\\n2 3 0\\n5\\... | rating_1401-1600 | {
"id": "1499_C. Minimum Grid Path",
"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": "One fine morning, n fools lined up in a row. After t... | code | {
"ground_truth": "{\"inputs\": [\"1 1\\n100\\n\", \"3 3\\n50 50 50\\n\", \"3 3\\n0 0 0\\n\", \"2 1\\n100 100\\n\", \"3 2\\n100 100 100\\n\", \"2 2\\n1 0\\n\", \"2 1\\n1 0\\n\", \"5 2\\n0 63 92 89 28\\n\", \"1 1\\n0\\n\", \"1 1\\n50\\n\", \"50 25\\n100 50 0 0 50 100 100 0 50 50 100 50 50 100 50 100 100 100 50 100 0 5... | rating_>1900 | {
"id": "369_D. Valera and Fools",
"rating": 2200,
"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": "Find all pairs (sets) of prime numbers (p,q) such tha... | code | {
"ground_truth": "{\"inputs\": [\"n = 4\", \"n = 8\"], \"outputs\": [\"2 2\", \"2 2 2 3 3 2\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-10115",
"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 positive integer N, the task is to find all t... | code | {
"ground_truth": "{\"inputs\": [\"N = 2\", \"N = 3\"], \"outputs\": [\"11 10\", \"111 110 101\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-14189",
"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": "Let n be a positive integer. Let a, b, c be nonnegat... | code | {
"ground_truth": "{\"inputs\": [\"2\\n3\\n1 1 1\\nRPS\\n3\\n3 0 0\\nRPS\\n\", \"1\\n19\\n2 8 9\\nRRPPPPPPPPSSSSSSSSS\\n\", \"7\\n2\\n1 1 0\\nRR\\n2\\n2 0 0\\nSS\\n2\\n2 0 0\\nRR\\n3\\n1 2 0\\nRRR\\n3\\n2 1 0\\nRRR\\n1\\n1 0 0\\nP\\n1\\n1 0 0\\nS\\n\", \"2\\n3\\n1 1 1\\nRSP\\n3\\n3 0 0\\nRPS\\n\", \"7\\n2\\n1 1 0\\nR... | rating_<=1200 | {
"id": "1245_B. Restricted RPS",
"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": "Countless lithographs have been found in the ruins o... | code | {
"ground_truth": "{\"inputs\": [\"5 4\\naloe\\napple\\napricot\\ncactus\\ncat\\napple\\nap*\\n*e\\nca?*\", \"5 4\\naloe\\napple\\napricot\\ncactus\\ncat\\nappld\\nap*\\n*e\\nca?*\", \"5 4\\neola\\napple\\napricot\\ncactus\\ncat\\ndlppa\\nap*\\n*e\\nca?*\", \"5 4\\neola\\napple\\naprhcou\\ncactus\\ncat\\ndlppb\\nap*\... | none | {
"id": "p00317 Slates",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "It turns out that you are a great fan of rock band A... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n50 2\\n10 1\\n\", \"2 2\\n0 2\\n0 2\\n\", \"3 3\\n50 3\\n50 2\\n25 2\\n\", \"2 2\\n0 2\\n100 2\\n\", \"37 4648\\n53 3169\\n66 4152\\n81 4540\\n98 4302\\n51 4427\\n42 2556\\n35 2288\\n56 2401\\n12 3864\\n45 4223\\n93 1809\\n4 2372\\n17 4357\\n67 1700\\n19 4508\\n5 2586\\n99 275... | rating_>1900 | {
"id": "498_B. Name That Tune",
"rating": 2400,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Kefa wants to celebrate his first big salary by goin... | code | {
"ground_truth": "{\"inputs\": [\"4 5\\n75 5\\n0 100\\n150 20\\n75 1\", \"5 100\\n0 7\\n11 32\\n99 10\\n46 8\\n87 54\", \"1 1000000000\\n15 12\", \"5 1\\n5 9\\n2 10\\n8 5\\n18 12\\n1 1\", \"3 3\\n4 15\\n0 17\\n9 11\", \"5 10\\n8 90\\n1009 1000000\\n9 121\\n10 298\\n0 109092\", \"5 9\\n0 98\\n2 1000000000\\n8 1000000... | rating_1401-1600 | {
"id": "580B",
"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": "Its world war Z and you are a member of the secret c... | code | {
"ground_truth": "{\"inputs\": [\"1\\n5 500\", \"3\\n1 10\\n100 10000\\n10000 10000000\"], \"outputs\": [\"93\", \"4\\n1204\\n663350\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-2600",
"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": "During the \"Russian Code Cup\" programming competit... | code | {
"ground_truth": "{\"inputs\": [\"2\\n0 1\\n1 1\\n\", \"4\\n0 1\\n1 2\\n1 1\\n0 2\\n\", \"4\\n0 1\\n1 1\\n0 1\\n0 2\\n\", \"4\\n7 1\\n4 2\\n8 2\\n1 8\\n\", \"2\\n0 8\\n0 5\\n\", \"3\\n7 9\\n5 8\\n8 2\\n\", \"1\\n0 8\\n\", \"5\\n8 10\\n7 9\\n5 6\\n5 2\\n10 7\\n\", \"7\\n0 2\\n0 3\\n0 2\\n0 1\\n0 10\\n1 10\\n0 5\\n\",... | MEDIUM | {
"id": "taco-train-9493",
"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": "One day, early in the morning, you decided to buy yo... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1\\n1337\\n3\\n10 8 10\\n5\\n1 2 3 4 5\\n3\\n7 77 777\\n\", \"1\\n1\\n6006\\n\", \"1\\n1\\n6006\\n\", \"1\\n1\\n2668\\n\", \"4\\n1\\n1337\\n3\\n10 8 1\\n5\\n1 2 3 4 5\\n3\\n7 77 777\\n\", \"1\\n1\\n865\\n\", \"1\\n1\\n483\\n\", \"1\\n1\\n132\\n\", \"1\\n1\\n245\\n\", \"1\\n1\\n7... | HARD | {
"id": "taco-train-8241",
"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": "Our brave travelers reached an island where pirates ... | code | {
"ground_truth": "{\"inputs\": [\"3 4\\n####\\n#.A#\\n####\\n2\\nW 1\\nN 2\\n\", \"6 10\\n##########\\n#K#..#####\\n#.#..##.##\\n#..L.#...#\\n###D###A.#\\n##########\\n4\\nN 2\\nS 1\\nE 1\\nW 2\\n\", \"4 9\\n#########\\n#AB#CDEF#\\n#.......#\\n#########\\n1\\nW 3\\n\", \"10 19\\n###################\\n#######QR..H###... | rating_1601-1900 | {
"id": "106_D. Treasure Island",
"rating": 1700,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You have been offered a job in a company developing ... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n1 2\\n2 3\\n1 3\", \"3 0\", \"4 1\\n1 3\", \"1 0\", \"2 0\", \"2 1\\n1 2\", \"10 9\\n8 3\\n3 1\\n3 4\\n4 10\\n4 7\\n7 3\\n8 4\\n10 3\\n4 1\", \"20 50\\n2 15\\n20 1\\n3 16\\n3 4\\n15 4\\n19 3\\n11 6\\n1 15\\n18 19\\n12 9\\n12 16\\n15 12\\n2 12\\n4 12\\n15 14\\n14 18\\n7 11\\n15... | rating_>1900 | {
"id": "154C",
"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 day Alex was creating a contest about his friend... | code | {
"ground_truth": "{\"inputs\": [\"Alex_and_broken_contest\\n\", \"NikitaAndString\\n\", \"Danil_and_Olya\\n\", \"Hardest_problem_ever\\n\", \"Wake_up_Neo\\n\", \"AnAnn\\n\", \"DanilOlyaOlya\\n\", \"And_Danil\\n\", \"Olya_and_energy_drinks\\n\", \"ann\\n\", \"Nikita_Nikita\\n\", \"Vanya\\n\", \"AnnAnn\\n\", \"Danil_D... | rating_<=1200 | {
"id": "877_A. Alex and broken contest",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "In this kata you will create a function to check a no... | code | {
"ground_truth": "{\"fn_name\": \"is_prime\", \"inputs\": [[0], [1], [2], [11], [12], [61], [571], [573], [25]], \"outputs\": [[false], [false], [true], [true], [false], [true], [true], [false], [false]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-18405",
"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 a given prime number p find all the number of pa... | code | {
"ground_truth": "{\"inputs\": [\"13\\n2\\n3 \\t\\n5 \\n7\\n11\\n13\\n17\\n19\\n23\\n29\\n31\\n37\\n41\", \"1\\n3\", \"53\\n2\\n3 \\t\\n5 \\n7\\n11\\n13\\n17\\n19\\n23\\n29\\n31\\n37\\n41 \\t\\n811 \\n821\\n823\\n827\\n829\\n839\\n853\\n857\\n859\\n863\\n877\\n881\\n883\\n887\\n907\\n911\\n919\\n929\\n937\\n941\\n24... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-22952",
"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": "Beppa and her circle of geek friends keep up to date... | code | {
"ground_truth": "{\"inputs\": [\"4\\n5\\n1 4 2 5 3\\n4 5 1 2 3\\n6\\n1 2 3 4 5 6\\n1 2 3 4 5 6\\n8\\n8 2 4 7 1 6 5 3\\n5 6 1 4 8 2 7 3\\n1\\n1\\n1\\n\"], \"outputs\": [\"2\\n0\\n4\\n0\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-21497",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "We have A balls with the string S written on each of... | code | {
"ground_truth": "{\"inputs\": [\"red blue\\n3 4\\nred\", \"red blue\\n5 5\\nblue\", \"red blue\\n3 2\\nred\", \"red blte\\n3 0\\nred\", \"red blue\\n5 0\\nred\", \"red blue\\n7 0\\nred\", \"red blue\\n5 1\\nred\", \"red blue\\n0 0\\nred\", \"red blte\\n3 4\\nred\", \"red blue\\n1 0\\nred\", \"red blue\\n11 0\\nred\... | none | {
"id": "p02777 AtCoder Beginner Contest 154 - Remaining Balls",
"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": "Bob has a favorite number k and ai of length n. Now ... | code | {
"ground_truth": "{\"inputs\": [\"6 2 3\\n1 2 1 1 0 3\\n1 6\\n3 5\\n\", \"5 3 1\\n1 1 1 1 1\\n1 5\\n2 4\\n1 3\\n\", \"6 2 4\\n1 2 1 1 0 3\\n1 6\\n3 5\\n\", \"5 3 1\\n0 1 1 1 1\\n1 5\\n2 4\\n1 3\\n\", \"6 2 3\\n1 4 1 1 0 3\\n1 6\\n3 5\\n\", \"5 3 1\\n0 1 1 1 1\\n1 5\\n2 4\\n1 2\\n\", \"5 3 0\\n0 1 1 1 1\\n1 5\\n2 4\\... | rating_>1900 | {
"id": "617_E. XOR and Favorite Number",
"rating": 2200,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are the boss of ACM (Association for Convex Main... | code | {
"ground_truth": "{\"inputs\": [\"3\\n\", \"4\\n\"], \"outputs\": [\"0 0\\n40000000 0\\n0 40000000\\n\", \"5 5\\n0 0\\n5 0\\n0 5\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-11390",
"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 a tree with n nodes. As a reminder, a ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n3\\n2 1\\n1 3\\n2\\n1 2\\n\", \"3\\n3\\n2 1\\n1 3\\n3\\n1 2\\n2 3\\n3\\n1 3\\n2 3\\n\", \"1\\n2\\n1 2\\n\", \"10\\n4\\n2 1\\n3 1\\n1 4\\n4\\n3 1\\n1 2\\n2 4\\n4\\n2 1\\n1 3\\n3 4\\n4\\n2 1\\n1 4\\n3 4\\n4\\n1 2\\n3 2\\n2 4\\n4\\n1 2\\n2 3\\n3 4\\n4\\n1 2\\n2 4\\n3 4\\n4\\n1 3\\n... | rating_>1900 | {
"id": "1554_E. You",
"rating": 2600,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "# Task\n Imagine a standard chess board with only two... | code | {
"ground_truth": "{\"fn_name\": \"whose_turn\", \"inputs\": [[\"b1;g1;b8;g8\"], [\"c3;g1;b8;g8\"], [\"g1;g2;g3;g4\"], [\"f8;h1;f3;c2\"]], \"outputs\": [[true], [false], [true], [false]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-16316",
"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 two integers a and b (a ≤ b). How many... | code | {
"ground_truth": "{\"inputs\": [\"10 20\\n\", \"23 23\\n\", \"271 566\\n\"], \"outputs\": [\"4\\n\", \"1\\n\", \"46\\n\"]}",
"style": "rule"
} | rating_1601-1900 | {
"id": "661_F. Primes in Interval",
"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": "Smart Beaver decided to be not only smart, but also ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2 2 1 2\\n\", \"8\\n1 2 2 1 2 1 1 2\\n\", \"1\\n2\\n\", \"1\\n1\\n\", \"2\\n2 2\\n\", \"2\\n1 2\\n\", \"2\\n1 1\\n\", \"10\\n2 2 2 2 2 2 1 2 1 1\\n\", \"10\\n2 1 1 2 1 2 1 2 2 1\\n\", \"10\\n1 1 1 1 1 1 1 1 1 1\\n\", \"10\\n1 1 1 1 2 1 1 1 1 1\\n\", \"10\\n2 1 2 2 2 2 2 2 2 2\... | VERY_HARD | {
"id": "taco-train-22778",
"rating": null,
"split": "confidence_train",
"sub_source": "VERY_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A very popular position has just opened up at Poodle... | code | {
"ground_truth": "{\"inputs\": [\"10\\n3 6 2 3 2 2 2 1 5 6\\n\", \"3\\n17 17 17\\n\", \"7\\n8 1 2 3 5 6 7\\n\"], \"outputs\": [\"2\\n3 2 2 1 5\\n3 2 2\\n6 6\\n\", \"0\\n17 17 17\\n\", \"2\\n1 2 3 5 6\\n7\\n8\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-1207",
"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": "Skyline Real Estate Developers is planning to demoli... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 5\\n\"], \"outputs\": [\"9\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-23542",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.