messages listlengths 1 1 | ground_truth stringlengths 156 726k | dataset stringclasses 2
values |
|---|---|---|
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThis problem consists of three subproblems: for solving subproblem C1 you will receive 4 points, for solving ... | [{"input": "40 3\n1 62395\n5 40319\n4 165445\n10 137479\n10 47829\n8 9741\n5 148106\n10 25494\n18 162856\n2 106581\n0 194523\n9 148086\n1 100862\n6 147600\n6 107486\n6 166873\n7 16721\n4 22192\n0 8827\n1 197146\n10 8949\n0 150443\n9 148348\n3 143935\n1 139371\n7 128821\n10 107760\n4 141821\n1 35852\n9 107522\n10 54717\... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n# Task\n\nElections are in progress!\n\nGiven an array of numbers representing votes given to each of the can... | [{"input": "[1, 3, 3, 1, 1]\n0", "output": "[0]", "fn_name": "elections_winners"}, {"input": "[5, 1, 3, 4, 1]\n0", "output": "[1]", "fn_name": "elections_winners"}, {"input": "[3, 1, 1, 3, 1]\n2", "output": "[2]", "fn_name": "elections_winners"}, {"input": "[2, 3, 5, 2]\n3", "output": "[2]", "fn_name": "elections_winne... | code_functional |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n**Getting Familiar:**\nLEET: (sometimes written as \"1337\" or \"l33t\"), also known as eleet or leetspeak, i... | [{"input": "\"Do you also think these quotes are conflicting each other?\"", "output": "[\"\\u03b4\\u03b8 \\u03b3\\u03b8\\u03bc \\u03b1ls\\u03b8 \\u03c4h\\u03b9\\u03b7\\u03ba \\u03c4h\\u03b5s\\u03b5 q\\u03bc\\u03b8\\u03c4\\u03b5s \\u03b1\\u03c0\\u03b5 c\\u03b8\\u03b7fl\\u03b9c\\u03c4\\u03b9\\u03b7g \\u03b5\\u03b1ch \\u... | code_functional |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nOur Chef is catering for a big corporate office party and is busy preparing different mouth watering dishes. ... | [{"input": "4\n38\n13\n31\n2", "output": "17\n12\n30\n1\n"}, {"input": "4\n38\n13\n16\n2", "output": "17\n12\n0\n1\n"}, {"input": "4\n131\n14\n1\n4", "output": "130\n5\n0\n0\n"}, {"input": "4\n19\n13\n16\n2", "output": "18\n12\n0\n1\n"}, {"input": "4\n131\n14\n1\n8", "output": "130\n5\n0\n2\n"}, {"input": "4\n34\n13\n1... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nYou're looking through different hex codes, and having trouble telling the difference between #000001 and ... | [{"input": "\"212 103 212\"", "output": "[\"magenta\"]", "fn_name": "hex_color"}, {"input": "\"101 101 092\"", "output": "[\"yellow\"]", "fn_name": "hex_color"}, {"input": "\"000 000 000\"", "output": "[\"black\"]", "fn_name": "hex_color"}, {"input": "\"021 021 021\"", "output": "[\"white\"]", "fn_name": "hex_color"}, ... | code_functional |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nPetya loves lucky numbers. We all know that lucky numbers are the positive integers whose decimal representat... | [{"input": "10\n4 7 480392999\n3 4 32525297\n9 7 417904789\n6 2 836294777\n5 3 616099185\n1 7 1310915575\n8 10 838073755\n5 10 547050646\n2 1 12607780\n", "output": "0\n"}, {"input": "10\n4 7 480392999\n3 4 32525297\n9 7 417904789\n6 2 836294777\n5 3 616099185\n1 7 1310915575\n8 10 838073755\n5 10 508595582\n2 1 126077... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nLenny is playing a game on a 3 × 3 grid of lights. In the beginning of the game all lights are switched on. P... | [{"input": "62 74 119\n116 74 189\n2 47 95\n", "output": "101\n110\n010\n"}, {"input": "68 79 52\n51 39 100\n29 14 26\n", "output": "110\n000\n111\n"}, {"input": "68 79 52\n51 39 100\n29 14 26\n", "output": "110\n000\n111\n"}, {"input": "68 79 52\n67 39 100\n29 14 26\n", "output": "110\n000\n111\n"}, {"input": "13 148 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nproblem\n\nThe island where JOI lives has been invaded by zombies. JOI decided to escape to the shelter, whic... | [{"input": "13 21 1 1\n1001 6000\n11\n4 2\n3 7\n2 4\n8 8\n8 4\n2 10\n3 4\n6 7\n7 10\n10 11\n5 9\n11 10\n3 6\n4 5\n1 6\n13 12\n6 7\n8 11\n6 13\n7 8\n2 12", "output": "1001\n"}, {"input": "13 21 1 1\n1010 10247\n7\n1 2\n3 7\n2 4\n5 8\n8 9\n2 5\n3 4\n4 7\n9 10\n10 11\n9 9\n7 12\n3 6\n5 5\n1 3\n11 12\n6 7\n8 11\n6 13\n7 8\... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nVasya decided to go to the grocery store. He found in his wallet $a$ coins of $1$ burle and $b$ coins of $2$ ... | [{"input": "7\n1 1\n4 0\n0 2\n0 0\n2314 2374\n0 0\n1 1\n", "output": "4\n5\n1\n1\n7063\n1\n4\n"}, {"input": "5\n1 1\n4 0\n0 2\n0 0\n2314 2374\n", "output": "4\n5\n1\n1\n7063\n"}, {"input": "1\n1123112 1221133\n", "output": "3565379\n"}, {"input": "1\n1223111 133212\n", "output": "1489536\n"}, {"input": "1\n112311 11332... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nYou have a digit sequence S of length 4. You are wondering which of the following formats S is in:\n - YYMM f... | [{"input": "0112\n", "output": "AMBIGUOUS\n"}, {"input": "0101\n", "output": "AMBIGUOUS\n"}, {"input": "1211", "output": "AMBIGUOUS\n"}, {"input": "1204", "output": "AMBIGUOUS\n"}, {"input": "0112", "output": "AMBIGUOUS"}, {"input": "1905\n", "output": "YYMM\n"}, {"input": "1312\n", "output": "YYMM\n"}, {"input": "0348... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThis program tests the life of an\nevaporator containing a gas. \n\nWe know the content of the evaporator (co... | [{"input": "10\n10\n10", "output": "[22]", "fn_name": "evaporator"}, {"input": "47.5\n8\n8", "output": "[31]", "fn_name": "evaporator"}, {"input": "100\n1\n1", "output": "[459]", "fn_name": "evaporator"}, {"input": "100\n1\n5", "output": "[299]", "fn_name": "evaporator"}, {"input": "10\n10\n5", "output": "[29]", "fn_na... | code_functional |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nRead problems statements in Mandarin Chinese and Russian. \n\nRupsa recently started to intern under Chef. H... | [{"input": "2\n-1\n3 111\n-1\n9", "output": "113\n2\n"}, {"input": "2\n-1\n3 101\n-1\n9", "output": "103\n2\n"}, {"input": "2\n-2\n2 25\n-2\n16", "output": "27\n2\n"}, {"input": "2\n-1\n3 12\n-1\n9", "output": "14\n2\n"}, {"input": "2\n-1\n2 24\n0\n1", "output": "26\n-1\n"}, {"input": "2\n-1\n2 32\n0\n1", "output": "34... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nIn Republic of AtCoder, Snuke Chameleons (Family: Chamaeleonidae, Genus: Bartaberia) are very popular pets. R... | [{"input": "29001 234567", "output": "246712986\n"}, {"input": "29001 137176", "output": "790285595\n"}, {"input": "18209 234567", "output": "750285457\n"}, {"input": "24437 137176", "output": "159086230\n"}, {"input": "123456 234567", "output": "857617983"}, {"input": "25732 234567", "output": "80550073\n"}, {"input":... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nAccording to a new ISO standard, a flag of every country should have a chequered field n × m, each square sho... | [{"input": "20 19\n1111111111111111111\n8247715032316286876\n0000001000000000000\n4784876473600342372\n1111111111111111111\n2222222222222222222\n4444444444444444444\n5555555555555555555\n0000000000000000010\n4444444444444444444\n0000000000000000000\n5555555555555555555\n11500026576261848309\n9999999999999999999\n222222... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nAfter finishing eating her bun, Alyona came up with two integers n and m. She decided to write down two colum... | [{"input": "1000000 1000000\n", "output": "200000000000\n"}, {"input": "1000000 1000000\n", "output": "200000000000\n"}, {"input": "1000010 1000000\n", "output": "200002000000\n"}, {"input": "1000000 1892547\n", "output": "378509400000\n"}, {"input": "1000000 999999\n", "output": "199999800000\n"}, {"input": "1000000 9... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nWhen you play the game of thrones, you win, or you die. There is no middle ground.\n\nCersei Lannister, A Gam... | [{"input": "20 53\n1 2\n1 4\n1 5\n1 6\n1 7\n1 8\n1 20\n2 3\n2 6\n2 16\n2 17\n3 6\n3 18\n3 20\n4 6\n4 7\n4 8\n4 18\n4 14\n4 18\n5 11\n5 16\n5 17\n2 18\n5 19\n6 8\n6 13\n7 8\n7 10\n7 15\n7 17\n14 18\n8 15\n8 16\n4 10\n17 15\n10 11\n10 17\n10 20\n11 15\n11 17\n12 14\n12 15\n12 16\n16 19\n14 16\n14 19\n16 17\n16 19\n16 20\... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nYou are given strings $S$ and $T$, consisting of lowercase English letters. It is guaranteed that $T$ is a pe... | [{"input": "7\nabacaba\nabc\ncccba\nacb\ndbsic\nbac\nabracadabra\nabc\ndddddddddddd\ncba\nbbc\nabc\nac\nabc\n", "output": "aaaacbb\nabccc\nbcdis\naaaaacbbdrr\ndddddddddddd\nbbc\nac\n"}, {"input": "7\nabacaba\nabc\ncccba\nacb\ndbsic\nbac\nabracadabra\nabc\ndddddddddddd\ncba\nbbc\nabd\nac\nabc\n", "output": "aaaacbb\nabc... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nCreate a program that calculates and outputs the surface distance by inputting the north latitude and east lo... | [{"input": "35.997652258458864 139.77 51.15 361.449066466584\n1.6512558665331527 105.35573273382599 41.78 272.61282853754\n51.62303215206055 360.59086045680647 -34.03891385785915 302.61951676416413\n-1 -1 -1 -1", "output": "9516\n15035\n11082\n"}, {"input": "36.419905643051294 140.79075983005347 51.9267392966014 359.97... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nVova promised himself that he would never play computer games... But recently Firestorm — a well-known game d... | [{"input": "10 5\n1 6 2 11 3 8 4 9 5 10\n1 2\n3 5\n5 6\n7 10\n9 10\n", "output": "27\n"}, {"input": "10 3\n1 6 2 27 1 8 1 9 5 1\n1 2\n3 1\n10 6\n7 8\n17 10\n", "output": "45\n"}, {"input": "10 3\n1 6 2 17 1 8 1 9 5 1\n1 2\n3 1\n10 6\n7 8\n17 10\n", "output": "35\n"}, {"input": "10 3\n1 6 2 17 1 8 1 9 5 1\n1 2\n3 1\n10 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nGiven are an integer X and an integer sequence of length N: p_1, \\ldots, p_N.\nAmong the integers not contai... | [{"input": "51 100\n70 94 98 62 63 19 59 50 36 48 97 82 53 5 3 96 51 13 64 79 65 23 75 72 74 87 100 43 81 42 71 34 57 88 60 77 31 12 10 52 29 92 66 1 61 90 21 55 22 30 14 35 41 2 78 37 15 73 69 58 25 67 28 16 99 38 85 33 20 95 32 24 80 40 4 45 11 83 7 17 91 89 54 18 26 56 9 27 68 47 76 93 39 84 8 49 86 6 44 46\n", "out... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nIvan recently bought a detective book. The book is so interesting that each page of this book introduces some... | [{"input": "17\n15 4 3 6 5 11 8 8 9 10 15 12 13 14 17 16 17\n", "output": "1\n"}, {"input": "17\n16 4 3 6 7 6 10 8 9 10 11 12 13 14 15 16 17\n", "output": "2\n"}, {"input": "17\n9 4 3 6 7 6 10 8 9 10 11 12 13 14 15 16 17\n", "output": "8\n"}, {"input": "17\n15 4 3 6 7 6 8 8 9 10 15 12 13 14 17 16 17\n", "output": "1\n"... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nIn this kata, the number 0 is infected. You are given a list. Every turn, any item in the list that is adjace... | [{"input": "[0, 1, 1, 1, 0]", "output": "[2]", "fn_name": "infected_zeroes"}, {"input": "[1, 1, 0, 1, 1]", "output": "[2]", "fn_name": "infected_zeroes"}, {"input": "[0, 1, 1, 0]", "output": "[1]", "fn_name": "infected_zeroes"}, {"input": "[0, 1, 1, 1]", "output": "[3]", "fn_name": "infected_zeroes"}, {"input": "[1, 1,... | code_functional |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nLet x be a string of length at least 1.\nWe will call x a good string, if for any string y and any integer k ... | [{"input": "bcbc\n", "output": "2\n3\n"}, {"input": "aab\n", "output": "1\n1\n"}, {"input": "ddd\n", "output": "3\n1\n"}, {"input": "adad", "output": "2\n3\n"}, {"input": "bbcc", "output": "1\n1\n"}, {"input": "ccbb", "output": "1\n1\n"}, {"input": "ccbc", "output": "1\n1\n"}, {"input": "cbbc", "output": "1\n1\n"}, {"i... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nproblem\n\nThere is one bar-shaped candy with a length of N mm (where N is an even number). Two JOI officials... | [{"input": "6\n-1\n0\n14\n-1\n6", "output": "-2\n"}, {"input": "6\n-1\n0\n14\n-2\n6", "output": "-3\n"}, {"input": "6\n0\n0\n14\n-4\n6", "output": "-4\n"}, {"input": "6\n0\n0\n5\n-1\n1", "output": "-1\n"}, {"input": "6\n1\n14\n11\n3\n2", "output": "4\n"}, {"input": "6\n2\n12\n11\n7\n3", "output": "9\n"}, {"input": "6\n... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nKolya got an integer array $a_1, a_2, \\dots, a_n$. The array can contain both positive and negative integers... | [{"input": "100\n-6 2 8 -9 -9 3 -3 -2 7 3 2 -2 -9 -7 -10 -9 10 4 5 -9 8 -5 7 -2 6 -2 4 4 -2 -5 6 4 8 -8 9 7 -4 2 -3 7 4 -10 -7 -4 8 2 10 -8 -3 -8 -5 -5 -10 -6 -8 -5 7 -1 7 -5 9 10 3 5 10 -7 -3 -7 1 -5 -8 5 1 -1 4 10 2 6 -4 9 3 10 -5 -10 -10 -2 1 9 10 1 10 2 8 -3 -3 -1 7 -5 8 -4\n", "output": "11\n"}, {"input": "100\n-6... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nAll cinema halls in Berland are rectangles with K rows of K seats each, and K is an odd number. Rows and seat... | [{"input": "100 67\n66 12 2 49 62 63 59 14 13 26 15 25 22 16 33 17 15 14 13 33 9 10 53 28 17 27 18 39 35 64 1 59 33 24 66 64 4 2 4 5 22 9 52 36 44 57 62 3 52 21 62 55 25 2 65 18 20 40 8 30 27 28 47 19 67 67 42 6 53 17 36 38 57 37 45 13 58 12 31 24 15 67 9 18 56 20 34 8 20 31 13 19 42 12 16 15 54 35 20 33\n", "output": ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nIt's hard times now. Today Petya needs to score 100 points on Informatics exam. The tasks seem easy to Petya,... | [{"input": "k\n*\n89\nb\ncbbbc\ncabac\nbccbb\nccc\ncabaa\nabbaa\nccbaa\nccccb\ncabbb\nbbcbc\nbac\naaac\nabb\nbcbb\ncb\nbacc\nbbaba\nb\nacc\nbaac\naaba\nbcbba\nbaa\nbc\naaccb\nb\nab\nc\nbbbb\nabbcb\nacbb\ncba\nc\nbac\nc\nac\ncc\nb\nbbc\nbaab\nc\nbbc\nab\nb\nc\naa\naab\nab\naccbc\nacbaa\na\nccc\ncba\nb\nb\nbcccb\nca\naca... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nAlice and Bob like games. And now they are ready to start a new game. They have placed n chocolate bars in a ... | [{"input": "13\n4 18 16 10 10 13 24 2 4 9 2 10 13\n", "output": "6 7\n"}, {"input": "13\n4 18 16 10 10 13 17 2 4 9 2 9 13\n", "output": "5 8\n"}, {"input": "13\n4 18 16 10 10 13 24 2 4 9 2 9 13\n", "output": "6 7\n"}, {"input": "13\n4 18 16 10 10 14 24 2 4 9 2 9 13\n", "output": "6 7\n"}, {"input": "13\n4 18 16 10 7 14... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nFrom \"ftying rats\" to urban saniwation workers - can synthetic biology tronsform how we think of pigeons? \... | [{"input": "10\n9 16 19 23 7 14 21 15 14 6\n", "output": "23\n"}, {"input": "10\n5 20 18 1 12 17 22 20 26 4\n", "output": "21\n"}, {"input": "10\n9 16 19 23 7 14 21 15 14 6\n", "output": "23\n"}, {"input": "10\n5 20 18 1 12 17 22 20 26 4\n", "output": "21\n"}, {"input": "10\n9 16 19 23 7 14 21 15 1 6\n", "output": "20\... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nGiven is an integer sequence of length N: A_1, A_2, \\cdots, A_N.\nAn integer sequence X, which is also of le... | [{"input": "6\n680824625 680824626 680824626 680824624 680824626 680824624\n", "output": "655804632\n"}, {"input": "6\n612348318 612348320 612348320 612348319 612348318 612348317\n", "output": "110656261\n"}, {"input": "6\n101617840 101617840 101617841 101617840 101617843 101617842\n", "output": "943012313\n"}, {"input... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nOleg the bank client checks share prices every day. There are n share prices he is interested in. Today he ob... | [{"input": "100 18\n489 42 300 366 473 105 220 448 70 488 201 396 168 281 67 235 324 291 313 387 407 223 39 144 224 233 72 318 229 377 62 171 448 119 354 282 147 447 260 384 172 199 67 326 311 431 337 142 281 202 404 468 38 120 90 437 33 420 249 372 367 253 255 411 309 333 103 176 162 120 203 41 352 478 216 498 224 31 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThe only difference between easy and hard versions is the number of elements in the array.\n\nYou are given a... | [{"input": "50 25\n199970 199997 199998 199988 199999 199981 200000 199990 199974 199985 199932 200000 199966 199999 199999 199951 199983 199975 199974 199996 199974 199992 199979 199995 199955 199989 199960 199975 199983 199990 199950 199952 199999 199999 199962 199939 199979 199977 199962 199996 199910 199997 199976 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThe courier charges for a courier company are set according to size and weight as shown in the table below.\n... | [{"input": "2\n86 25 5 5\n135 60 10 30\n3\n10 8 25 24\n5 16 13 9\n30 30 30 14\n0", "output": "1200\n3800\n"}, {"input": "2\n51 0 5 15\n107 60 3 30\n3\n10 15 25 47\n2 12 12 3\n30 30 11 11\n0", "output": "1200\n2000\n"}, {"input": "2\n50 34 5 5\n80 60 10 30\n3\n10 15 25 24\n5 8 12 5\n30 30 30 18\n0", "output": "1000\n380... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nCarving the cake 2 (Cake 2)\n\nJOI-kun and IOI-chan are twin brothers and sisters. JOI has been enthusiastic ... | [{"input": "5\n-1\n3\n2\n132\n24", "output": "134\n"}, {"input": "5\n2\n27\n-1\n12\n87", "output": "113\n"}, {"input": "5\n2\n27\n-1\n12\n88", "output": "114\n"}, {"input": "5\n-1\n6\n2\n101\n27", "output": "106\n"}, {"input": "5\n3\n16\n-1\n18\n35", "output": "50\n"}, {"input": "5\n3\n16\n-2\n15\n35", "output": "49\n"... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nIn this Kata, we are going to determine if the count of each of the characters in a string can be equal if we... | [{"input": "\"aabbccddd\"", "output": "[true]", "fn_name": "solve"}, {"input": "\"aaabcde\"", "output": "[false]", "fn_name": "solve"}, {"input": "\"aabbcc\"", "output": "[false]", "fn_name": "solve"}, {"input": "\"aaaabb\"", "output": "[false]", "fn_name": "solve"}, {"input": "\"abbccc\"", "output": "[false]", "fn_nam... | code_functional |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nVlad likes to eat in cafes very much. During his life, he has visited cafes n times. Unfortunately, Vlad star... | [{"input": "8\n200000 1 200000 1 200000 1 200000 2\n", "output": "1\n"}, {"input": "8\n200000 1 200000 1 200000 1 200000 2\n", "output": "1\n"}, {"input": "5\n100 1000 1000 1000 1000\n", "output": "100\n"}, {"input": "5\n100 1000 1000 1000 1000\n", "output": "100\n"}, {"input": "5\n100 1000 1000 1100 1000\n", "output":... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nAquaMoon has $n$ friends. They stand in a row from left to right, and the $i$-th friend from the left wears a... | [{"input": "10\n10\n6 2 1 1 1 10 10 2 10 5\n8\n1 3 1 1 4 5 4 4\n9\n14 6 9 9 2 8 7 2 2\n10\n9 4 3 3 5 4 3 10 4 5\n9\n7 5 1 7 5 5 5 5 6\n8\n8 8 4 4 7 6 2 8\n10\n6 8 1 6 8 8 5 6 8 4\n10\n5 5 5 8 3 4 3 3 10 10\n8\n1 1 3 6 6 7 1 2\n8\n4 1 3 5 3 1 3 3\n", "output": "NO\nYES\nYES\nYES\nYES\nYES\nYES\nYES\nYES\nNO\n"}, {"input... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThe Two-dimensional kingdom is going through hard times... This morning the Three-Dimensional kingdom declare... | [{"input": "33 23 17 2\n1 1 2 2 2 3 3 3 3 3 3 4 4 4 4 4 5 5 5 6 6 7 7 7 8 8 8 8 8 9 9 10 10\n1 1 3 3 4 4 4 5 5 6 6 6 7 8 8 8 8 8 8 9 9 10 10\n", "output": "23\n1 1\n2 2\n3 3\n4 4\n5 5\n6 6\n7 7\n8 8\n9 9\n12 10\n13 11\n14 12\n17 13\n20 14\n21 15\n22 16\n23 17\n24 18\n25 19\n26 20\n27 21\n28 22\n29 23\n"}, {"input": "20... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nIn some other world, today is the day before Christmas Eve.\nMr. Takaha is buying N items at a department sto... | [{"input": "10\n10000\n10000\n10000\n10000\n10000\n10000\n10000\n10000\n10000\n10000\n", "output": "95000\n"}, {"input": "10\n8830\n106\n9248\n6388\n3562\n7160\n8452\n3486\n5802\n9228\n", "output": "57638\n"}, {"input": "9\n6126\n5482\n9198\n9274\n2166\n2424\n1954\n2018\n1226\n", "output": "35231\n"}, {"input": "8\n346... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThere are $n$ students standing in a row. Two coaches are forming two teams — the first coach chooses the fir... | [{"input": "100 10\n19 55 91 50 31 23 60 84 38 1 22 51 27 76 28 98 11 44 61 63 15 93 52 3 66 16 53 36 18 62 35 85 78 37 73 64 87 74 46 26 82 69 49 33 83 89 56 67 71 25 39 94 96 17 21 6 47 68 34 42 57 81 13 10 54 2 48 80 20 77 4 5 59 30 90 95 45 75 8 88 24 41 40 14 97 32 7 9 65 70 100 99 72 58 92 29 79 12 86 43\n", "out... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nFind the largest integer that can be formed with exactly N matchsticks, under the following conditions:\n - E... | [{"input": "10000 9\n1 2 3 4 5 6 7 8 9\n", "output": "11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n# Scenario \n\nWith **_Cereal crops_** like wheat or rice, before we can eat the grain kernel, we need to rem... | [{"input": "[-16, 44, -7, -31, 9, -43, -44, -18, 50, 39, -46, -24, 3, -34, -27]", "output": "[[-16, -27, -7, -31, -34, -43, -44, -18, -24, -46, 39, 50, 3, 9, 44]]", "fn_name": "wheat_from_chaff"}, {"input": "[-17, 7, -12, 10, 4, -8, -19, -24, 40, 31, -29, 21, -45, 1]", "output": "[[-17, -45, -12, -29, -24, -8, -19, 4, ... | code_functional |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSnuke has a string x of length N. Initially, every character in x is `0`.\n\nSnuke can do the following two o... | [{"input": "1000 101 10", "output": "631009281\n"}, {"input": "1100 101 10", "output": "915151017\n"}, {"input": "1100 111 10", "output": "890861662\n"}, {"input": "1100 100 10", "output": "725819821\n"}, {"input": "1100 101 19", "output": "724720670\n"}, {"input": "1000 100 17", "output": "719982564\n"}, {"input": "11... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nProblem\n\nTaro decided to watch one movie every day at a nearby movie theater during the summer vacation. (T... | [{"input": "5\n1 18\n10 20\n20 21\n22 31\n10 15", "output": "1800\n"}, {"input": "5\n1 18\n10 20\n20 21\n22 31\n11 15", "output": "1800\n"}, {"input": "5\n1 18\n10 20\n20 21\n22 31\n10 25", "output": "1800\n"}, {"input": "5\n1 18\n16 20\n20 21\n22 31\n11 15", "output": "1800\n"}, {"input": "5\n1 10\n10 20\n20 21\n22 31... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nMahmoud has an array a consisting of n integers. He asked Ehab to find another array b of the same length suc... | [{"input": "10\n5 3 2 2 3 3 3 4 2 5\n", "output": "5 3 2 7 11 13 17 19 23 29 "}, {"input": "10\n5 3 2 2 3 3 3 4 2 5\n", "output": "5 3 2 7 11 13 17 19 23 29 "}, {"input": "10\n5 3 4 2 3 3 3 4 2 5\n", "output": "5 3 4 7 11 13 17 19 23 29\n"}, {"input": "7\n23 11 6 14 7 17 20\n", "output": "23 11 6 17 5 7 13\n"}, {"input... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nYou are given two positive integers ```a``` and ```b```.\n\nYou can perform the following operations on ```a`... | [{"input": "4\n16", "output": "[2]", "fn_name": "operation"}, {"input": "1\n1", "output": "[0]", "fn_name": "operation"}, {"input": "2\n4", "output": "[1]", "fn_name": "operation"}, {"input": "3\n8", "output": "[4]", "fn_name": "operation"}, {"input": "4\n1", "output": "[2]", "fn_name": "operation"}, {"input": "1\n4", ... | code_functional |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nDreamoon likes sequences very much. So he created a problem about the sequence that you can't find in OEIS: \... | [{"input": "10\n1 1100000000\n2 1587398050\n4 99999998\n4 9999997\n5 999996\n10 99995\n9 9994\n8 1104\n12 92\n19 1\n", "output": "1\n3\n11\n11\n17\n119\n89\n59\n87\n0\n"}, {"input": "10\n1 1100000000\n2 1587398050\n3 99999998\n4 9999997\n5 999996\n18 99995\n9 9994\n8 1104\n12 92\n36 1\n", "output": "1\n3\n5\n11\n17\n10... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nWelcome to PC Koshien, players. Physical condition management is important to participate in the event. It is... | [{"input": "30 20\n55 0\n32 18\n2 23\n43 21\n34 10\n20 -13", "output": "10\n55\n14\n-21\n22\n24\n33\n"}, {"input": "30 19\n39 20\n19 18\n4 20\n22 21\n23 10\n10 -10", "output": "11\n19\n1\n-16\n1\n13\n20\n"}, {"input": "30 19\n39 20\n19 18\n4 20\n22 21\n23 10\n15 -10", "output": "11\n19\n1\n-16\n1\n13\n25\n"}, {"input":... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nLittle Chris is a huge fan of linear algebra. This time he has been given a homework about the unusual square... | [{"input": "5\n1 0 1 0 1\n0 1 0 1 0\n1 0 1 0 1\n0 1 0 1 0\n1 0 1 0 1\n7\n3\n2 4\n1 3\n3\n2 5\n1 2\n3\n", "output": "111\n"}, {"input": "5\n1 0 1 1 1\n0 1 0 1 0\n1 0 1 1 1\n0 1 0 1 0\n1 0 1 0 0\n7\n3\n2 4\n1 3\n3\n2 5\n1 1\n3\n", "output": "000\n"}, {"input": "5\n1 0 1 0 1\n0 1 0 1 0\n1 0 1 0 1\n0 1 0 1 0\n1 0 1 0 1\n7\... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nA calculator scholar has discovered a strange life form called an electronic fly that lives in electronic spa... | [{"input": "2 5 6 7 6 13\n517 1389 746 11867 4303 3125\n0 0 0 0 0 0", "output": "12\n3426307500\n"}, {"input": "2 5 6 7 6 25\n517 1389 746 11867 4303 3125\n0 0 0 0 0 0", "output": "20\n3426307500\n"}, {"input": "2 5 3 7 6 13\n913 1354 746 12979 4303 1361\n0 0 0 0 0 0", "output": "12\n1491431760\n"}, {"input": "2 5 5 7 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nKing Mercer is the king of ACM kingdom. There are one capital and some cities in his kingdom. Amazingly, ther... | [{"input": "3 3\n1 2 1 4\n2 3 2 1\n3 1 3 2\n5 5\n1 3 2 2\n2 3 1 1\n1 4 1 1\n4 5 1 1\n5 3 2 1\n5 10\n1 2 32 10\n1 3 43 43\n1 4 12 77\n1 5 84 23\n2 3 58 42\n2 4 86 163\n2 3 57 133\n3 4 11 32\n3 5 75 41\n4 5 17 43\n5 10\n1 2 1 53\n1 5 0 65\n2 4 1 24\n1 5 1 76\n2 3 2 19\n2 4 1 46\n2 5 1 25\n3 4 1 13\n3 5 1 65\n4 5 1 34\n0 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nConsider a sequence generation that follows the following steps. We will store removed values in variable `re... | [{"input": "10000", "output": "[4721110]", "fn_name": "solve"}, {"input": "1000", "output": "[63589]", "fn_name": "solve"}, {"input": "100", "output": "[993]", "fn_name": "solve"}, {"input": "25", "output": "[107]", "fn_name": "solve"}, {"input": "50", "output": "[304]", "fn_name": "solve"}, {"input": "7", "output": "[... | code_functional |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nLet's call a non-empty sequence of positive integers a_1, a_2... a_{k} coprime if the greatest common divisor... | [{"input": "100\n881 479 355 759 257 497 690 598 275 446 439 787 257 326 584 713 322 5 253 781 434 307 164 154 241 381 38 942 680 906 240 11 431 478 628 959 346 74 493 964 455 746 950 41 585 549 892 687 264 41 487 676 63 453 861 980 477 901 80 907 285 506 619 748 773 743 56 925 651 685 845 313 419 504 770 324 2 559 405... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThe only difference between easy and hard versions is the number of elements in the array.\n\nYou are given a... | [{"input": "50 25\n199970 199997 199998 199988 199999 199981 200000 199990 199974 199985 199932 200000 199966 199999 199999 199951 199983 199975 199974 199996 199974 199992 199979 199995 199955 199989 199960 199975 199983 199990 199950 199952 199999 199999 199962 199939 199979 199977 199962 199996 199910 199997 199976 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSquirrel Liss is interested in sequences. She also has preferences of integers. She thinks n integers a_1, a_... | [{"input": "49\n10 34 58 72 126 166 176 180 198 200 208 228 238 248 302 332 340 344 350 354 380 406 418 428 438 442 482 532 536 544 546 554 596 626 642 682 684 704 714 792 804 820 862 880 906 946 954 966 970\n", "output": "49\n"}, {"input": "49\n10 34 58 72 126 166 176 180 198 200 208 228 238 248 302 332 340 344 350 35... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nYou are given an array $a_1, a_2, \\dots , a_n$, which is sorted in non-decreasing order ($a_i \\le a_{i + 1}... | [{"input": "3\n7\n4 6 11 11 15 18 20\n4\n10 10 10 11\n3\n1 1 1000000000\n", "output": "1 2 7\n-1\n1 2 3\n"}, {"input": "3\n7\n4 6 11 11 15 18 20\n4\n10 10 10 11\n3\n1 1 1000000000\n", "output": "1 2 7\n-1\n1 2 3\n"}, {"input": "3\n7\n4 6 11 11 15 18 34\n4\n10 10 10 11\n3\n1 1 1000000000\n", "output": "1 2 7\n-1\n1 2 3\... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThis is the harder version of the problem. In this version, $1 \\le n, m \\le 2\\cdot10^5$. You can hack this... | [{"input": "5\n3 1 4 1 2\n15\n5 5\n5 4\n5 3\n5 2\n5 1\n4 4\n4 3\n4 2\n4 1\n3 3\n3 2\n3 1\n2 2\n2 1\n1 1\n", "output": "2\n1\n4\n1\n3\n2\n4\n1\n3\n2\n4\n3\n4\n3\n4\n"}, {"input": "5\n3 1 4 1 2\n15\n5 5\n5 4\n5 3\n5 2\n5 1\n4 4\n4 3\n4 2\n4 1\n3 3\n3 2\n3 1\n2 2\n2 1\n1 1\n", "output": "2\n1\n4\n1\n3\n2\n4\n1\n3\n2\n4\n3... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThe Bitlandians are quite weird people. They do everything differently. They have a different alphabet so the... | [{"input": "1000000000000000000000000000000000000011111111000000000000\n0111111111100000000000111111111000000000000000111111110001\n", "output": "YES\n"}, {"input": "1000000000000000000000000000000000000011111111000000000000\n0111111111100000000000111111111000000000000000111111110001\n", "output": "YES\n"}, {"input": "... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThere is a sequence of length N: A_1, A_2, ..., A_N. Initially, this sequence is a permutation of 1, 2, ..., ... | [{"input": "7635 1737\n1 4336 5028 2246 3376 4632 3484 5018 6851 5712 6421 1045 4582 6443 5762 2211 5622 2385 1213 6493 6742 4499 7581 6655 2974 2212 2861 4283 5757 1316 4008 2602 5971 4098 5433 1398 4622 7224 93 4338 1998 1188 853 2588 2210 7123 3903 1360 1308 3213 3437 2333 6285 2126 3228 2323 7477 34 3187 3914 1128 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThe customer telephone support center of the computer sales company called JAG is now in- credibly confused. ... | [{"input": "3 300\n100 46 150\n100 50 150\n101 50 148\n3 300\n110 50 150\n100 50 150\n200 50 150\n9 18\n5 1 1\n3 1 1\n3 1 1\n4 100 1\n5 100 1\n5 100 1\n10 5 5\n10 5 5\n2 7 1000\n10 18\n1 2 6\n2 3 1\n3 4 5\n4 5 6\n5 6 7\n6 7 8\n7 8 9\n12 9 10\n9 10 11\n18 11 12\n0 0", "output": "2\n3\n5\n10\n"}, {"input": "3 300\n100 46... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nGiven a sorted array of numbers, return the summary of its ranges.\n\n## Examples\n```python\nsummary_ranges(... | [{"input": "[-2, 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 12]", "output": "[[\"-2\", \"0->7\", \"9->10\", \"12\"]]", "fn_name": "summary_ranges"}, {"input": "[0, 1, 2, 3, 4, 5, 6, 7, 9, 10]", "output": "[[\"0->7\", \"9->10\"]]", "fn_name": "summary_ranges"}, {"input": "[0, 1, 2, 5, 6, 9]", "output": "[[\"0->2\", \"5->6\", \"9\"]... | code_functional |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nYou are given two integers $n$ and $m$. You have to construct the array $a$ of length $n$ consisting of non-n... | [{"input": "5\n1 100\n2 -1\n5 5\n2 1000000000\n1000100000 1000000000\n", "output": "0\n-1\n10\n1000000000\n2000000000\n"}, {"input": "5\n1 100\n2 2\n5 5\n2 1000000000\n1000000000 1000000000\n", "output": "0\n2\n10\n1000000000\n2000000000\n"}, {"input": "5\n1 100\n2 0\n5 5\n2 1000000000\n1000000000 1000000000\n", "outpu... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThe preferred way to generate user login in Polygon is to concatenate a prefix of the user's first name and a... | [{"input": "asdfghjkli ware\n", "output": "asdfghjkliw\n"}, {"input": "asdfghjkli ware\n", "output": "asdfghjkliw\n"}, {"input": "asdfghkkli ware\n", "output": "asdfghkkliw\n"}, {"input": "ilkkhgfdsa ware\n", "output": "ilkkhgfdsaw\n"}, {"input": "aaaaaaaaaz york\n", "output": "aaaaaaaaay\n"}, {"input": "aaaaaaaaaz yor... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n# Feynman's squares\nRichard Phillips Feynman was a well-known American physicist and a recipient of the Nobe... | [{"input": "15", "output": "[1240]", "fn_name": "count_squares"}, {"input": "8", "output": "[204]", "fn_name": "count_squares"}, {"input": "3", "output": "[14]", "fn_name": "count_squares"}, {"input": "5", "output": "[55]", "fn_name": "count_squares"}, {"input": "1", "output": "[1]", "fn_name": "count_squares"}, {"inpu... | code_functional |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThere are N cells arranged in a row, numbered 1, 2, \\ldots, N from left to right.\nTak lives in these cells ... | [{"input": "200000 10\n195313 197047\n198503 199144\n199910 200000\n193793 195312\n186922 193792\n199860 199909\n199145 199570\n197048 198502\n1 186921\n199571 199859\n", "output": "946746535\n"}, {"input": "199993 10\n23896 23905\n92651 92660\n184931 184940\n101332 101341\n126813 126822\n52635 52644\n9715 9724\n58620 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nFinal kata of the series (highly recommended to compute [layers](https://www.codewars.com/kata/progressive-sp... | [{"input": "306", "output": "[17]", "fn_name": "distance"}, {"input": "307", "output": "[18]", "fn_name": "distance"}, {"input": "308", "output": "[17]", "fn_name": "distance"}, {"input": "25", "output": "[4]", "fn_name": "distance"}, {"input": "30", "output": "[5]", "fn_name": "distance"}, {"input": "96", "output": "[... | code_functional |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nYou are given two integer sequences S and T of length N and M, respectively, both consisting of integers betw... | [{"input": "1989 1986\n84234 80908 59749 63761 63761 49034 63761 64697 84234 84234 64697 64697 49034 80908 80908 63761 66200 59749 59749 80908 84234 63761 80908 80908 66200 92283 84234 63761 80908 63761 92283 59749 49034 78052 53613 49034 92283 80908 53613 59749 49034 49034 59749 80908 66200 80908 63761 64697 92283 490... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThere are N+1 towns. The i-th town is being attacked by A_i monsters.\nWe have N heroes. The i-th hero can de... | [{"input": "1611\n999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 99... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nAn integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a ... | [{"input": "33813819154164361588118768953262516554574111032083043031384286303065210509562262038973079975476396016546146039303789823110933080134565927492314604458575884820133400398416950126075966048913496870281342656762187821939147033106717650124502612019109078419691362651717290499399798948652832533487239630898917216407... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThere are N non-negative integers written on a blackboard. The i-th integer is A_i.\nTakahashi can perform th... | [{"input": "6 111011100000010010101101010101101010001000000101011101000101001110110110011101000000000000011110011100110111011101100111111011000100110111111010000100100110110100110000001000011110010001001110011100001101101010010000010111001001111111101000101111011111011111011101001001011000101011110101010111101101010100... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nGenos recently installed the game Zuma on his phone. In Zuma there exists a line of n gemstones, the i-th of ... | [{"input": "50\n22 19 14 22 20 11 16 28 23 15 3 23 6 16 30 15 15 10 24 28 19 19 22 30 28 1 27 12 12 14 17 30 17 26 21 26 27 1 11 23 9 30 18 19 17 29 11 20 29 24\n", "output": "25\n"}, {"input": "50\n22 19 14 22 20 11 16 28 23 15 3 23 6 16 30 15 15 10 24 28 19 19 22 30 28 1 27 12 12 14 17 30 17 26 21 26 27 1 11 23 9 30 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThe spring is coming and it means that a lot of fruits appear on the counters. One sunny day little boy Valer... | [{"input": "24 24\n25 69 103 18 40 8 78 14 14 10 27 61 75 140 10 69 80 71 102 8 91 14 15 10\nswtcofrcpeys{ydwkrg\nszyd\ndyzsyep\nrcpeyszydwkrgfj\nfgrkwdyzsyfp\ndwyz\nsmzginydyrtua\nj\nk\ntzwsw\ngfj\nmsplnqossy\ninydyrtuatzw\ninxdy\nlpsmzginydyrtuatzwswtcofrcpeyszy\nyssoqnlpsm\npeyszyd\nysosqnlpsm\ninydy\ndyztyep\ninywy... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThink of New York as a rectangular grid consisting of N vertical avenues numerated from 1 to N and M horizont... | [{"input": "100 100\n10\n53 20\n97 6\n12 74\n48 92\n97 13\n47 96\n123 32\n69 21\n95 75\n1 54\n10\n36 97\n41 1\n1 87\n39 23\n27 44\n73 97\n1 1\n6 26\n48 3\n5 69\n", "output": "108\n4\n"}, {"input": "100 100\n10\n53 20\n97 6\n12 74\n48 92\n97 13\n47 96\n123 32\n69 21\n95 75\n1 54\n10\n36 97\n18 1\n1 87\n39 23\n27 44\n73 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nIn this Kata, you will be given a number and your task will be to return the nearest prime number. \n\n```Has... | [{"input": "10000000000", "output": "[10000000019]", "fn_name": "solve"}, {"input": "3500000", "output": "[3499999]", "fn_name": "solve"}, {"input": "350000", "output": "[350003]", "fn_name": "solve"}, {"input": "35000", "output": "[34981]", "fn_name": "solve"}, {"input": "1110", "output": "[1109]", "fn_name": "solve"}... | code_functional |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nOn some square in the lowest row of a chessboard a stands a pawn. It has only two variants of moving: upwards... | [{"input": "100 3 4\n644\n861\n478\n250\n560\n998\n141\n162\n386\n778\n123\n811\n602\n533\n391\n515\n898\n215\n965\n556\n446\n883\n256\n195\n573\n889\n515\n240\n179\n339\n258\n593\n930\n730\n735\n949\n522\n067\n549\n366\n452\n405\n473\n188\n488\n994\n000\n046\n930\n217\n897\n580\n509\n032\n343\n722\n176\n925\n728\n717\... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThere are N rabbits, numbered 1 through N.\n\nThe i-th (1≤i≤N) rabbit likes rabbit a_i. Note that no rabbit c... | [{"input": "5\n5 5 5 -1 2", "output": "1\n"}, {"input": "5\n5 5 5 -2 2", "output": "1\n"}, {"input": "5\n3 5 5 -1 1", "output": "0\n"}, {"input": "5\n5 5 5 -1 1", "output": "1\n"}, {"input": "5\n3 3 5 -1 1", "output": "0\n"}, {"input": "5\n0 5 1 -1 2", "output": "1\n"}, {"input": "5\n5 3 5 -1 0", "output": "0\n"}, {"in... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nA sequence of non-negative integers a1, a2, ..., an of length n is called a wool sequence if and only if ther... | [{"input": "100000 100000\n", "output": "738698541\n"}, {"input": "50000 100000\n", "output": "821709120\n"}, {"input": "21857 94145\n", "output": "689996210\n"}, {"input": "50664 46559\n", "output": "425318276\n"}, {"input": "25063 54317\n", "output": "735545216\n"}, {"input": "62600 39199\n", "output": "366778414\n"}... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nVova's family is building the Great Vova Wall (named by Vova himself). Vova's parents, grandparents, grand-gr... | [{"input": "20\n10 5 2 3 5 7 7 9 4 9 9 4 9 7 7 5 3 2 5 10\n", "output": "NO\n"}, {"input": "20\n10 5 2 3 5 7 7 9 4 9 9 4 9 7 7 5 3 2 5 10\n", "output": "NO\n"}, {"input": "20\n10 1 2 3 5 7 7 9 4 9 9 4 9 7 7 5 3 2 5 10\n", "output": "NO\n"}, {"input": "20\n16 1 2 3 5 7 7 9 4 9 9 4 9 7 7 5 3 2 5 10\n", "output": "NO\n"},... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThere are $n$ programmers that you want to split into several non-empty teams. The skill of the $i$-th progra... | [{"input": "3\n5 10\n13 11 2 14 1\n4 8\n2 4 2 1\n4 8\n1 3 3 7\n", "output": "3\n0\n1\n"}, {"input": "3\n5 10\n14 11 4 5 1\n4 11\n2 7 2 1\n4 8\n1 4 3 2\n", "output": "2\n0\n0\n"}, {"input": "3\n5 17\n7 11 2 9 5\n4 8\n2 1 2 3\n4 11\n1 3 3 11\n", "output": "1\n0\n1\n"}, {"input": "3\n5 10\n11 11 4 9 2\n4 15\n2 4 2 1\n4 9\... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThere are n railway stations in Berland. They are connected to each other by n-1 railway sections. The railwa... | [{"input": "10\n9 4\n5 7\n2 1\n3 4\n2 10\n6 3\n2 5\n1 3\n4 8\n8\n6 8 3\n10 5 3\n2 10 3\n3 5 2\n8 4 3\n1 9 3\n9 5 2\n3 10 2\n", "output": "3 1 2 3 3 3 3 3 3 \n"}, {"input": "10\n3 6\n3 2\n4 1\n1 10\n3 8\n5 2\n6 7\n2 1\n6 9\n7\n9 10 3\n5 7 1\n9 10 3\n7 4 1\n3 10 4\n3 6 4\n5 1 4\n", "output": "4 4 1 4 1 4 1 4 3 \n"}, {"in... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nFind the edit distance between given two words s1 and s2.\n\nThe disntace is the minimum number of single-cha... | [{"input": "icpc\nipcc", "output": "2\n"}, {"input": "icpb\ncbio", "output": "4\n"}, {"input": "cpci\nipcc", "output": "2\n"}, {"input": "cpci\nccpi", "output": "2\n"}, {"input": "icpc\nccpi", "output": "2\n"}, {"input": "ibpc\nccpi", "output": "3\n"}, {"input": "icpb\nccpi", "output": "2\n"}, {"input": "icpb\nccip", "... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nProblem\n\nThere are $ 2 $ teams, Team UKU and Team Ushi. Initially, Team UKU has $ N $ people and Team Uku h... | [{"input": "1000000000000000000 1000000000010000000", "output": "4\n"}, {"input": "1000000001000000000 1000000000010000000", "output": "2\n"}, {"input": "1000001001000000000 1000000000010000000", "output": "2\n"}, {"input": "1000001001001000000 1000000000010000000", "output": "2\n"}, {"input": "1000001001001000010 1000... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nAtCoDeer the deer has N cards with positive integers written on them. The number on the i-th card (1≤i≤N) is ... | [{"input": "6 20\n10 4 3 10 25 2\n", "output": "3\n"}, {"input": "6 20\n10 4 5 10 25 2", "output": "0\n"}, {"input": "6 20\n10 4 5 10 25 3", "output": "0\n"}, {"input": "6 20\n10 4 3 10 25 2", "output": "3"}, {"input": "1 586\n-1 2 1 -2 5", "output": "1\n"}, {"input": "1 988\n-1 2 1 -2 5", "output": "1\n"}, {"input": "... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nYou have two strings A = A_1 A_2 ... A_n and B = B_1 B_2 ... B_n of the same length consisting of 0 and 1.\n\... | [{"input": "0100100\n1111101", "output": "4\n"}, {"input": "0100100\n1100000", "output": "5\n"}, {"input": "0100100\n0000001", "output": "6\n"}, {"input": "0100100\n0111111", "output": "4\n"}, {"input": "0100100\n0101111", "output": "3\n"}, {"input": "0100100\n0101110", "output": "2\n"}, {"input": "0100100\n0101100", "... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSimply find the closest value to zero from the list. Notice that there are negatives in the list.\n\nList is ... | [{"input": "[28, -36, 49, 39, -33, 22, -5, 23, -24, 47, -47, -30, -20, -18, 40, -21, -45, 10, -48, -26, -12, -21, 48, 16, 26, 21, -9, 33, 8, -49]", "output": "[-5]", "fn_name": "closest"}, {"input": "[20, 26, 13, -47, -35, 39, 24, 46, -16, 5, 46, -30, -33, -38, -47, 23, 10, -39, -36, 41, 5, -24, 28, -30, 40, -24, -28, ... | code_functional |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nProblem\n\nIn 1333, the greatest scientist in human history, Dr. Ushishi, developed an artificial intelligenc... | [{"input": "200", "output": "ai133333\n"}, {"input": "300", "output": "ai1333333"}, {"input": "100", "output": "ai13333\n"}, {"input": "-12", "output": "ai1333\n"}, {"input": "-22", "output": "ai1333\n"}, {"input": "-21", "output": "ai1333\n"}, {"input": "-32", "output": "ai1333\n"}, {"input": "-10", "output": "ai1333\... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nYou are given two integer sequences of length N: a_1,a_2,..,a_N and b_1,b_2,..,b_N. Determine if we can repea... | [{"input": "5\n-1 -1 -1 18 1\n1 1 1 0 0", "output": "No\n"}, {"input": "5\n-1 -1 -1 18 1\n1 2 1 0 0", "output": "No\n"}, {"input": "5\n-1 -1 -1 12 1\n1 2 1 0 0", "output": "No\n"}, {"input": "5\n7 2 8 2 14\n1 7 2 -1 10", "output": "No\n"}, {"input": "5\n7 2 8 2 11\n1 7 2 -1 10", "output": "No\n"}, {"input": "5\n7 2 8 2... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nIt is the hard version of the problem. The only difference is that in this version $1 \\le n \\le 300$.\n\nIn... | [{"input": "7\n1 2\n1 1\n3 2\n1 1 2 2 4 6\n3 3\n3 4 4 1 1 1 1 1 5\n2 2\n2 1 2 1\n4 2\n50 50 50 50 3 50 56 50\n4 2\n6 6 6 10 2 2 9 6\n2 9\n1 3 2 3 3 6 1 1 3 2 3 1 1 6 3 1 1 3\n", "output": "0\n1\n2\n0\n0\n0\n12\n"}, {"input": "7\n1 2\n1 1\n3 2\n1 1 2 4 4 6\n3 3\n3 4 4 1 1 1 1 1 5\n2 2\n2 1 2 1\n4 2\n50 50 50 50 3 50 56 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nYour task is to define a function that understands basic mathematical expressions and solves them.\nFor examp... | [{"input": "\"123 * 987 * 135 * 246\"", "output": "[4031727210]", "fn_name": "calculate"}, {"input": "\"1*2*3/1/2/3+1+2+3-1-2-3\"", "output": "[1]", "fn_name": "calculate"}, {"input": "\"1 + 2 + 3 + 4 + 5 + 6\"", "output": "[21]", "fn_name": "calculate"}, {"input": "\"5*2/3*9/10*123/8\"", "output": "[46.125]", "fn_name... | code_functional |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nOn a planet far, far away, M languages are spoken. They are conveniently numbered 1 through M.\n\nFor CODE FE... | [{"input": "4 6\n3 2 3 3\n2 4 2\n2 4 6\n1 6", "output": "YES\n"}, {"input": "4 6\n3 2 3 4\n2 4 2\n2 4 6\n1 6", "output": "YES\n"}, {"input": "4 6\n3 2 3 4\n2 4 4\n2 4 6\n1 6", "output": "YES\n"}, {"input": "4 6\n3 0 3 4\n2 4 4\n2 4 6\n1 6", "output": "YES\n"}, {"input": "4 6\n3 0 2 3\n2 4 2\n2 4 6\n1 6", "output": "YES... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nIn programming languages like C/C++, a goto statement provides an unconditional jump from the \"goto\" to a l... | [{"input": "430", "output": " 3 6 9 12 13 15 18 21 23 24 27 30 31 32 33 34 35 36 37 38 39 42 43 45 48 51 53 54 57 60 63 66 69 72 73 75 78 81 83 84 87 90 93 96 99 102 103 105 108 111 113 114 117 120 123 126 129 130 131 132 133 134 135 136 137 138 139 141 143 144 147 150 153 156 159 162 163 165 168 171 173 174 177 180 18... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nWe need a function ```prime_bef_aft()``` that gives the largest prime below a certain given value ```n```, \n... | [{"input": "120", "output": "[[113, 127]]", "fn_name": "prime_bef_aft"}, {"input": "130", "output": "[[127, 131]]", "fn_name": "prime_bef_aft"}, {"input": "100", "output": "[[97, 101]]", "fn_name": "prime_bef_aft"}, {"input": "101", "output": "[[97, 103]]", "fn_name": "prime_bef_aft"}, {"input": "97", "output": "[[89, ... | code_functional |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nA little boy Gerald entered a clothes shop and found out something very unpleasant: not all clothes turns out... | [{"input": "6 11\n95 81 74 94 60 69\n3 2\n1 4\n4 2\n3 4\n1 5\n5 2\n5 3\n1 6\n2 6\n3 6\n4 6\n", "output": "215"}, {"input": "6 10\n29 5 55 24 55 74\n1 4\n2 3\n3 4\n5 1\n5 2\n5 3\n4 5\n6 2\n6 3\n6 5\n", "output": "108\n"}, {"input": "6 10\n17 5 55 24 55 74\n1 3\n2 3\n3 4\n5 1\n5 2\n5 3\n4 5\n6 2\n6 3\n6 5\n", "output": "... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nVasya has n days of vacations! So he decided to improve his IT skills and do sport. Vasya knows the following... | [{"input": "100\n0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n", "output": "100\n"}, {"input": "100\n0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThe reciprocal of all non-zero real numbers is real, but the reciprocal of an integer is not necessarily an i... | [{"input": "5: 2 - 3\n17: 1 + 3 * (2 + 3 / 5 * 2) + 7\n11: 1 / 8 - 5 - 8 * 2\n19: 8 / (2 - 1 * 7)\n1153: 10 * 3 / 7 + ( 50 + 151 / 22 ) + 11\n0:", "output": "2-3 = 4 (mod 5)\n1+3*(2+3/5*2)+7 = 4 (mod 17)\n1/8-5-8*2 = 8 (mod 11)\n8/(2-1*7) = 6 (mod 19)\n10*3/7+(50+151/22)+11 = 1023 (mod 1153)\n"}, {"input": "5: 3 - 3\n1... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nThere are N turkeys. We number them from 1 through N.\n\nM men will visit here one by one. The i-th man to vi... | [{"input": "14 1\n5 9\n2 13\n7 6\n4 9\n4 8\n2 13\n0 12\n3 3\n3 1\n3 10", "output": "90\n"}, {"input": "16 1\n8 9\n2 8\n4 6\n4 9\n7 8\n2 11\n1 8\n3 4\n6 4\n3 7", "output": "119\n"}, {"input": "24 1\n8 9\n2 8\n5 6\n4 9\n7 3\n2 11\n1 8\n3 4\n1 4\n3 7", "output": "275\n"}, {"input": "24 2\n8 9\n2 8\n5 5\n4 9\n7 3\n2 11\n1 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nAn IPv6-address is a 128-bit number. For convenience, this number is recorded in blocks of 16 bits in hexadec... | [{"input": "20\n0:0:9e39:9:b21:c9b:c:0\n0:0:0:0:0:a27:6b:cb0a\n2:7:4d:b:0:3:2:f401\n17:2dc6::0:89e3:0:dc:0\nca:4:0:0:d6:b999:e:0\n4af:553:b29:dd7:2:5b:0:7\n0:c981:8f:a4d:0:d4:0:f61\n0:0:1:0:dc33:0:1964:0\n84:da:0:6d6:0ecc:1:f:0\n4:fb:4d37:0:8c:4:4a52:24\nc:e:a:0:0:0:e:0\n0:3761:72ed:b7:3b0:ff7:fc:102\n5ae:8ca7:10::0:9b... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nVasya often uses public transport. The transport in the city is of two types: trolleys and buses. The city ha... | [{"input": "680 871 347 800\n10 100\n872 156 571 136 703 201 832 213 15 333\n465 435 870 173 660 237 694 594 423 405 27 866 325 490 255 989 128 345 278 125 708 210 771 848 961 448 871 190 745 343 532 174 103 999 874 221 252 500 886 129 185 208 137 425 758 34 696 15 198 981 91 50 545 885 194 583 475 415 162 712 116 911 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nWrite a function that takes a number or a string and gives back the number of **permutations without repetiti... | [{"input": "76853", "output": "[120]", "fn_name": "perms"}, {"input": "1397", "output": "[24]", "fn_name": "perms"}, {"input": "\"abc\"", "output": "[6]", "fn_name": "perms"}, {"input": "66666", "output": "[1]", "fn_name": "perms"}, {"input": "\"ab\"", "output": "[2]", "fn_name": "perms"}, {"input": "342", "output": "[... | code_functional |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nYou have got a shelf and want to put some books on it.\n\nYou are given $q$ queries of three types: L $id$ —... | [{"input": "10\nL 100\nR 100000\nR 123\nL 101\n? 123\nL 10\nR 115\n? 100\nR 110\n? 115\n", "output": "0\n2\n1\n"}, {"input": "10\nL 100\nR 101000\nR 123\nL 101\n? 123\nL 10\nR 115\n? 100\nR 110\n? 115\n", "output": "0\n2\n1\n"}, {"input": "10\nL 100\nR 100000\nR 123\nL 101\n? 123\nL 17\nR 115\n? 100\nR 110\n? 115\n", "... | code_stdio |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.