context
listlengths
1
1
gen_kwargs
dict
repeat_idx
int64
0
2
request_idx
int64
0
510
task_name
stringclasses
1 value
metadata
null
[ { "content": "Generate an executable Python function generated from the given prompt. Return the function body without invoking it at the final solution.You are given a 0-indexed array nums consisting of positive integers.\nInitially, you can increase the value of any element in the array by at most 1.\nAfter t...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
178
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. Return the function body without invoking it at the final solution.You are given an array of positive integers nums.\nYou need to select a subset of nums which satisfies the following condition:\n\nYou can place the selected e...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
179
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. Return the function body without invoking it at the final solution.You are given a string s.\nConsider performing the following operation until s becomes empty:\n\nFor every alphabet character from 'a' to 'z', remove the first...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
180
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. Return the function body without invoking it at the final solution.You are given a 0-indexed string array words.\nLet's define a boolean function isPrefixAndSuffix that takes two strings, str1 and str2:\n\nisPrefixAndSuffix(st...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
181
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. Return the function body without invoking it at the final solution.An ant is on a boundary. It sometimes goes left and sometimes right.\nYou are given an array of non-zero integers nums. The ant starts reading nums from the fi...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
182
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. Return the function body without invoking it at the final solution.You are given a 0-indexed string s typed by a user. Changing a key is defined as using a key different from the last used key. For example, s = \"ab\" has a ch...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
183
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. Return the function body without invoking it at the final solution.You are given a 0-indexed string array words having length n and containing 0-indexed strings.\nYou are allowed to perform the following operation any number o...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
184
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. Return the function body without invoking it at the final solution.Given an array of integers called nums, you can perform the following operation while nums contains at least 2 elements:\n\nChoose the first two elements of nu...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
185
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. Return the function body without invoking it at the final solution.You are given an integer array nums of even length. You have to split the array into two parts nums1 and nums2 such that:\n\nnums1.length == nums2.length == nu...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
186
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. Return the function body without invoking it at the final solution.You are given two arrays with positive integers arr1 and arr2.\nA prefix of a positive integer is an integer formed by one or more of its digits, starting from...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
187
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. Return the function body without invoking it at the final solution.You are given a 0-indexed integer array nums, and an integer k.\nIn one operation, you can remove one occurrence of the smallest element of nums.\nReturn the m...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
188
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. Return the function body without invoking it at the final solution.You are given a 1-indexed array of distinct integers nums of length n.\nYou need to distribute all the elements of nums between two arrays arr1 and arr2 using ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
189
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.Takahashi and Aoki played N games.\r\nYou are given a string S of length N, representing the results of these games.\r...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
190
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.We have a sequence of length N consisting of positive integers: A=(A_1,\\ldots,A_N). Any two adjacent terms have diffe...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
191
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.A single-player card game is popular in AtCoder Inc.\r\nEach card in the game has a lowercase English letter or the sy...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
192
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given an integer N and a string S consisting of 0, 1, and ?.\nLet T be the set of values that can be obtained ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
193
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.We have a grid with H rows and W columns.\r\nLet (i,j) denote the square at the i-th row from the top and j-th column ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
194
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.A DDoS-type string is a string of length 4 consisting of uppercase and lowercase English letters satisfying both of th...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
195
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There is an enemy with stamina A. Every time you attack the enemy, its stamina reduces by B.\nAt least how many times...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
196
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There is a grid with H horizontal rows and W vertical columns. Each cell has a lowercase English letter written on it...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
197
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given N strings S_1,S_2,\\dots,S_N, each of length M, consisting of lowercase English letter. Here, S_i are p...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
198
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.Takahashi has decided to give one gift to Aoki and one gift to Snuke.\r\nThere are N candidates of gifts for Aoki,\r\n...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
199
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There is an undirected graph with N vertices numbered 1 through N, and initially with 0 edges.\r\nGiven Q queries, pro...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
200
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.On a blackboard, there are N sets S_1,S_2,\\dots,S_N consisting of integers between 1 and M. Here, S_i = \\lbrace S_{i...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
201
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.Two characters x and y are called similar characters if and only if one of the following conditions is satisfied:\n\n-...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
202
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.N people numbered 1,2,\\ldots,N were in M photos. In each of the photos, they stood in a single line. In the i-th ph...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
203
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.On a two-dimensional plane, Takahashi is initially at point (0, 0), and his initial health is H. M items to recover h...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
204
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.Your computer has a keyboard with three keys: 'a' key, Shift key, and Caps Lock key. The Caps Lock key has a light on...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
205
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.A graph with (k+1) vertices and k edges is called a level-k\\ (k\\geq 2) star if and only if:\n\n- it has a vertex tha...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
206
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There are N people numbered 1, 2, \\ldots, N, sitting in this clockwise order around a round table.\r\nIn particular, ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
207
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given an integer N.\r\nPrint an approximation of N according to the following instructions.\n\n- If N is less ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
208
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There are N people numbered 1, 2, \\ldots, N on a two-dimensional plane, and person i is at the point represented by t...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
209
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There is a rectangular cake with some strawberries on the xy-plane. The cake occupies the rectangular area \\lbrace (x...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
210
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given an undirected graph G with N vertices and M edges.\r\nFor i = 1, 2, \\ldots, M, the i-th edge is an undi...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
211
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There is an ultramarathon course totaling 100\\;\\mathrm{km}.\r\nWater stations are set up every 5\\;\\mathrm{km} alon...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
212
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There are 7 points A, B, C, D, E, F, and G on a straight line, in this order. (See also the figure below.)\r\nThe dist...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
213
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There is a grid with H rows and W columns. Let (i, j) denote the square at the i-th row from the top and the j-th colu...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
214
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.Takahashi keeps a sleep log.\r\nThe log is represented as an odd-length sequence A=(A _ 1(=0), A _ 2,\\ldots,A _ N), w...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
215
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There is a simple undirected graph with N vertices and M edges, where vertices are numbered from 1 to N, and edges are...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
216
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given a string S of length N consisting of lowercase English letters.\nWe denote the i-th character of S by S_...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
217
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given a sequence A=(A_0,A_1,\\dots,A_{63}) of length 64 consisting of 0 and 1.\nFind A_0 2^0 + A_1 2^1 + \\dot...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
218
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given a sequence A=(A_1,A_2,\\dots,A_{3N}) of length 3N where each of 1,2,\\dots, and N occurs exactly three t...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
219
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.Takahashi has decided to enjoy a wired full-course meal consisting of N courses in a restaurant.\r\nThe i-th course is...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
220
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.We have a sequence A=(A_1,A_2,\\dots,A_N) of length N. Initially, all the terms are 0.\r\nUsing an integer K given in...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
221
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.Takahashi has recorded the number of steps he walked for N weeks. He walked A_i steps on the i-th day.\nFind the total...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
222
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given N strings S_1,S_2,\\ldots,S_N consisting of lowercase English letters.\r\nDetermine if there are distinc...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
223
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.Takahashi has two sheets A and B, each composed of black squares and transparent squares, and an infinitely large shee...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
224
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given a string S of length N consisting of lowercase English letters and the characters ( and ).\r\nPrint the ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
225
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There are N people numbered from 1 to N standing in a circle. Person 1 is to the right of person 2, person 2 is to the...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
226
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.Given eight integers S_1,S_2,\\dots, and S_8,\r\nprint Yes if they satisfy all of the following three conditions, and ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
227
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.Takahashi ate N plates of sushi at a sushi restaurant. The color of the i-th plate is represented by a string C_i.\nT...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
228
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.N people numbered 1 through N tossed a coin several times. We know that person i's tosses resulted in A_i heads and B...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
229
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.We have a grid with H horizontal rows and W vertical columns.\r\nWe denote by (i,j) the cell at the i-th row from the ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
230
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given a length-N sequence A=(A_1,A_2,\\dots,A_N) consisting of 0, 1, and 2,\r\nand a length-N string S=S_1S_2\...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
231
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are in a store to buy N items. The regular price of the i-th item is P_i yen (the currency in Japan).\nYou have M...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
232
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.We have the following 3 \\times 3 board with integers from 1 through 9 written on it.\n\nYou are given two integers A ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
233
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given a grid with N rows and N columns. An integer A_{i, j} is written on the square at the i-th row from the...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
234
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.Snuke the doctor prescribed N kinds of medicine for Takahashi. For the next a_i days (including the day of the prescr...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
235
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.We have an undirected graph with (N_1+N_2) vertices and M edges. For i=1,2,\\ldots,M, the i-th edge connects vertex a...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
236
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There is a family consisting of person 1, person 2, \\ldots, and person N. For i\\geq 2, person i's parent is person ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
237
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.Takahashi wants a beverage called AtCoder Drink in a restaurant.\r\nIt can be ordered at a regular price of P yen.\nHe...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
238
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.AtCoder Shop has N products.\r\nThe price of the i-th product (1\\leq i\\leq N) is P _ i.\r\nThe i-th product (1\\leq ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
239
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There are N sticks with several balls stuck onto them. Each ball has a lowercase English letter written on it.\nFor ea...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
240
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There are N sports players.\nAmong them, there are M incompatible pairs. The i-th incompatible pair (1\\leq i\\leq M) ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
241
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given a string S of length N consisting of 0 and 1.\r\nIt describes a length-N sequence A=(A _ 1,A _ 2,\\ldots...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
242
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.We have N dice.\r\nFor each i = 1, 2, \\ldots, N, when the i-th die is thrown, it shows a random integer between 1 and...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
243
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given a string S consisting of A, B, and C. S is guaranteed to contain all of A, B, and C.\nIf the characters ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
244
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There are N people numbered 1 to N.\r\nYou are given their schedule for the following D days. The schedule for person ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
245
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There is a directed graph with N vertices and N edges.\r\nThe i-th edge goes from vertex i to vertex A_i. (The constra...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
246
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There is an N \\times M grid and a player standing on it.\r\nLet (i,j) denote the square at the i-th row from the top ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
247
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There is a grid with H rows and W columns. Let (i, j) denote the square at the i-th row from the top and j-th column f...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
248
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.Given a length-3 string S consisting of uppercase English letters, print Yes if S equals one of ACE, BDF, CEG, DFA, EG...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
249
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.Takahashi invented Tak Code, a two-dimensional code. A TaK Code satisfies all of the following conditions:\n\n- It is...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
250
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There are N sellers and M buyers in an apple market.\nThe i-th seller may sell an apple for A_i yen or more (yen is th...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
251
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given a non-empty string S consisting of (, ), and ?.\r\nThere are 2^x ways to obtain a new string by replacin...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
252
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There are N rectangular cuboids in a three-dimensional space.\nThese cuboids do not overlap. Formally, for any two di...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
253
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There are N items.\r\nEach of these is one of a pull-tab can, a regular can, or a can opener.\r\nThe i-th item is desc...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
254
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There are N people numbered 1 through N.\nEach person has a integer score called programming ability; person i's progr...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
255
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There are N competitive programmers numbered person 1, person 2, \\ldots, and person N.\nThere is a relation called su...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
256
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given an integer sequence A=(A_1,A_2,\\dots,A_N).\r\nYou can perform the following operation any number of tim...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
257
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.The number pi to the 100-th decimal place is\n3.1415926535897932384626433832795028841971693993751058209749445923078164...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
258
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.N people, person 1, person 2, \\ldots, person N, are playing roulette.\r\nThe outcome of a spin is one of the 37 integ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
259
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given a string S of length N consisting of lowercase English letters.\nEach character of S is painted in one o...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
260
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given a string S of length N consisting of uppercase and lowercase English letters.\nLet us perform Q operatio...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
261
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There are N roulette wheels.\nThe i-th (1\\leq i\\leq N) wheel has P _ i integers S _ {i,1},S _ {i,2},\\ldots,S _ {i,P...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
262
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.N players, player 1, player 2, ..., player N, participate in a game tournament. Just before the tournament starts, eac...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
263
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given a string S consisting of lowercase English letters.\r\nRemove all occurrences of a, e, i, o, u from S an...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
264
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.In the calendar of AtCoderLand, a year consists of M months: month 1, month 2, \\dots, month M. The i-th month consist...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
265
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.We have N cups of ice cream.\r\nThe flavor and deliciousness of the i-th cup are F_i and S_i, respectively (S_i is an ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
266
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There are H \\times W cookies in H rows and W columns.\nThe color of the cookie at the i-row from the top and j-th col...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
267
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.We have N books numbered 1 to N.\r\nBook i assumes that you have read C_i books, the j-th of which is book P_{i,j}: yo...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
268
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There is a race through checkpoints 1,2,\\dots,N in this order on a coordinate plane.\nThe coordinates of checkpoint i...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
269
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.Takahashi likes full moons.\nLet today be day 1. The first day on or after today on which he can see a full moon is da...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
270
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There are N rectangular sheets spread out on a coordinate plane.\nEach side of the rectangular region covered by each ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
271
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.Takahashi is planning an N-day train trip.\nFor each day, he can pay the regular fare or use a one-day pass.\nHere, fo...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
272
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given a weighted undirected complete graph with N vertices numbered from 1 to N. The edge connecting vertices ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
273
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given a sequence of positive integers of length N: A=(A_1,A_2,\\ldots,A_N). Find the number of triples of posi...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
274
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.You are given a positive integer N. Print a string of length (N+1), s_0s_1\\ldots s_N, defined as follows.\n\nFor each...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
275
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.There is a 3\\times3 grid with numbers between 1 and 9, inclusive, written in each square. The square at the i-th row ...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
276
LiveCodeBench
null
[ { "content": "Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.Takahashi is displaying a sentence with N words in a window.\r\nAll words have the same height, and the width of the i...
{ "do_sample": false, "max_new_tokens": 32768, "seed": 2, "temperature": 0.7 }
2
277
LiveCodeBench
null