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": "Sereja placed n points on a plane. Now Sereja wants ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n0 0\\n2 0\\n0 2\\n2 2\\n\", \"4\\n1 0\\n0 1\\n2 1\\n1 2\\n\", \"4\\n1000000000 0\\n-1000000000 0\\n0 1000000000\\n0 -1000000000\\n\", \"4\\n69909134 -742344217\\n-915029257 -978582438\\n-962620940 -959126020\\n-991329472 -919164320\\n\", \"8\\n9107609 -36778257\\n-65794683 -7554... | rating_>1900 | {
"id": "314_D. Sereja and Straight Lines",
"rating": 2500,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "PROBLEM SPECIFICATION:\nYou are given three positive... | code | {
"ground_truth": "{\"inputs\": [\"1\\n24 5 3\\n\\nSAMPLE\", \"11\\n24 5 3\\n1000000000 1 4\\n978654 5467 378\\n100000008 2 87965\\n989 3 78\\n2571 23 890\\n12345678 765 987\\n2353768 123 998\\n87879645 4 7\\n12309876 5 8796\\n6598354 7658 8\", \"100\\n1681692778 887 84\\n424238336 7794 16\\n596516650 493 87\\n135049... | none | {
"id": "simple-maths",
"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": "D: Anipero 2012\n\nAnipero Summer Live, commonly kno... | code | {
"ground_truth": "{\"inputs\": [\"1 5\\n2 3 8\", \"1 5\\n2 0 8\", \"1 5\\n1 -1 8\", \"1 5\\n1 -1 6\", \"1 1\\n2 1 1\", \"1 0\\n2 1 1\", \"1 0\\n4 -2 5\", \"1 2\\n1 0 11\", \"1 0\\n0 -2 7\", \"1 1\\n1 0 13\", \"1 5\\n3 3 8\", \"0 5\\n1 0 6\", \"1 2\\n1 0 18\", \"1 0\\n0 -3 14\", \"1 1\\n2 0 4\", \"1 9\\n2 -1 13\", \"... | none | {
"id": "p01534 Anipero 2012",
"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 have k pieces of laundry, each of which you want... | code | {
"ground_truth": "{\"inputs\": [\"1 1 1 1 5 5 5\\n\", \"8 4 3 2 10 5 2\\n\", \"10000 1000 1000 1000 1000 1000 1000\\n\", \"8 3 4 3 10 9 4\\n\", \"5 2 4 5 9 9 6\\n\", \"4 5 1 2 4 6 2\\n\", \"11 5 5 1 9 6 8\\n\", \"1 3 2 2 5 2 8\\n\", \"2933 578 144 393 710 699 874\\n\", \"2460 502 99 260 659 409 586\\n\", \"1444 75 2... | HARD | {
"id": "taco-train-1989",
"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": "All techniques in the ninja world consist of hand se... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2 3\\n6 5 4\\n1 2 3\\n1 6\\n2 5\\n3 4\\n3 1\\n2\\n3\\n1\\n3 1 2\\n\", \"2\\n2 3\\n6 5 4\\n1 2 3\\n1 6\\n2 4\\n3 5\\n3 1\\n2\\n3\\n1\\n3 1 2\\n\", \"2\\n2 3\\n6 5 4\\n1 2 3\\n1 6\\n2 5\\n3 4\\n3 1\\n3\\n2\\n1\\n3 1 2\\n\"], \"outputs\": [\"1 2 3 \\n6 5 4 \\n3 \\n1 \\n2 \\n\", \"1... | rating_<=1200 | {
"id": "1413_B. A New Technique",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The crowdedness of the discotheque would never stop ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n2 1 6\\n0 4 1\\n2 -1 3\\n1 -2 1\\n4 -1 1\", \"8\\n0 0 1\\n0 0 2\\n0 0 3\\n0 0 4\\n0 0 5\\n0 0 6\\n0 0 7\\n0 0 8\", \"4\\n1000000 -1000000 2\\n1000000 -1000000 3\\n-1000000 1000000 2\\n-1000000 1000000 1000000\", \"15\\n-848 0 848\\n-758 0 758\\n-442 0 442\\n-372 0 372\\n-358 0 3... | rating_>1900 | {
"id": "814D",
"rating": 2000,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Some days ago, I learned the concept of LCM (least c... | code | {
"ground_truth": "{\"inputs\": [\"9\", \"7\", \"1\", \"5\", \"6\", \"33\", \"21\", \"2\", \"41\", \"29\", \"117\", \"149\", \"733\", \"925\", \"509\", \"829\", \"117\", \"605\", \"245\", \"925\", \"213\", \"53\", \"341\", \"21\", \"605\", \"149\", \"733\", \"117\", \"53\", \"245\", \"829\", \"924\", \"508\", \"700\"... | rating_1401-1600 | {
"id": "235A",
"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": "Given a natural number n, we want to know in how many... | code | {
"ground_truth": "{\"fn_name\": \"prod_int_part\", \"inputs\": [[18], [60], [54], [37], [61]], \"outputs\": [[[3, [2, 3, 3]]], [[10, [2, 2, 3, 5]]], [[6, [2, 3, 3, 3]]], [[0, []]], [[0, []]]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-5583",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There are n cities located along the one-way road. C... | code | {
"ground_truth": "{\"inputs\": [\"3 0\\n1 2 3\\n3 2 1\\n\", \"5 1\\n7 4 2 1 0\\n1 2 3 4 5\\n\", \"4 3\\n13 10 7 4\\n4 7 10 13\\n\", \"10 3\\n10 6 0 5 3 8 7 10 7 7\\n6 8 1 4 6 10 8 10 10 4\\n\", \"10 4\\n36 80 90 80 14 84 22 29 35 45\\n100 2 1 98 28 89 52 37 15 77\\n\", \"10 0\\n9 5 6 3 4 4 7 8 5 1\\n4 0 9 0 5 2 3 2 ... | rating_>1900 | {
"id": "724_E. Goods transportation",
"rating": 2900,
"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": "Recenlty Luba got a credit card and started to use i... | code | {
"ground_truth": "{\"inputs\": [\"5 10\\n-1 5 0 -5 3\", \"3 4\\n-10 0 20\", \"5 10\\n-5 0 10 -11 0\", \"5 13756\\n-2 -9 -10 0 10\", \"20 23036\\n-1 1 -1 -1 -1 -1 1 -1 -1 0 0 1 1 0 0 1 0 0 -1 -1\", \"12 82016\\n1 -2 -1 -1 -2 -1 0 -2 -1 1 -2 2\", \"7 8555\\n-2 -3 -2 3 0 -2 0\", \"16 76798\\n-1 11 -7 -4 0 -11 -12 3 0 -... | rating_1601-1900 | {
"id": "893D",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a non-negative number N and two values L and R.... | code | {
"ground_truth": "{\"inputs\": [\"N = 17, L = 2, R = 3\", \"N = 8, L = 1, R = 2\"], \"outputs\": [\"23\", \"11\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-12900",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a string $s$, consisting of $n$ letter... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1\\na\\n6\\nabbaba\\n6\\nabbaba\\n9\\nbabbabbaa\\n\", \"1\\n30\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\n\", \"1\\n29\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\n\", \"1\\n30\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\n\", \"1\\n29\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\n\", \"4\\n1\\na\\n6\\nabbaba\\n6\\nabba... | EASY | {
"id": "taco-train-15020",
"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": "To decide which is the strongest among Rock, Paper, ... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\nRPS\\n\", \"11 1\\nRPSSPRSPPRS\\n\", \"1 100\\nS\\n\", \"100 100\\nPSRRPRRSPSPSSSPSSSPSSSSSPSRSPRRPSRSSPSPPRRSRRRRPSSRRRRPSPSPSSRPRPPRSSRSSPSRPRSRPPSRPRPRPSPSPRRSRSPSP\\n\", \"100 100\\nRRPSSPPPPSRSRPSSPRSPPSPRSRRPSSPRRPSPPSPSPPRSSRPRPRRSSPSRSSRPSRSRRPRPPPSSSRRRPPRRRSPRRSPSSRR... | MEDIUM_HARD | {
"id": "taco-train-9999",
"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": "Geek is very fond of patterns. Once, his teacher gave... | code | {
"ground_truth": "{\"inputs\": [\"4\"], \"outputs\": [\"4 4 4 4 4 4 4\\n4 3 3 3 3 3 4\\n4 3 2 2 2 3 4\\n4 3 2 1 2 3 4\\n4 3 2 2 2 3 4\\n4 3 3 3 3 3 4\\n4 4 4 4 4 4 4\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-19639",
"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": "In Doraland, people have unique Identity Numbers call... | code | {
"ground_truth": "{\"inputs\": [\"N = 6\\r\\narray[] = {1, 1, 1, 2, 2, 3}\\r\\nK = 2\", \"N = 8\\r\\narray[] = {1, 1, 2, 2, 3, 3, 3, 4}\\r\\nK = 2\"], \"outputs\": [\"1 2\", \"3 2\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-2376",
"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 string s consisting only of characte... | code | {
"ground_truth": "{\"inputs\": [\"3\\n111\\n\", \"8\\n11010111\\n\", \"10\\n1000010110\\n\", \"9\\n001011001\\n\", \"10\\n0011011111\\n\", \"11\\n00010000011\\n\", \"10\\n0100000000\\n\", \"15\\n100000100000011\\n\", \"18\\n110010101101111111\\n\", \"3\\n011\\n\", \"45\\n011010001100001111110001011100000001101100111... | rating_1401-1600 | {
"id": "873_B. Balanced Substring",
"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": "Little Johnny Bubbles enjoys spending hours in front... | code | {
"ground_truth": "{\"inputs\": [\"7 1.0000\\n\", \"956 0.9733\\n\", \"444 0.0265\\n\", \"267 0.4122\\n\", \"840 0.5672\\n\", \"937 0.8022\\n\", \"504 0.2099\\n\", \"439 0.0404\\n\", \"200 0.9495\\n\", \"566 0.6282\\n\", \"995 0.4480\\n\", \"364 0.3555\\n\", \"891 0.6481\\n\", \"329 0.5879\\n\", \"622 0.8974\\n\", \"... | rating_>1900 | {
"id": "1599_C. Bubble Strike",
"rating": 2000,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). 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. ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3\\n1 2 3\\n3\\n2 2 2\\n5\\n2 2 3 3 3\"], \"outputs\": [\"0\\n4\\n5\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-6980",
"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 NxN matrix of positive integers. There are on... | code | {
"ground_truth": "{\"inputs\": [\"N = 2\\r\\nMatrix = {{348, 391},\\r\\n {618, 193}}\", \"N = 2\\r\\nMatrix = {{2, 2},\\r\\n {2, 2}}\"], \"outputs\": [\"1009\", \"4\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-9669",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a rectangle of size n x m, find the minimum num... | code | {
"ground_truth": "{\"fn_name\": \"tilingRectangle\", \"inputs\": [[2, 3]], \"outputs\": [3]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-559",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a permutation p of the set {1, 2, ...,... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 2 1\", \"3\\n2 3 1\", \"2\\n1 2\", \"2\\n1 0\", \"2\\n0 -1\", \"3\\n2 0 1\", \"3\\n1 3 2\", \"3\\n1 -1 0\", \"3\\n0 2 1\", \"3\\n0 1 2\", \"3\\n2 1 0\", \"2\\n2 1\", \"2\\n2 -1\", \"2\\n-1 0\", \"2\\n0 1\", \"2\\n-1 2\", \"3\\n1 0 2\", \"3\\n-1 3 1\", \"3\\n-1 0 1\", \"3\\n0 -... | none | {
"id": "p03938 AtCoder Grand Contest 007 - Construct Sequences",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Problem\n\nGiven the integer n, output the smallest ... | code | {
"ground_truth": "{\"inputs\": [\"3\", \"2\", \"111\", \"4\", \"11\", \"101\", \"7\", \"15\", \"31\", \"63\", \"127\", \"255\", \"110\", \"6\", \"010\", \"16\", \"011\", \"5\", \"000\", \"0\", \"-2\", \"8\", \"100\", \"10\", \"14\", \"20\", \"12\", \"-4\", \"24\", \"-6\", \"9\", \"13\", \"-8\", \"-12\", \"21\", \"19... | none | {
"id": "p02116 nCm",
"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": "Your goal is to implement the method **meanVsMedian**... | code | {
"ground_truth": "{\"fn_name\": \"mean_vs_median\", \"inputs\": [[[1, 1, 1]], [[1, 2, 37]], [[7, 14, -70]], [[-10, 20, 5]]], \"outputs\": [[\"same\"], [\"mean\"], [\"median\"], [\"same\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-1033",
"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": "This is an interactive problem. In the interaction s... | code | {
"ground_truth": "{\"inputs\": [\"2\\n0 0\\n0 0\", \"3\\n0 0 0\\n2 7 0\\n0 0 4\\n3 0 8\\n0 5 4\", \"3\\n0 0 0\\n0 0 0\\n0 0 0\\n\", \"3\\n0 3 2\\n5 0 7\\n4 8 0\\n\", \"2\\n0 238487454\\n54154238 0\\n\", \"2\\n0 0\\n0 0\\n\", \"3\\n0 0 0\\n0 0 1\\n0 0 0\\n\", \"2\\n0 238487454\\n98139073 0\\n\", \"2\\n0 0\\n1 0\\n\",... | rating_1601-1900 | {
"id": "744_B. Hongcow's Game",
"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": "Given is an integer N.\nDetermine whether there is a... | code | {
"ground_truth": "{\"inputs\": [\"106\\n\", \"1024\\n\", \"10460353208\\n\", \"748307129767950488\\n\", \"450283905890997368\\n\", \"298023223876953128\\n\", \"8\\n\", \"258489532\\n\", \"2541865828954\\n\", \"19073486347808\\n\", \"150094635296999246\\n\", \"61457664964242466\\n\", \"11920928955078134\\n\", \"1\\n\... | MEDIUM_HARD | {
"id": "taco-train-9463",
"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 an array of citations sorted in ascending order... | code | {
"ground_truth": "{\"fn_name\": \"hIndex\", \"inputs\": [[[0, 1, 3, 5, 6]]], \"outputs\": [3]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-14198",
"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": "Comprised of a team of five incredibly brilliant wome... | code | {
"ground_truth": "{\"fn_name\": \"rad_ladies\", \"inputs\": [[\"k?%35a&&/y@@@5599 m93753&$$$c$n///79u??@@%l?975$t?%5y%&$3$1!\"], [\"9?9?9?m335%$@a791%&$r$$$l@53$&y&n%$5@ $5577w&7e931%s$c$o%%%f351f??%!%%\"], [\"%&$557f953//1/$@%r%935$$a@3111$@???%n???5 $%157b%///$i%55&31@l?%&$$a%@$s5757!$$%%%%53\"], [\"///$%&$553791r... | EASY | {
"id": "taco-train-13240",
"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": "Polycarp likes arithmetic progressions. A sequence $... | code | {
"ground_truth": "{\"inputs\": [\"4\\n24 21 14 10\", \"2\\n500 500\", \"3\\n14 5 1\", \"5\\n1 3 6 9 12\", \"1\\n1000000000\", \"2\\n1000000000 1\", \"3\\n34 70 52\", \"3\\n1 2 1\", \"6\\n1 1 3 5 6 5\", \"3\\n2 1 2\", \"10\\n9 5 3 4 7 1 2 8 10 6\", \"4\\n20 15 20 15\", \"4\\n10 21 14 24\", \"3\\n5 9 5\", \"10\\n10 9 ... | rating_1401-1600 | {
"id": "978D",
"rating": 1500,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "It's the year 4527 and the tanks game that we all kn... | code | {
"ground_truth": "{\"inputs\": [\"3\\n5 10 1\", \"4\\n1 1 10 11\", \"5\\n0 3 1 100 1\", \"40\\n10 100 10 1 10 10 100 10 10 100 10 100 100 10 1824868942 100 100 1 10 100 100 10 100 100 10 100 10 1 10 100 100 100 10 1 10 1 10 10 100 100\", \"6\\n1000000000000000000000000000000000000 6643573784 100000000000000000000000... | rating_1201-1400 | {
"id": "614B",
"rating": 1400,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given *n* sequences. Each sequence consists ... | code | {
"ground_truth": "{\"inputs\": [\"3 4\\n3 3 4 1\\n4 1 3 4 2\\n3 3 1 4\", \"5 5\\n2 3 1\\n4 5 1 3 2\\n4 2 1 3 5\\n1 3\\n2 5 3\", \"4 6\\n3 4 5 3\\n2 6 3\\n2 3 6\\n3 3 6 5\", \"10 5\\n2 2 4\\n2 4 5\\n2 1 2\\n4 3 1 5 2\\n4 1 3 2 5\\n5 3 4 5 2 1\\n3 3 5 4\\n1 1\\n2 4 1\\n1 5\", \"10 10\\n2 1 5\\n2 3 4\\n4 7 1 10 4\\n4 6... | rating_>1900 | {
"id": "722F",
"rating": 2800,
"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": "Misha decided to help Pasha and Akim be friends agai... | code | {
"ground_truth": "{\"inputs\": [\"1\\n2\\n\", \"2\\n1 2\\n\", \"2\\n3 5\\n\", \"10\\n10 4 7 5 8 6 1 9 2 3\\n\", \"70\\n54 67 58 92 60 62 56 20 42 52 66 70 88 40 30 43 74 4 29 14 59 19 15 2 51 77 39 16 69 93 27 55 84 91 12 3 36 34 86 100 46 23 6 31 25 9 38 24 50 94 17 96 61 80 87 79 48 98 37 1 28 35 90 97 26 41 5 64 ... | rating_>1900 | {
"id": "60_D. Savior",
"rating": 2500,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are fighting with Zmei Gorynich — a ferocious mo... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 10\\n6 3\\n8 2\\n1 4\\n4 10\\n4 1\\n3 2\\n2 6\\n1 100\\n2 15\\n10 11\\n14 100\\n\", \"7\\n5 1000000000\\n2 1\\n1 10\\n1 1\\n4 1000000000\\n3 3\\n1 1000000000\\n5 1\\n2 999999999\\n3 1\\n2 10000000\\n4 10000000\\n10000000 999999999\\n9999900 12\\n9999999 55\\n9999999 1\\n2 1000... | MEDIUM_HARD | {
"id": "taco-train-6555",
"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": "Nam is playing with a string on his computer. The st... | code | {
"ground_truth": "{\"inputs\": [\"8 3\\naeabcaez\", \"8 3\\nabcddcbb\", \"4 4\\nrkoa\", \"39 30\\nyehuqwaffoiyxhkmdipxroolhahbhzprioobxfy\", \"40 23\\nvwjzsgpdsopsrpsyccavfkyyahdgkmdxrquhcplw\", \"10 5\\nabcdeedcba\", \"5 5\\npjfjb\", \"57 9\\nibkypcbtpdlhhpmghwrmuwaqoqxxexxqoqawumrwhgmphhldixezvfpqh\", \"10 6\\nabc... | rating_1601-1900 | {
"id": "486C",
"rating": 1700,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "You are given two long numbers N1 and N2 in a string.... | code | {
"ground_truth": "{\"inputs\": [\"N1 = \\\"12\\\"\\nN2 = \\\"15\\\"\", \"N1 = \\\"123\\\"\\nN2 = \\\"457\\\"\"], \"outputs\": [\"1\", \"0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-22504",
"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": "Engineers have taken over the university’s English d... | code | {
"ground_truth": "{\"inputs\": [\"Engineering will save the world from inefficiency\\nInefficiency is a blight on the world and its\\nhumanity\\n\", \"he said that that that that that man used\\nwas wrong\\n\"], \"outputs\": [\"Engineering will save the world from inefficiency\\n. is a blight on . . and its\\nhumani... | EASY | {
"id": "taco-train-23471",
"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": "Iahub and Sorin are the best competitive programmers... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 0 0 -1\\n\", \"2\\n1 -1\\n\", \"5\\n10 11 12 13 -40\\n\", \"3\\n0 2 3\\n\", \"5\\n0 4 10 -5 -5\\n\", \"4\\n0 100 100 -200\\n\", \"4\\n10 10 -10 -10\\n\", \"2\\n1 10000\\n\", \"3\\n10 10 -10\\n\", \"100\\n-57 -64 83 76 80 27 60 76 -80 -56 52 72 -17 92 -96 87 41 -88 94 89 12 42 ... | rating_>1900 | {
"id": "429_D. Tricky Function",
"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": "Last year, some of the judges tried to travel to NWE... | code | {
"ground_truth": "{\"inputs\": [\"Hamburg Bremen\\n3\\nHamburg Bremen 15 68 10 5\\nHamburg Bremen 46 55 50 60\\nBremen Frankfurt 14 226 10 120\\n\", \"Amsterdam Rotterdam\\n1\\nAmsterdam Utrecht 10 22 5 10\\n\", \"BremenVegesack Utrecht\\n9\\nBremenVegesack BremenHbf 15 10 0 1\\nBremenVegesack BremenHbf 45 10 0 1\\n... | HARD | {
"id": "taco-train-17768",
"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": "Arseny likes to organize parties and invite people t... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\n1 2\\n1 3\\n1 4\\n3 4\\n\", \"5 6\\n1 2\\n1 3\\n2 3\\n2 5\\n3 4\\n4 5\\n\", \"22 66\\n15 20\\n15 4\\n2 22\\n8 22\\n2 4\\n8 2\\n5 7\\n18 8\\n10 21\\n22 20\\n18 7\\n2 20\\n5 1\\n20 19\\n21 4\\n8 4\\n20 5\\n7 8\\n7 4\\n21 15\\n21 22\\n7 20\\n5 22\\n21 7\\n5 18\\n18 21\\n19 7\\n15... | rating_>1900 | {
"id": "906_C. Party",
"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": "The Olympic Games in Bercouver are in full swing now... | code | {
"ground_truth": "{\"inputs\": [\"0 0 10\\n60 0 10\\n30 30 10\", \"0 0 10\\n100 100 10\\n200 0 20\", \"0 0 10\\n300 300 11\\n500 -500 12\", \"0 0 10\\n300 300 12\\n500 -500 14\", \"0 0 10\\n300 300 13\\n500 -500 16\", \"0 0 10\\n300 300 15\\n500 -500 20\", \"0 0 10\\n300 300 20\\n500 -500 40\", \"0 0 10\\n300 300 21... | rating_>1900 | {
"id": "2C",
"rating": 2600,
"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": "For a given positive integer *n* denote its *k*-roun... | code | {
"ground_truth": "{\"inputs\": [\"375 4\", \"10000 1\", \"38101 0\", \"123456789 8\", \"1 0\", \"2 0\", \"100 0\", \"1000000000 0\", \"160 2\", \"3 0\", \"10 0\", \"1 1\", \"2 1\", \"3 1\", \"4 1\", \"5 1\", \"6 1\", \"7 1\", \"8 1\", \"9 1\", \"10 1\", \"11 1\", \"12 1\", \"16 2\", \"2 2\", \"1 2\", \"5 2\", \"15 2... | rating_<=1200 | {
"id": "858A",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You found a mysterious function f. The function take... | code | {
"ground_truth": "{\"inputs\": [\"ab\\naa\\n\", \"ab\\nba\\n\", \"nzwzl\\nniwel\\n\", \"vkvkkv\\nvkvkkv\\n\", \"jsinejpfwhzloulxndzvzftgogfdagrsscxmatldssqsgaknnbkcvhptebjjpkjhrjegrotzwcdosezkedzxeoyibmyzunkguoqj\\nkfmvybobocdpipiripysioruqvloopvbggpjksgmwzyqwyxnesmvhsawnbbmntulspvsysfkjqwpvoelliopbaukyagedextzoej\\... | rating_<=1200 | {
"id": "801_B. Valued Keys",
"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": "You are given an array a_1, a_2, …, a_n consisting o... | code | {
"ground_truth": "{\"inputs\": [\"4\\n6 4\\n2 2 8 6 9 4\\n10 8\\n1 1 1 5 2 4 4 8 6 7\\n1 1\\n666\\n2 2\\n2 4\\n\", \"4\\n6 4\\n1 2 8 6 9 4\\n10 8\\n1 1 1 5 2 4 4 8 6 7\\n1 1\\n666\\n2 2\\n2 4\\n\", \"4\\n6 4\\n1 2 8 3 9 4\\n10 8\\n1 1 1 5 2 4 4 8 6 7\\n1 1\\n666\\n2 2\\n2 4\\n\", \"4\\n6 4\\n1 2 8 3 11 4\\n10 8\\n1 ... | rating_<=1200 | {
"id": "1497_B. M-arrays",
"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": "Read problems statements in Mandarin Chinese, Russia... | code | {
"ground_truth": "{\"inputs\": [\"1\\n4 2 2 \\n5 7 6 1\\n3 3 1 1\\n6 3\\n1 4\", \"1\\n4 2 2 \\n5 7 6 1\\n3 3 1 1\\n6 3\\n1 4\"], \"outputs\": [\"3\", \"3\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-8824",
"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": "Snackdown 2019 is coming! People have started to spr... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"7\", \"2 1 1 5 5 5 5\", \"5\", \"5 1 3 2 1\"]], \"outputs\": [[\"2\", \"1\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-3813",
"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": "Let Max be the maximum possible mean of a multiset of... | code | {
"ground_truth": "{\"inputs\": [\"N = 5\\r\\nArr = {3, 1, 2, 3, 4}\", \"N = 3\\r\\nArr = {1, 2, 1}\"], \"outputs\": [\"1 1\", \"1 3\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-3741",
"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": "One day Maria Ivanovna found a Sasha's piece of pape... | code | {
"ground_truth": "{\"inputs\": [\"9 4\\ndacbdacbd\\nacbdacbda\\n\", \"10 2\\naaaaaaabbb\\nbbbbaaabbb\\n\", \"10 2\\naaabbbaaab\\nbbbbabbbbb\\n\", \"4 2\\nabbb\\nbbab\\n\", \"168 8\\nghchfdgagcfcecccbbdhahdbebhhceffbfabfhgeehagbadbbdggbccagchgefechbhfcbhaaefgcgachgecaaadbaafgggfabebfafbhgbhcecdhedfghegahghchdgahaahbd... | rating_>1900 | {
"id": "491_C. Deciphering",
"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": "Why would we want to stop to only 50 shades of grey? ... | code | {
"ground_truth": "{\"fn_name\": \"shades_of_grey\", \"inputs\": [[-1], [0], [1], [254], [5000]], \"outputs\": [[[]], [[]], [[\"#010101\"]], [[\"#010101\", \"#020202\", \"#030303\", \"#040404\", \"#050505\", \"#060606\", \"#070707\", \"#080808\", \"#090909\", \"#0a0a0a\", \"#0b0b0b\", \"#0c0c0c\", \"#0d0d0d\", \"#0e0... | EASY | {
"id": "taco-train-7328",
"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 Description\n\nGiven a list of integers, fin... | code | {
"ground_truth": "{\"inputs\": [\"5 10 25 12 4 1 \\n3 16 28 100\\n\\nSAMPLE\", \"21 3 -3 3 -3 3 -3 19 3 -3 3 -3 3 -3 19 3 -3 3 -3 3 -3 19\", \"2 8 -100\\n5 -1000 5 1000 500 250\\n10 -1000 5 1000 500 250 -1000 5 1000 500 250\\n7 3 -3 3 -3 3 -3 19\\n5 44 7 11 -999 20\", \"5 10 25 12 4 1 \\n3 16 28 100\"], \"outputs\":... | none | {
"id": "even-from-end-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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Lucky numbers are subset of integers. Rather than goi... | code | {
"ground_truth": "{\"inputs\": [\"N = 5\", \"N = 19\"], \"outputs\": [\"0\", \"1\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-21517",
"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 S be the sum of divisors of an integer N excludi... | code | {
"ground_truth": "{\"inputs\": [\"1\\n2\\n3\\n4\\n6\\n12\\n16\\n28\\n33550336\\n99999998\\n99999999\\n100000000\\n0\", \"1\\n2\\n3\\n4\\n6\\n12\\n16\\n28\\n33550336\\n99999998\\n99999999\\n100001000\\n0\", \"1\\n2\\n5\\n4\\n6\\n12\\n16\\n28\\n820514\\n99999998\\n99999999\\n100001100\\n0\", \"1\\n2\\n5\\n4\\n6\\n12\\... | none | {
"id": "p01224 Perfect 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": "The Little Girl loves problems on games very much. H... | code | {
"ground_truth": "{\"inputs\": [\"aba\\n\", \"abca\\n\", \"zz\\n\", \"aabc\\n\", \"vqdtkbvlbdyndheoiiwqhnvcmmhnhsmwwrvesnpdfxvprqbwzbodoihrywagphlsrcbtnvppjsquuuzkjazaenienjiyctyajsqdfsdiedzugkymgzllvpxfetkwfabbiotjcknzdwsvmbbuqrxrulvgljagvxdmfsqtcczhifhoghqgffkbviphbabwiaqburerfkbqfjbptkwlahysrrfwjbqfnrgnsnsukqqcxx... | rating_1201-1400 | {
"id": "276_B. Little Girl and Game",
"rating": 1300,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Your friend Max has written a string S in your textb... | code | {
"ground_truth": "{\"inputs\": [\"5\\navwvb\\n\\nSAMPLE\", \"5\\navwvb\\n\\nSAMPLF\", \"5\\nvawvb\\n\\nSAMPLF\", \"5\\nwawvb\\n\\nSAMPLF\", \"5\\nbvvxa\\n\\nSFAPMM\", \"5\\nwwwba\\n\\nFKMPAS\", \"5\\nawwvb\\n\\nSAMPLF\", \"5\\nbvwwa\\n\\nSAMPLF\", \"5\\nbvwwa\\n\\nSFMPLA\", \"5\\nbvwxa\\n\\nSFMPLA\", \"5\\nbvwxa\\n\... | none | {
"id": "illegible-string",
"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": "Shakespeare is a widely known esoteric programming l... | code | {
"ground_truth": "{\"inputs\": [\"1111\\n\", \"1010011\\n\", \"1001110101111100101111011111111111101010111111010111011111111111011111111111111100011011111111111101\\n\", \"1100010000\\n\", \"11101011\\n\", \"1000111001\\n\", \"111\\n\", \"100000000000000000000000000000000000000000000000000000000000000000000000000000... | rating_>1900 | {
"id": "132_D. Constants in the language of Shakespeare",
"rating": 2100,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Pasha and Akim were making a forest map — the lawns ... | code | {
"ground_truth": "{\"inputs\": [\"2 1\\n1 2 1 3\\n\", \"1 0\\n\", \"2 1\\n1 2 3 7\\n\", \"3 2\\n3 2 1 2\\n3 1 1 10\\n\", \"10 32\\n1 4 1 161091\\n2 4 1 393407\\n6 1 1 53178\\n8 3 1 230462\\n8 6 2 50888\\n10 3 3 184515\\n8 2 1 127413\\n3 9 1 198290\\n1 5 3 11889\\n1 3 3 40149\\n4 7 2 485082\\n6 2 1 129841\\n2 10 1 30... | rating_>1900 | {
"id": "60_C. Mushroom Strife",
"rating": 2100,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Vasya lagged behind at the University and got to the... | code | {
"ground_truth": "{\"inputs\": [\"5 10\\n0 0 10 10\\n1\\n5 0 5 9\\n\", \"2 4\\n0 5 6 5\\n3\\n0 0 0 4\\n1 1 4 1\\n6 0 6 4\\n\", \"10 2\\n-4 7 1 -3\\n10\\n-4 3 -4 4\\n0 5 2 5\\n7 8 9 8\\n-5 0 -4 0\\n-1 9 1 9\\n9 2 9 4\\n5 -3 5 -2\\n7 0 8 0\\n-1 5 -1 7\\n-1 -4 -1 -2\\n\", \"2 6\\n-3 -7 6 1\\n10\\n8 1 8 5\\n-7 10 -4 10\... | rating_>1900 | {
"id": "182_A. Battlefield",
"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": "Check Tutorial tab to know how to to solve. \n\nTas... | code | {
"ground_truth": "{\"inputs\": [\"5\\n\"], \"outputs\": [\"0\\n1\\n4\\n9\\n16\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-3363",
"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 bikes and M cars on the road.\n\nEach bi... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2 1\\n3 0\\n\"], \"outputs\": [\"8\\n6\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-7521",
"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": "Gerald has n younger brothers and their number happe... | code | {
"ground_truth": "{\"inputs\": [\"2\\n\", \"68\\n\", \"12\\n\", \"88\\n\", \"44\\n\", \"86\\n\", \"28\\n\", \"4\\n\", \"64\\n\", \"48\\n\", \"54\\n\", \"96\\n\", \"66\\n\", \"18\\n\", \"100\\n\", \"10\\n\", \"58\\n\", \"80\\n\", \"6\\n\", \"8\\n\", \"62\\n\", \"76\\n\", \"74\\n\", \"26\\n\", \"78\\n\", \"36\\n\", \"... | rating_<=1200 | {
"id": "334_A. Candy Bags",
"rating": 1000,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Arkady needs your help again! This time he decided t... | code | {
"ground_truth": "{\"inputs\": [\"3 2\", \"5 3\", \"4 2\", \"4 3\", \"5 2\", \"5 4\", \"6 2\", \"6 3\", \"6 4\", \"6 5\", \"1000 245\", \"1000 999\", \"1024 23\", \"200000 1014\", \"100003 16\", \"7 2\", \"7 3\", \"7 4\", \"7 5\", \"7 6\", \"100 2\", \"100 5\", \"100 59\", \"100 98\", \"100 99\", \"1000 2\", \"1000 ... | rating_1601-1900 | {
"id": "827B",
"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": "The faculty of application management and consulting... | code | {
"ground_truth": "{\"inputs\": [\"1\\n4 2 3 10\\n7 7 7\\n4 6 10\\n7 10 9\\n9 9\", \"1\\n4 2 3 10\\n9 7 7\\n4 6 10\\n7 10 9\\n9 9\", \"1\\n4 3 3 10\\n9 7 7\\n4 6 10\\n7 10 9\\n9 9\", \"1\\n4 3 3 10\\n9 7 7\\n4 6 9\\n2 10 9\\n9 9\", \"1\\n4 2 3 10\\n7 7 7\\n2 6 10\\n7 10 9\\n9 9\", \"1\\n4 2 3 14\\n7 7 7\\n10 6 10\\n7... | none | {
"id": "entexam",
"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": "Alice and Bob created a new game while at the beach ... | code | {
"ground_truth": "{\"inputs\": [\"4 1\\n4 1 1 1 1\\n6 2 1 2 1 2 1\\n4 1 1 1 1\\n6 2 1 2 1 2 1\\n\", \"2 1\\n1 1\\n3 1 2 1\\n\", \"2 2\\n5 3 2 1 2 1\\n5 5 4 3 2 1\\n\"], \"outputs\": [\"Bob will win.\\n\", \"Alice can win.\\n\", \"Alice can win.\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-10393",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "General primality test are often computationally expe... | code | {
"ground_truth": "{\"fn_name\": \"lucas_lehmer\", \"inputs\": [[2], [3], [4], [5], [7], [10], [33], [101], [11213], [11215]], \"outputs\": [[true], [true], [false], [true], [true], [false], [false], [false], [true], [false]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-19207",
"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": "Bob is studying in a research institute. He is curre... | code | {
"ground_truth": "{\"inputs\": [\"3\\n5 4\\n7 14 38 9\\n28 43 44 34\\n23 88656\\n84 81539\\n65 203215\\n63 828883\\n13 792311\\n76 2\\n27 31\\n28 23\\n43 113924\\n90 841977\\n49 676447\\n24 243579\\n27 487731\\n24 226271\\n66 429998\\n59 530563\\n18 94755\\n17 70946\\n34 294276\\n20 19374\\n76 907996\\n16 291911\\n8... | HARD | {
"id": "taco-train-3366",
"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": "All living beings on this extra-ordinary planet have... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 3\\n2 4\\n4 33\\n\\n\\nSAMPLE\"], \"outputs\": [\"Yes\\nNo\\nYes\"]}",
"style": "rule"
} | none | {
"id": "lovely-couple-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": "The ICC Cricket World Cup 2015 fever is rising up da... | code | {
"ground_truth": "{\"inputs\": [\"1\\n99991\", \"3\\n3 14 22\", \"10\\n2 3 10 40 478 3877 28787 88888 99999 100000\", \"7587\\n8 13 16 20 22 24 28 32 36 38 39 43 48 49 51 53 55 56 61 62 65 70 75 80 85 89 90 92 97 102 105 109 113 118 122 124 126 128 133 135 138 141 142 146 149 151 156 157 162 163 165 167 170 171 172 ... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-3120",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
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 ternary string (it is a string which... | code | {
"ground_truth": "{\"inputs\": [\"100210\", \"11222121\", \"20\", \"1002\", \"10\", \"000021\", \"021\", \"2\", \"201\", \"2112120\", \"102\", \"202\", \"220201\", \"12\", \"100022202\", \"01\", \"1\"], \"outputs\": [\"001120\", \"11112222\", \"20\", \"0012\", \"01\", \"000012\", \"012\", \"2\", \"120\", \"1112220\"... | rating_1201-1400 | {
"id": "1009B",
"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": "You are given a quadratic equation with integer coef... | code | {
"ground_truth": "{\"inputs\": [\"1 -2 1\\n\", \"1 0 -1\\n\", \"2 -3 1\\n\"], \"outputs\": [\"1\\n\", \"-1 1\\n\", \"0.5 1\\n\"]}",
"style": "rule"
} | rating_1401-1600 | {
"id": "530_A. Quadratic equation",
"rating": 1500,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a string S as input. This represents a... | code | {
"ground_truth": "{\"inputs\": [\"2019/04/30\", \"2019/11/01\", \"2019/03/30\", \"2019/11/00\", \"2019/04/20\", \"2019/12/01\", \"2019/14/20\", \"2119/12/01\", \"2019/24/10\", \"1019/04/30\", \"2119/10/01\", \"2029/11/00\", \"2029/24/10\", \"2119/10/11\", \"2029/10/00\", \"2119/20/11\", \"2029/10/01\", \"2219/20/11\... | none | {
"id": "p03109 AtCoder Beginner Contest 119 - Still TBD",
"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": "Sengoku still remembers the mysterious \"colourful m... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 3\\n1 2 5 4 5\\n\", \"5\\n4 4 2 3 1\\n5 4 5 3 1\\n\", \"4\\n1 1 3 4\\n1 4 3 4\\n\", \"10\\n1 2 3 4 7 6 7 8 9 10\\n1 2 3 4 5 6 5 8 9 10\\n\", \"10\\n1 2 3 4 5 6 7 8 7 10\\n1 2 3 4 5 6 7 8 9 9\\n\", \"10\\n1 2 3 4 5 6 7 8 4 10\\n1 2 3 4 5 6 7 6 9 10\\n\", \"10\\n8 6 1 7 9 ... | EASY | {
"id": "taco-train-15477",
"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": "It's that time of the year, Felicity is around the c... | code | {
"ground_truth": "{\"inputs\": [\"1 3\\n3 1 2 3\\n\", \"2 3\\n2 1 2\\n2 2 3\\n\", \"2 2\\n3 2 2 1\\n2 1 2\\n\", \"3 7\\n2 1 2\\n2 3 4\\n3 5 6 7\\n\", \"2 4\\n2 1 2\\n3 2 3 4\\n\", \"65 3\\n1 1\\n1 1\\n1 1\\n1 1\\n2 1 2\\n1 1\\n2 1 2\\n2 1 2\\n2 1 2\\n1 1\\n1 1\\n2 1 2\\n1 1\\n2 1 2\\n2 1 2\\n2 1 2\\n2 1 2\\n2 1 2\\n... | rating_1601-1900 | {
"id": "757_C. Felicity is Coming!",
"rating": 1900,
"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 are given a chessboard of size 1<=×<=*n*. It is ... | code | {
"ground_truth": "{\"inputs\": [\"6\\n1 2 6\", \"10\\n1 2 3 4 5\", \"2\\n2\", \"100\\n2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100\", \"100\\n93 54 57 61 68 66 70 96 64 82 80 75 69 77 76 94 67 86 90 73 74 58 100 83 ... | rating_<=1200 | {
"id": "985A",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Life is not easy for the perfectly common variable n... | code | {
"ground_truth": "{\"inputs\": [\"3 1\\n2 0 1\\n1 3\\n\", \"4 3\\n1 0 0 2\\n1 2\\n2 3\\n3 4\\n\", \"3 1\\n1 0 2\\n1 3\\n\", \"4 4\\n1 0 2 0\\n1 2\\n2 3\\n3 4\\n4 1\\n\", \"2 1\\n2 1\\n2 1\\n\", \"8 8\\n1 0 0 2 1 0 0 2\\n1 2\\n2 3\\n3 2\\n2 4\\n6 8\\n7 6\\n6 7\\n5 6\\n\", \"6 6\\n1 0 0 0 0 2\\n1 2\\n2 3\\n3 4\\n4 5\\... | rating_1601-1900 | {
"id": "164_A. Variable, or There and Back Again",
"rating": 1700,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There are n Imperial stormtroopers on the field. The... | code | {
"ground_truth": "{\"inputs\": [\"4 0 0\\n1 1\\n2 2\\n2 0\\n-1 -1\\n\", \"2 1 2\\n1 1\\n1 0\\n\", \"1 1 1\\n0 0\\n\", \"2 0 0\\n10000 -10000\\n-10000 10000\\n\", \"2 0 0\\n10000 -10000\\n10000 10000\\n\", \"10 -4 -4\\n2 -4\\n2 0\\n-4 2\\n5 -4\\n-3 -5\\n1 4\\n-4 2\\n-3 5\\n0 -3\\n2 4\\n\", \"10 5 -3\\n1 1\\n2 -1\\n2 ... | MEDIUM | {
"id": "taco-train-23585",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a floor of size n x m and tiles of size 1 x m. ... | code | {
"ground_truth": "{\"inputs\": [\"n = 2, m = 3\", \"n = 4, m = 4\"], \"outputs\": [\"1\", \"2\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-7804",
"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": "In a stock market, there is a product with its infini... | code | {
"ground_truth": "{\"inputs\": [\"price[] = { 10, 7, 19 }\\r\\nk = 45\", \"price[] = { 7, 10, 4 }\\r\\nk = 100\"], \"outputs\": [\"4\", \"6\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-24041",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a string, remove spaces from it. \nExample 1:\n... | code | {
"ground_truth": "{\"inputs\": [\"S = \\\"geeks for geeks\\\"\", \"S = \\\" g f g\\\"\"], \"outputs\": [\"geeksforgeeks\", \"gfg\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-5555",
"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$ consecutive seat places in a railway c... | code | {
"ground_truth": "{\"inputs\": [\"5 1 1\\n*...*\", \"6 2 3\\n*...*.\", \"11 3 10\\n.*....**.*.\", \"3 2 3\\n***\", \"9 5 3\\n*...*...*\", \"9 2 4\\n*...*...*\", \"9 2 200000\\n*...*...*\", \"1 0 1\\n.\", \"14 3 7\\n.*.......*..*.\", \"6 1 3\\n*....*\", \"5 1 2\\n...*.\", \"2 2 0\\n..\", \"2 0 2\\n..\", \"5 3 3\\n...... | rating_1201-1400 | {
"id": "962B",
"rating": 1300,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Let's define rank of undirected graph as rank of its... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 2\\n2 3\\n3 4\\n\", \"4\\n1 2\\n1 3\\n1 4\\n\", \"3\\n1 2\\n2 3\\n\", \"50\\n14 46\\n14 33\\n14 11\\n33 47\\n14 13\\n46 48\\n47 21\\n11 43\\n48 10\\n10 8\\n10 42\\n47 9\\n43 1\\n1 36\\n1 20\\n20 2\\n13 32\\n8 3\\n21 7\\n42 23\\n42 29\\n2 50\\n47 12\\n11 45\\n8 37\\n46 31\\n13 ... | rating_>1900 | {
"id": "1067_E. Random Forest Rank",
"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": "A tree is a connected graph without cycles. A rooted... | code | {
"ground_truth": "{\"inputs\": [\"5\\n7\\n1 2\\n1 3\\n1 4\\n2 5\\n2 6\\n4 7\\n6\\n1 2\\n1 3\\n2 4\\n2 5\\n3 6\\n2\\n1 2\\n7\\n7 3\\n1 5\\n1 3\\n4 6\\n4 7\\n2 1\\n6\\n2 1\\n2 3\\n4 5\\n3 4\\n3 6\\n\", \"5\\n7\\n1 2\\n1 3\\n1 4\\n2 5\\n2 6\\n4 7\\n6\\n1 2\\n1 3\\n2 4\\n2 5\\n3 6\\n2\\n1 2\\n7\\n6 3\\n1 5\\n1 3\\n4 6\\... | HARD | {
"id": "taco-train-18010",
"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": "Advanced Computer Music (ACM) sold a rhythm machine ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n2\\n01000100\\n00020202\\n2\\n0102\\n00000810\\n1\\n0200020008000200\\n5\\n0001\\n000001\\n0000000001\\n00000000000001\\n0000000000000000000001\\n1\\n000000\", \"5\\n2\\n01000100\\n00020202\\n2\\n0102\\n00000810\\n1\\n0200020008000200\\n5\\n0001\\n000001\\n0000000011\\n000000000... | none | {
"id": "p01228 Rhythm Machine",
"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": "This challenge extends the previous [repeater()](http... | code | {
"ground_truth": "{\"fn_name\": \"repeater\", \"inputs\": [[\"yo\", 3], [\"WuB\", 6], [\"code, eat, code, sleep... \", 2]], \"outputs\": [[\"\\\"yo\\\" repeated 3 times is: \\\"yoyoyo\\\"\"], [\"\\\"WuB\\\" repeated 6 times is: \\\"WuBWuBWuBWuBWuBWuB\\\"\"], [\"\\\"code, eat, code, sleep... \\\" repeated 2 times is:... | EASY | {
"id": "taco-train-20102",
"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, return the maximum sum fo... | code | {
"ground_truth": "{\"fn_name\": \"maximumSum\", \"inputs\": [[[1, -2, 0, 3]]], \"outputs\": [4]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-3156",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a string `s` of uppercase letters, your task is... | code | {
"ground_truth": "{\"fn_name\": \"solve\", \"inputs\": [[\"XYZ\"], [\"ABC\"], [\"ABCD\"], [\"ZAZ\"], [\"XYZA\"]], \"outputs\": [[5], [16174], [402230], [25], [34480]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-21389",
"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": "Ayoub had an array a of integers of size n and this ... | code | {
"ground_truth": "{\"inputs\": [\"9 9 99\\n\", \"2 1 3\\n\", \"3 2 2\\n\", \"1561 27096 939571\\n\", \"1050 1 982008957\\n\", \"200000 1 1000000000\\n\", \"3 1000000000 1000000000\\n\", \"142972 686320621 866589707\\n\", \"100 1 2\\n\", \"64 759746120 905671814\\n\", \"120881 536336525 585696606\\n\", \"557 68671496... | rating_1401-1600 | {
"id": "1105_C. Ayoub and Lost Array",
"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": "Insecure Inc. has decided to shift directions after ... | code | {
"ground_truth": "{\"inputs\": [\"ABC HAPPYBIRTHDAYCACEY\\n\", \"ABC TRAGICBIRTHDAYCACEY\\n\", \"ABC HAPPYBIRTHDAY\\n\", \"SECRET SOMECHORESARETOUGH\\n\", \"SECRET SOMECHEERSARETOUGH\\n\"], \"outputs\": [\"PASS\\n\", \"FAIL\\n\", \"FAIL\\n\", \"PASS\\n\", \"FAIL\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-11532",
"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": "Babu and Sabu are enemies but they fight with each o... | code | {
"ground_truth": "{\"inputs\": [\"1\\n2 1 2 2 15\\n\\nSAMPLE\", \"243\\n0 0 0 0 1\\n0 0 0 0 2\\n0 0 0 0 3\\n0 0 0 1 1\\n0 0 0 1 2\\n0 0 0 1 3\\n0 0 0 2 1\\n0 0 0 2 2\\n0 0 0 2 3\\n0 0 1 0 1\\n0 0 1 0 2\\n0 0 1 0 3\\n0 0 1 1 1\\n0 0 1 1 2\\n0 0 1 1 3\\n0 0 1 2 1\\n0 0 1 2 2\\n0 0 1 2 3\\n0 0 2 0 1\\n0 0 2 0 2\\n0 0 2... | none | {
"id": "chacha-chaudhary-and-sabu",
"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 [Russian] and [Bengali].... | code | {
"ground_truth": "{\"inputs\": [\"3\\n6 2\\n100101\\n5 1\\n10111\\n6 1\\n000000\\n\"], \"outputs\": [\"6\\n2\\n-1\\n\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-8375",
"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": "The only difference with E2 is the question of the p... | code | {
"ground_truth": "{\"inputs\": [\"4\\n\\n8 2\\n5 3\\n4 7\\n2 5\\n1 6\\n3 6\\n7 2\\n1 7\\n6 8\\n\\n3 1\\n2\\n1 2\\n2 3\\n\\n3 1\\n2\\n1 2\\n1 3\\n\\n3 2\\n2 3\\n3 1\\n1 2\\n\", \"1\\n\\n10 2\\n6 9\\n1 2\\n2 3\\n3 4\\n3 5\\n3 6\\n1 7\\n7 8\\n8 9\\n7 10\\n\", \"1\\n\\n14 7\\n2 3 4 5 6 7 8\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\... | MEDIUM_HARD | {
"id": "taco-train-4941",
"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": "Arkady has a playlist that initially consists of $n$... | code | {
"ground_truth": "{\"inputs\": [\"5\\n5\\n5 9 2 10 15\\n6\\n1 2 4 2 4 2\\n2\\n1 2\\n1\\n1\\n1\\n2\\n\", \"5\\n5\\n5 9 2 10 15\\n6\\n1 2 4 2 4 2\\n2\\n1 2\\n1\\n1\\n1\\n2\\n\", \"2\\n3\\n5 5 5\\n10\\n2 3 5 7 11 13 17 19 23 29\\n\", \"3\\n2\\n3 3\\n4\\n2 2 2 2\\n1\\n1\\n\", \"4\\n6\\n1 2 3 4 5 6\\n5\\n10 20 30 40 50\\... | HARD | {
"id": "taco-test-313",
"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": "A penguin Rocher has $n$ sticks. He has exactly one ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1\\n2\\n3\\n4\\n\", \"4\\n1\\n2\\n3\\n8\\n\", \"4\\n1\\n2\\n1\\n4\\n\", \"4\\n1\\n2\\n3\\n12\\n\", \"4\\n2\\n2\\n3\\n15\\n\", \"4\\n2\\n2\\n3\\n5\\n\", \"4\\n1\\n2\\n4\\n4\\n\", \"4\\n1\\n2\\n3\\n14\\n\", \"4\\n1\\n3\\n1\\n4\\n\", \"4\\n2\\n2\\n6\\n15\\n\", \"4\\n1\\n2\\n5\\n4\\... | EASY | {
"id": "taco-train-13559",
"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 Chefland, precipitation is measured using a rain ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1\\n20\\n3\\n7\\n\"], \"outputs\": [\"LIGHT\\nHEAVY\\nMODERATE\\nHEAVY\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-441",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There are N dots in a two-dimensional plane. The coo... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 1\\n5 1\\n5 5\", \"9\\n1 1\\n2 1\\n3 1\\n4 1\\n5 1\\n1 2\\n1 3\\n1 4\\n1 5\", \"2\\n10 10\\n20 20\", \"3\\n1 1\\n5 1\\n5 4\", \"9\\n1 1\\n2 1\\n3 1\\n4 1\\n7 1\\n1 2\\n1 3\\n1 4\\n1 5\", \"2\\n10 10\\n20 1\", \"9\\n1 1\\n3 1\\n3 1\\n4 1\\n7 1\\n1 2\\n2 3\\n1 4\\n1 5\", \"9\\n1... | none | {
"id": "p02998 AtCoder Beginner Contest 131 - Must Be Rectangular!",
"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": "<image>\n\nWhile trading on his favorite exchange tr... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4\\n1 1 1 1\\n4\\n4 3 1 2\\n\", \"2\\n4\\n1 1 1 1\\n4\\n4 3 1 2\\n\", \"2\\n4\\n1 0 1 1\\n4\\n4 3 1 2\\n\", \"2\\n4\\n1 1 1 1\\n4\\n4 3 1 4\\n\", \"2\\n4\\n1 1 1 1\\n4\\n4 5 1 2\\n\", \"2\\n4\\n1 1 0 1\\n4\\n4 3 1 4\\n\", \"2\\n4\\n1 1 1 1\\n4\\n4 5 1 3\\n\", \"2\\n4\\n1 2 1 1\\... | rating_<=1200 | {
"id": "1523_B. Lord of the Values",
"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": "Given a string representing a code snippet, you need ... | code | {
"ground_truth": "{\"fn_name\": \"isValid\", \"inputs\": [[\"\\\"<DIV>This is the first line <![CDATA[<div>]]></DIV>\\\"\"]], \"outputs\": [false]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-18514",
"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": "Professor GukiZ is concerned about making his way to... | code | {
"ground_truth": "{\"inputs\": [\"2 1\\n1 1\", \"3 2\\n1 0 2\", \"4 100\\n3 4 5 4\", \"5 8\\n121351 0 13513 0 165454\", \"6 6\\n0 10 0 0 10 0\", \"1 1\\n1\", \"1 100000\\n1\", \"1 100000\\n1000000000\", \"1 1\\n1000000000\", \"20 20\\n0 0 0 0 0 0 154 0 0 0 0 0 0 0 0 0 0 0 0 0\", \"10 10\\n0 0 0 100 0 0 0 0 0 0\", \"... | rating_>1900 | {
"id": "551C",
"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": "Given a month with arbitrary number of days, N, and a... | code | {
"ground_truth": "{\"inputs\": [\"N = 31 , K = 1\", \"N = 28, K = 5\"], \"outputs\": [\"5 5 5 4 4 4 4\", \"5 5 5 4 4 4 4\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-23634",
"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": "Write a function that takes in a string of one or mor... | code | {
"ground_truth": "{\"fn_name\": \"spin_words\", \"inputs\": [[\"Welcome\"], [\"to\"], [\"CodeWars\"], [\"Hey fellow warriors\"], [\"This sentence is a sentence\"]], \"outputs\": [[\"emocleW\"], [\"to\"], [\"sraWedoC\"], [\"Hey wollef sroirraw\"], [\"This ecnetnes is a ecnetnes\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-17697",
"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": "While Farmer John rebuilds his farm in an unfamiliar... | code | {
"ground_truth": "{\"inputs\": [\"4 5\\n2 1\\n1 3\\n2 3\\n4 2\\n4 3\\n\", \"3 2\\n1 2\\n3 2\\n\", \"2 1\\n1 2\\n\", \"2 1\\n2 1\\n\", \"5 10\\n1 2\\n1 3\\n1 4\\n1 5\\n2 3\\n2 4\\n2 5\\n3 4\\n3 5\\n4 5\\n\", \"3 3\\n2 1\\n3 1\\n3 2\\n\", \"4 6\\n1 4\\n4 2\\n2 3\\n1 2\\n1 3\\n4 3\\n\", \"3 3\\n3 1\\n3 2\\n1 2\\n\", \"... | MEDIUM_HARD | {
"id": "taco-train-23597",
"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": "Tony Stark is playing a game with his suits (they ha... | code | {
"ground_truth": "{\"inputs\": [\"6 4\\n2 5\\n6 5\\n3 6\\n4 6\\n4 1\\n27 6 1 3\\n9 5 1 6\\n27 4 3 4\\n11 29 2 6\\n\", \"6 4\\n3 1\\n4 5\\n6 4\\n6 1\\n2 6\\n16 4 4 5\\n13 20 6 2\\n3 16 4 5\\n28 5 3 5\\n\", \"10 20\\n6 9\\n5 2\\n9 8\\n5 8\\n1 6\\n3 6\\n8 10\\n7 1\\n7 4\\n8089 77 1 10\\n3604 7771 10 4\\n3585 3 9 2\\n36... | rating_>1900 | {
"id": "704_E. Iron Man",
"rating": 3300,
"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": "As behooves any intelligent schoolboy, Kevin Sun is ... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n\", \"5 4\\n\", \"7 2\\n\", \"7 6\\n\", \"10007 25\\n\", \"40037 4\\n\", \"5 0\\n\", \"5 3\\n\", \"7 1\\n\", \"13 5\\n\", \"13 4\\n\", \"5 2\\n\", \"11 1\\n\", \"11 10\\n\", \"6907 2590\\n\", \"3229 153\\n\", \"727 282\\n\", \"7621 6195\\n\", \"4649 4648\\n\", \"5527 1711\\n\"... | MEDIUM_HARD | {
"id": "taco-train-14615",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.