messages listlengths 1 1 | ground_truth stringlengths 88 726k | dataset stringclasses 2
values |
|---|---|---|
[
{
"content": "Solve the following coding problem using the programming language python:\n\nA string is a palindrome if it reads the same from the left to the right and from the right to the left. For example, the strings \"kek\", \"abacaba\", \"r\" and \"papicipap\" are palindromes, while the strings \"abb\" an... | [{"type": "stdin_stdout", "input": "wobervhvvkihcuyjtmqhaaigvvgiaahqmtjyuchikvvhvrebow\n", "output": "49\n"}, {"type": "stdin_stdout", "input": "wobervhvvkihcuyjtmqhaaigvahheoqleromusrartldojsjvy\n", "output": "50\n"}, {"type": "stdin_stdout", "input": "wobervhvvkihcuyjtmqhaaigvvgiaahqmtjyuchikvvhvrebow\n", "output": "... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nЕсть n-подъездный дом, в каждом подъезде по m этажей, и на каждом этаже каждого подъезда ровно k квартир. Таким образом, в доме всего n·m·k квартир. Они пронумерованы естественным образом от 1 до n·m·k, то есть первая ква... | [{"type": "stdin_stdout", "input": "1000 1000 1000\n1000000000 990000001\n", "output": "1144\n"}, {"type": "stdin_stdout", "input": "491 980 907\n253658701 421137262\n", "output": "3985\n"}, {"type": "stdin_stdout", "input": "200 970 827\n113595903 145423943\n", "output": "1484\n"}, {"type": "stdin_stdout", "input": "8... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nGiven a long number, return all the possible sum of two digits of it.\n\nFor example, `12345`: all possible sum of two digits from that number are:\n\n [ 1 + 2, 1 + 3, 1 + 4, 1 + 5, 2 + 3, 2 + 4, 2 + 5, 3 + 4, 3 + 5, 4... | [{"input": "3264128", "output": "[[5, 9, 7, 4, 5, 11, 8, 6, 3, 4, 10, 10, 7, 8, 14, 5, 6, 12, 3, 9, 10]]", "fn_name": "digits"}, {"input": "999999", "output": "[[18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18]]", "fn_name": "digits"}, {"input": "81596", "output": "[[9, 13, 17, 14, 6, 10, 7, 14, 11, 15]]", "... | code_functional |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThey say \"years are like dominoes, tumbling one after the other\". But would a year fit into a grid? I don't think so.\n\nLimak is a little polar bear who loves to play. He has recently got a rectangular grid with h rows... | [{"type": "stdin_stdout", "input": "7 39\n.......................................\n.###..###..#..###.....###..###..#..###.\n...#..#.#..#..#.........#..#.#..#..#...\n.###..#.#..#..###.....###..#.#..#..###.\n.#....#.#..#....#.....#....#.#..#..#.#.\n.###..###..#..###.....###..###..#..###.\n................................... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nFor a given weighted directed graph G(V, E), find the distance of the shortest route that meets the following criteria:\n\n* It is a closed cycle where it ends at the same point it starts.\n* It visits each vertex exactly... | [{"type": "stdin_stdout", "input": "2 -1\n-1 2 8\n-1 15 4\n-1 0 12\n1 -2 3\n-1 0 4\n3 -1 1", "output": "-1\n"}, {"type": "stdin_stdout", "input": "2 -1\n-1 2 8\n-1 10 4\n-1 0 12\n1 -2 3\n-1 0 4\n3 -1 1", "output": "-1\n"}, {"type": "stdin_stdout", "input": "2 -1\n-1 2 8\n-1 10 4\n-1 0 12\n1 -2 3\n-1 0 4\n3 -1 2", "outp... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nSquirrel Liss lived in a forest peacefully, but unexpected trouble happens. Stones fall from a mountain. Initially Squirrel Liss occupies an interval [0, 1]. Next, n stones will fall and Liss will escape from the stones. ... | [{"type": "stdin_stdout", "input": "rrlllrrrlrrlrrrlllrlrlrrrlllrllrrllrllrrlrlrrllllrlrrrrlrlllrlrrrlrlrllrlrlrrlrrllrrrlrlrlllrrllllrl\n", "output": "1\n2\n6\n7\n8\n10\n11\n13\n14\n15\n19\n21\n23\n24\n25\n29\n32\n33\n36\n39\n40\n42\n44\n45\n50\n52\n53\n54\n55\n57\n61\n63\n64\n65\n67\n69\n72\n74\n76\n77\n79\n80\n83\n8... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nPolycarp is mad about coding, that is why he writes Sveta encoded messages. He calls the median letter in a word the letter which is in the middle of the word. If the word's length is even, the median letter is the left o... | [{"type": "stdin_stdout", "input": "501\noilesjbgowlnayckhpoaitijewsyhgavnthycaecwnvzpxgjqfjyxnjcjknvvsmjbjwtcoyfbegmnnheeamvtfjkigqoanhvgdfrjchdqgowrstlmrjmcsuuwvvoeucfyhnxivosrxblfoqwikfxjnnyejdiihpenfcahtjwcnzwvxxseicvdfgqhtvefswznuyohmmljlnxubhevywpmnitnkhecsgccpstxkmdzabsnwxkokdfsogzbpnfvgudvqlstxojzfzugxbfrozveai... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nFor given $N$ points in the 2D Euclidean plane, find the distance of the shortest tour that meets the following criteria:\n\n* Visit the points according to the following steps:\n1. It starts from the leftmost point (star... | [{"type": "stdin_stdout", "input": "5\n-1 0\n1 2\n2 1\n3 2\n4 0", "output": "12.462840740\n"}, {"type": "stdin_stdout", "input": "3\n-13 -1\n0 -1\n10 -2", "output": "46.071604488\n"}, {"type": "stdin_stdout", "input": "3\n-10 -1\n0 -1\n10 -2", "output": "40.074860016\n"}, {"type": "stdin_stdout", "input": "5\n0 0\n1 2\... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThere are k sensors located in the rectangular room of size n × m meters. The i-th sensor is located at point (x_{i}, y_{i}). All sensors are located at distinct points strictly inside the rectangle. \n\nOpposite corners ... | [{"type": "stdin_stdout", "input": "11 17 10\n1 8\n1 7\n2 3\n3 2\n4 8\n5 3\n2 15\n8 6\n6 3\n3 1\n", "output": "-1\n109\n-1\n-1\n26\n71\n-1\n74\n-1\n69\n"}, {"type": "stdin_stdout", "input": "10 17 10\n1 8\n1 7\n2 3\n7 2\n4 8\n10 3\n2 8\n8 6\n6 3\n3 1\n", "output": "-1\n41\n-1\n-1\n76\n-1\n42\n28\n-1\n103\n"}, {"type": ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nConsider an array $a$ of length $n$ with elements numbered from $1$ to $n$. It is possible to remove the $i$-th element of $a$ if $gcd(a_i, i) = 1$, where $gcd$ denotes the greatest common divisor. After an element is rem... | [{"type": "stdin_stdout", "input": "1337 424242424242\n", "output": "119112628\n"}, {"type": "stdin_stdout", "input": "300000 1000000000\n", "output": "590856313\n"}, {"type": "stdin_stdout", "input": "2 1000000000000\n", "output": "138131255\n"}, {"type": "stdin_stdout", "input": "17957 2\n", "output": "653647969\n"},... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nA tourist hiked along the mountain range. The hike lasted for n days, during each day the tourist noted height above the sea level. On the i-th day height was equal to some integer h_{i}. The tourist pick smooth enough ro... | [{"type": "stdin_stdout", "input": "190877881 20\n3 100000000\n14 100000000\n22 100000000\n24 100000000\n31 100000000\n41 100100000\n46 100000000\n84 100000000\n94 100000000\n98 100000000\n99999912 100000000\n99999915 100000000\n99999916 100000000\n99999923 100000000\n99999935 100000000\n99999937 100000000\n99999954 10... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nWe have a sequence A of N non-negative integers.\nCompute the sum of \\prod _{i = 1} ^N \\dbinom{B_i}{A_i} over all sequences B of N non-negative integers whose sum is at most M, and print it modulo (10^9 + 7).\nHere, \\d... | [{"type": "stdin_stdout", "input": "2000 4000001\n2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nWrite a function that when given a URL as a string, parses out just the domain name and returns it as a string. For example:\n```python\ndomain_name(\"http://github.com/carbonfive/raygun\") == \"github\" \ndomain_name(\"h... | [{"input": "\"http://www.codewars.com/kata/\"", "output": "[\"codewars\"]", "fn_name": "domain_name"}, {"input": "\"https://hyphen-site.org\"", "output": "[\"hyphen-site\"]", "fn_name": "domain_name"}, {"input": "\"http://codewars.com\"", "output": "[\"codewars\"]", "fn_name": "domain_name"}, {"input": "\"https://youtu... | code_functional |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThey say that Berland has exactly two problems, fools and roads. Besides, Berland has n cities, populated by the fools and connected by the roads. All Berland roads are bidirectional. As there are many fools in Berland, b... | [{"type": "stdin_stdout", "input": "5\n3 4\n4 5\n1 2\n2 4\n3\n2 3\n1 3\n3 5\n", "output": "3 1 1 2\n"}, {"type": "stdin_stdout", "input": "5\n3 1\n4 5\n1 4\n2 4\n3\n2 3\n1 3\n3 5\n", "output": "3 1 2 1\n"}, {"type": "stdin_stdout", "input": "5\n3 1\n4 5\n1 4\n2 1\n3\n2 3\n1 3\n3 5\n", "output": "3 1 1 1\n"}, {"type": "... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou are given two strings s and t consisting of lowercase English letters and an integer L.\n\nWe will consider generating a string of length L by concatenating one or more copies of s and t. Here, it is allowed to use th... | [{"type": "stdin_stdout", "input": "8\ncoding\nfestiual", "output": "festiual\n"}, {"type": "stdin_stdout", "input": "8\ngnicoc\nfisteual", "output": "fisteual\n"}, {"type": "stdin_stdout", "input": "8\ngoicdm\neisteual", "output": "eisteual\n"}, {"type": "stdin_stdout", "input": "8\nmdciog\nlauetsie", "output": "lauet... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nA dragon symbolizes wisdom, power and wealth. On Lunar New Year's Day, people model a dragon with bamboo strips and clothes, raise them with rods, and hold the rods high and low to resemble a flying dragon.\n\nA performer... | [{"type": "stdin_stdout", "input": "200\n2 1 1 2 1 2 2 2 2 2 1 2 2 1 1 2 2 1 1 1 2 1 1 2 2 2 2 2 1 1 2 1 2 1 1 2 1 1 1 1 2 1 2 2 1 2 1 1 1 2 1 1 1 2 2 2 1 1 1 1 2 2 2 1 2 2 2 1 2 2 2 1 2 1 2 1 2 1 1 1 1 2 2 2 1 1 2 1 2 1 2 1 2 2 1 1 1 2 2 2 2 1 2 2 2 1 1 1 1 2 1 1 1 2 2 1 2 1 2 2 2 1 2 1 2 1 2 1 2 2 2 1 2 2 2 1 1 1 1 2... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nA factory produces thimbles in bulk. Typically, it can produce up to a thimbles a day. However, some of the machinery is defective, so it can currently only produce b thimbles each day. The factory intends to choose a k-d... | [{"type": "stdin_stdout", "input": "5 2 2 1 8\n1 1 2\n1 5 3\n1 2 1\n2 2\n1 4 2\n1 3 2\n2 1\n2 3\n", "output": "3\n6\n4\n"}, {"type": "stdin_stdout", "input": "5 2 2 1 8\n1 1 2\n1 5 3\n1 2 1\n2 2\n1 4 4\n1 3 2\n2 1\n2 3\n", "output": "3\n6\n4\n"}, {"type": "stdin_stdout", "input": "5 2 2 2 8\n1 1 2\n1 5 3\n1 2 1\n2 2\n1... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou are given a range of positive integers from $l$ to $r$.\n\nFind such a pair of integers $(x, y)$ that $l \\le x, y \\le r$, $x \\ne y$ and $x$ divides $y$.\n\nIf there are multiple answers, print any of them.\n\nYou a... | [{"type": "stdin_stdout", "input": "3\n6969 696969\n11103 49805\n6969 696969\n", "output": "6969 13938\n11103 22206\n6969 13938\n"}, {"type": "stdin_stdout", "input": "3\n9989 359575\n11103 49805\n6969 253442\n", "output": "9989 19978\n11103 22206\n6969 13938\n"}, {"type": "stdin_stdout", "input": "3\n6787 359575\n1110... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThroughout Igor K.'s life he has had many situations worthy of attention. We remember the story with the virus, the story of his mathematical career and of course, his famous programming achievements. However, one does no... | [{"type": "stdin_stdout", "input": "446237720 920085248 296916273 439113596\n", "output": "1\n"}, {"type": "stdin_stdout", "input": "491259590 529594367 305425951 326414536\n", "output": "1\n"}, {"type": "stdin_stdout", "input": "733405771 1387069059 19971607 389270995\n", "output": "1\n"}, {"type": "stdin_stdout", "in... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nVitaly is a diligent student who never missed a lesson in his five years of studying in the university. He always does his homework on time and passes his exams in time. \n\nDuring the last lesson the teacher has provided... | [{"type": "stdin_stdout", "input": "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyzyyyyyyyyyyyyyyyyyyyyyy\nzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\n", "output": "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou wrote all your unit test names in camelCase.\nBut some of your colleagues have troubles reading these long test names.\nSo you make a compromise to switch to underscore separation.\n\nTo make these changes fast you wr... | [{"input": "\"_IfATestStartAndEndsWithUnderscore_ItShouldBeTheSame_\"", "output": "[\"_If_A_Test_Start_And_Ends_With_Underscore_It_Should_Be_The_Same_\"]", "fn_name": "toUnderScore"}, {"input": "\"ThisShouldBeSplittedCorrectIntoUnderscore\"", "output": "[\"This_Should_Be_Splitted_Correct_Into_Underscore\"]", "fn_name":... | code_functional |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou would like to get the 'weight' of a name by getting the sum of the ascii values. However you believe that capital letters should be worth more than mere lowercase letters. Spaces, numbers, or any other character are w... | [{"input": "\"George Washington\"", "output": "[1275]", "fn_name": "get_weight"}, {"input": "\"King George II\"", "output": "[1012]", "fn_name": "get_weight"}, {"input": "\"Billy Bob Joe\"", "output": "[909]", "fn_name": "get_weight"}, {"input": "\"r2d2\"", "output": "[150]", "fn_name": "get_weight"}, {"input": "\"R2D2... | code_functional |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nDo you know that The Chef has a special interest in palindromes? Yes he does! Almost all of the dishes in his restaurant is named by a palindrome strings. The problem is that a name of a dish should not be too long, so Th... | [{"type": "stdin_stdout", "input": "5\n1\n2\n15\n10\n100", "output": "26\n52\n533228165\n24713260\n508533804\n"}, {"type": "stdin_stdout", "input": "5\n1\n1\n15\n10\n100", "output": "26\n26\n533228165\n24713260\n508533804\n"}, {"type": "stdin_stdout", "input": "5\n1\n2\n8\n10\n110", "output": "26\n52\n950508\n24713260\... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThere were $n$ types of swords in the theater basement which had been used during the plays. Moreover there were exactly $x$ swords of each type. $y$ people have broken into the theater basement and each of them has taken... | [{"type": "stdin_stdout", "input": "10\n100000000 200000000 300000000 20 500000000 600000000 700000000 800000000 900000000 1000000000\n", "output": "244999999 20\n"}, {"type": "stdin_stdout", "input": "10\n100000000 200000000 300000000 20 500000000 600000000 700000000 800000000 900000000 1000000000\n", "output": "24499... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nSnuke has come to a store that sells boxes containing balls. The store sells the following three kinds of boxes:\n\n* Red boxes, each containing R red balls\n* Green boxes, each containing G green balls\n* Blue boxes, eac... | [{"type": "stdin_stdout", "input": "13 2 1 3000", "output": "174001\n"}, {"type": "stdin_stdout", "input": "13 1 1 3000", "output": "347886\n"}, {"type": "stdin_stdout", "input": "13 2 1 3118", "output": "187920\n"}, {"type": "stdin_stdout", "input": "22 2 1 3118", "output": "111399\n"}, {"type": "stdin_stdout", "input... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nD: Anipero 2012\n\nAnipero Summer Live, commonly known as Anipero, is the largest anime song live event in Japan where various anime song artists gather. 2D, who loves anime songs, decided to go to Anipero this year as we... | [{"type": "stdin_stdout", "input": "1 1\n-1 -3 54", "output": "54\n"}, {"type": "stdin_stdout", "input": "1 0\n0 -10 25", "output": "25\n"}, {"type": "stdin_stdout", "input": "1 0\n-2 -2 -1", "output": "-1\n"}, {"type": "stdin_stdout", "input": "1 4\n0 2 108", "output": "108\n"}, {"type": "stdin_stdout", "input": "1 0\... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nIf you like Taco Bell, you will be familiar with their signature doritos locos taco. They're very good.\n\n\nWhy can't everything be a taco? We're going to attempt that here, turning every word we find into the taco bell ... | [{"input": "\"Alex is Super Cool\"", "output": "[[\"shell\", \"beef\", \"lettuce\", \"beef\", \"beef\", \"salsa\", \"salsa\", \"beef\", \"beef\", \"cheese\", \"beef\", \"beef\", \"lettuce\", \"shell\"]]", "fn_name": "tacofy"}, {"input": "\"abtlcgs\"", "output": "[[\"shell\", \"beef\", \"tomato\", \"lettuce\", \"cheese\... | code_functional |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nMakes solves problems on Decoforces and lots of other different online judges. Each problem is denoted by its difficulty — a positive integer number. Difficulties are measured the same across all the judges (the problem w... | [{"type": "stdin_stdout", "input": "100 10\n246 286 693 607 87 612 909 312 621 37 801 558 504 914 416 762 187 974 976 123 635 488 416 659 988 998 93 662 92 749 889 78 214 786 735 625 921 372 713 617 975 119 402 411 878 138 548 905 802 762 940 336 529 373 745 835 805 880 816 94 166 114 475 699 974 462 61 337 555 805 968... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nRock... Paper!\n\nAfter Karen have found the deterministic winning (losing?) strategy for rock-paper-scissors, her brother, Koyomi, comes up with a new game as a substitute. The game works as follows.\n\nA positive intege... | [{"type": "stdin_stdout", "input": "30\n1143673 436496 1214486 1315862 148404 724601 1430740 1433008 1654610 1635673 614673 1713408 1270999 1697 1463796 50027 525482 1659078 688200 842647 518551 877506 1017082 1807856 3280 759698 1208220 470180 829800 1960886\n1312613 1965095 967255 1289012 1950383 582960 856825 49684 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nOne beautiful day Vasily the bear painted 2m circles of the same radius R on a coordinate plane. Circles with numbers from 1 to m had centers at points (2R - R, 0), (4R - R, 0), ..., (2Rm - R, 0), respectively. Circles wi... | [{"type": "stdin_stdout", "input": "100000 10\n", "output": "666674.9511055604\n"}, {"type": "stdin_stdout", "input": "100000 4\n", "output": "266669.98044222436\n"}, {"type": "stdin_stdout", "input": "100000 3\n", "output": "200002.4853316681\n"}, {"type": "stdin_stdout", "input": "66666 8\n", "output": "355558.627618... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nA long time ago, in a galaxy far far away two giant IT-corporations Pineapple and Gogol continue their fierce competition. Crucial moment is just around the corner: Gogol is ready to release it's new tablet Lastus 3000.\n... | [{"type": "stdin_stdout", "input": "sosossosossosossosossosossosossosossosossosossosossosossosossosossosossosossosossosossosossosossosos\nsos\n", "output": "20"}, {"type": "stdin_stdout", "input": "sosossosossosossosossosossosossosossosossosossosossosossosossosossosossosossosossosossosossosossosos\nsos\n", "output": "2... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nIn the middle of Tyrrhenian Sea, there is a small volcanic island called Chronus. The island is now uninhabited but it used to be a civilized island. Some historical records imply that the island was annihilated by an eru... | [{"type": "stdin_stdout", "input": "3\n8 8 28\n32 34 32\n57 2 108\n5\n49 3 49\n7 46 44\n27 21 21\n33 56 56\n21 46 4\n3\n45 52 28\n46 26 36\n40 55 62\n10\n33 8 39\n50 57 43\n61 21 12\n21 17 11\n16 22 106\n45 40 53\n45 30 53\n39 1 8\n24 48 30\n7 48 15\n0", "output": "03:16:36 03:21:07\n06:14:56 06:32:09\n02:18:54 02:21:0... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nVanya wants to pass n exams and get the academic scholarship. He will get the scholarship if the average grade mark for all the exams is at least avg. The exam grade cannot exceed r. Vanya has passed the exams and got gra... | [{"type": "stdin_stdout", "input": "9 846678 205000\n102282 593538\n246630 24854\n545346 409737\n334264 443193\n37717 191227\n154582 913095\n97105 345066\n65504 578960\n163348 394257\n", "output": "2441209588\n"}, {"type": "stdin_stdout", "input": "9 846678 205000\n102282 593538\n246630 24854\n545346 409737\n334264 443... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nWe have a sandglass that runs for X seconds. The sand drops from the upper bulb at a rate of 1 gram per second. That is, the upper bulb initially contains X grams of sand.\nHow many grams of sand will the upper bulb conta... | [{"type": "stdin_stdout", "input": "1111100011 0101011000", "output": "1010089011\n"}, {"type": "stdin_stdout", "input": "1111100111 0101011000", "output": "1010089111\n"}, {"type": "stdin_stdout", "input": "1100001110 0010011100", "output": "1089990010\n"}, {"type": "stdin_stdout", "input": "1110001110 0010011100", "o... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nA group of n schoolboys decided to ride bikes. As nobody of them has a bike, the boys need to rent them.\n\nThe renting site offered them m bikes. The renting price is different for different bikes, renting the j-th bike ... | [{"type": "stdin_stdout", "input": "40 40 61\n28 59 8 27 45 67 33 32 61 3 29 2 3 37 8 8 10 61 1 2 65 28 34 27 8 35 45 49 30 49 10 23 23 53 20 48 14 74 16 6\n69 56 34 66 42 73 45 49 29 70 26 77 73 26 78 11 50 69 64 72 78 66 66 29 80 40 50 75 58 47 78 113 41 70 52 52 69 22 69 66\n", "output": "23 960\n"}, {"type": "stdin... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nOh no! Ghosts have reportedly swarmed the city. It's your job to get rid of them and save the day!\n\nIn this kata, strings represent buildings while whitespaces within those strings represent ghosts.\n\nSo what are you w... | [{"input": "\"BusStation\"", "output": "[\"You just wanted my autograph didn't you?\"]", "fn_name": "ghostbusters"}, {"input": "\"YourHouse\"", "output": "[\"You just wanted my autograph didn't you?\"]", "fn_name": "ghostbusters"}, {"input": "\"O f fi ce\"", "output": "[\"Office\"]", "fn_name": "ghostbusters"}, {"inpu... | code_functional |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou are given two strings $s$ and $t$. Both strings have length $n$ and consist of lowercase Latin letters. The characters in the strings are numbered from $1$ to $n$.\n\nYou can successively perform the following move an... | [{"type": "stdin_stdout", "input": "50\naabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyz\nzyxxwwvvuuttssrrqqppoonnmmllkkjjiihhggffeeddccbbaa\n", "output": "1201\n49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 49 48 47 46 45 44 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nA message from humans to extraterrestrial intelligence was sent through the Arecibo radio telescope in Puerto Rico on the afternoon of Saturday November l6, l974. The message consisted of l679 bits and was meant to be tra... | [{"type": "stdin_stdout", "input": "5 1 2\n99999 999 999\n1680 10 16\n1970 1 2\n2002 4 11\n0 0 0", "output": "2 2\n313 313\n37 43\n37 53\n37 53\n"}, {"type": "stdin_stdout", "input": "10 1 9\n99999 999 1768\n1495 5 16\n973 1 2\n2002 4 11\n0 0 0", "output": "2 5\n257 389\n31 47\n31 31\n37 53\n"}, {"type": "stdin_stdout"... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nWrite a function that takes an arbitrary number of strings and interlaces them (combines them by alternating characters from each string).\n\nFor example `combineStrings('abc', '123')` should return `'a1b2c3'`.\n\nIf the ... | [{"input": "\"abcd\"\n\"123\"\n\"$%^&\"\n\"qwertyuiop\"\n\"X\"", "output": "[\"a1$qXb2%wc3^ed&rtyuiop\"]", "fn_name": "combine_strings"}, {"input": "\"abcd\"\n\"123\"\n\"$%^&\"\n\"qwertyuiop\"", "output": "[\"a1$qb2%wc3^ed&rtyuiop\"]", "fn_name": "combine_strings"}, {"input": "\"abcd\"\n\"123\"\n\"$%^&\"", "output": "[... | code_functional |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nGaurang has grown up in a mystical universe. He is faced by $n$ consecutive 2D planes. He shoots a particle of decay age $k$ at the planes.\n\nA particle can pass through a plane directly, however, every plane produces an... | [{"type": "stdin_stdout", "input": "37\n30 16\n22 37\n37 43\n25 31\n12 12\n15 30\n42 11\n29 28\n26 32\n12 32\n18 12\n11 48\n24 25\n15 40\n40 38\n17 12\n22 27\n35 32\n11 29\n35 24\n42 35\n21 14\n25 11\n16 14\n28 31\n49 45\n48 24\n28 20\n21 19\n43 49\n42 24\n14 21\n23 19\n19 16\n32 35\n28 10\n14 22\n", "output": "5006921... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nTakeshi, who loves hot springs, is planning a trip to a hot spring resort on his next long vacation. I would like to travel by connecting to a long-distance bus and reach my destination with as little money as possible. T... | [{"type": "stdin_stdout", "input": "2 1\n1 2 5\n3 2\n1 2 5\n2 3 36\n6 9\n3 2 7\n1 2 14\n2 5 27\n2 6 10\n2 2 21\n4 2 20\n3 5 2\n4 5 12\n4 6 14\n0 0", "output": "5\n0\n0\n"}, {"type": "stdin_stdout", "input": "2 1\n1 2 5\n3 2\n1 2 5\n2 3 36\n6 9\n3 2 7\n1 2 14\n2 5 27\n2 6 10\n2 2 21\n4 2 20\n3 5 2\n4 5 12\n8 6 14\n0 0",... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nConsider car trips in a country where there is no friction. Cars in this country do not have engines. Once a car started to move at a speed, it keeps moving at the same speed. There are acceleration devices on some points... | [{"type": "stdin_stdout", "input": "2 0\n1 1\n5 4\n2 5\n2 2 1 1\n2 3 2 2\n3 4 2 2\n4 5 2 1\n6 6\n1 6\n1 2 2 1\n2 3 2 1\n3 6 2 2\n1 4 2 30\n6 5 3 23\n5 6 2 30\n11 7\n1 6\n1 2 1 30\n2 3 1 30\n3 1 1 30\n3 4 100 30\n4 5 2 30\n5 6 1 30\n6 4 1 30\n0 0", "output": "unreachable\n5.0000000000\n6.0000000000\n12.4692246782\n"}, {... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThere is an image with a height of H pixels and a width of W pixels. Each of the pixels is represented by either . or *. The character representing the pixel at the i-th row from the top and the j-th column from the left,... | [{"type": "stdin_stdout", "input": "9 20\n.....***....***.....\n....*...*..*...*....\n...*.....**.....*...\n...*.....*......*...\n....*.....*....*....\n.....**..*...**.....\n.......*..*.*.......\n........**.*........\n.........**.........\n", "output": ".....***....***.....\n.....***....***.....\n....*...*..*...*....\n... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nWitua is a little student from the University of Lviv. He enjoys studying math. Witua knows a lot of famous mathematicians like Eratosthenes, Pythagoras, Fermat, Diophantus, Furko, Gauss and so on. However, his favorite o... | [{"type": "stdin_stdout", "input": "3\n12\n27\n11", "output": "11\n23\n11\n"}, {"type": "stdin_stdout", "input": "3\n12\n27\n16", "output": "11\n23\n13\n"}, {"type": "stdin_stdout", "input": "3\n12\n27\n23", "output": "11\n23\n23\n"}, {"type": "stdin_stdout", "input": "3\n6\n17\n11", "output": "5\n17\n11\n"}, {"type": ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThe heat during the last few days has been really intense. Scientists from all over the Berland study how the temperatures and weather change, and they claim that this summer is abnormally hot. But any scientific claim so... | [{"type": "stdin_stdout", "input": "5 1\n3 10 9 10 6\n", "output": "10.000000000000000\n"}, {"type": "stdin_stdout", "input": "5 2\n11 4 10 2 -1\n", "output": "8.333333333333334\n"}, {"type": "stdin_stdout", "input": "5 2\n11 4 10 1 -1\n", "output": "8.333333333333334\n"}, {"type": "stdin_stdout", "input": "5 2\n11 4 1... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThere is a double-track line (up and down are separate lines and pass each other everywhere). There are 11 stations on this line, including the terminal station, and each station is called by the section number shown in t... | [{"type": "stdin_stdout", "input": "06,04,1,2,1,1,1,1,1,1,1,2\n1,1,1,1,1,4,3,3,3,3,505,0\n10,10,10,10,10,10,10,10,10,10,50,49", "output": "2\n10\n6\n"}, {"type": "stdin_stdout", "input": "06,14,1,1,0,1,1,1,1,1,1,0\n1,1,1,1,1,3,3,3,3,3,40,50\n10,10,10,10,10,10,10,20,10,10,59,40", "output": "10\n7\n7\n"}, {"type": "stdin... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nRead problems statements in Mandarin Chinese and Russian. \n\nYou are given a multiset of N integers. Please find such a nonempty subset of it that the sum of the subset's elements is divisible by N. Otherwise, state tha... | [{"type": "stdin_stdout", "input": "1\n3\n4 4 4", "output": "3\n1 2 3 \n"}, {"type": "stdin_stdout", "input": "1\n3\n2 5 2", "output": "3\n1 2 3 \n"}, {"type": "stdin_stdout", "input": "1\n3\n4 11 3", "output": "2\n1 2 \n"}, {"type": "stdin_stdout", "input": "1\n3\n1 11 3", "output": "2\n1 2 \n"}, {"type": "stdin_s... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nIn AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively.\n\nTwo antennas can communicate d... | [{"type": "stdin_stdout", "input": "6\n13\n29\n48\n105\n100\n", "output": "Yay!\n"}, {"type": "stdin_stdout", "input": "25\n26\n27\n28\n29\n91\n", "output": "Yay!\n"}, {"type": "stdin_stdout", "input": "0\n7\n9\n52\n123\n123\n", "output": "Yay!\n"}, {"type": "stdin_stdout", "input": "15\n18\n26\n35\n36\n18\n", "output"... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nToday at the lesson Vitya learned a very interesting function — mex. Mex of a sequence of numbers is the minimum non-negative number that is not present in the sequence as element. For example, mex([4, 33, 0, 1, 1, 5]) = ... | [{"type": "stdin_stdout", "input": "17 30\n4194 1990 2257 1363 2798 386 3311 3152 1808 1453 3874 4388 1268 3924 3799 1269 968\n11\n8\n8\n8\n8\n8\n8\n8\n8\n8\n8\n8\n8\n8\n8\n8\n8\n8\n8\n8\n8\n8\n0\n8\n8\n8\n8\n8\n8\n8\n", "output": "0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nAs Gerald sets the table, Alexander sends the greeting cards, and Sergey and his twins create an army of clone snowmen, Gennady writes a New Year contest.\n\nThe New Year contest begins at 18:00 (6.00 P.M.) on December 31... | [{"type": "stdin_stdout", "input": "100\n46 353 325 357 342 31 186 689 447 377 484 297 517 92 408 336 389 651 346 464 521 670 353 577 73 477 21 84 659 180 454 386 274 425 274 8 306 131 688 313 342 144 589 277 225 520 442 704 72 376 334 200 92 180 205 602 138 286 668 39 714 447 477 684 491 38 44 186 274 614 127 5 585 56... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou have unlimited number of coins with values $1, 2, \\ldots, n$. You want to select some set of coins having the total value of $S$. \n\nIt is allowed to have multiple coins with the same value in the set. What is the m... | [{"type": "stdin_stdout", "input": "100000 1000000000\n", "output": "10000\n"}, {"type": "stdin_stdout", "input": "1 1000000000\n", "output": "1000000000\n"}, {"type": "stdin_stdout", "input": "1 1010000000\n", "output": "1010000000\n"}, {"type": "stdin_stdout", "input": "1 1452428327\n", "output": "1452428327\n"}, {"t... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nHow many strings can be obtained by applying the following operation on a string S exactly K times: \"choose one lowercase English letter and insert it somewhere\"?\nThe answer can be enormous, so print it modulo (10^9+7)... | [{"type": "stdin_stdout", "input": "37564\nwhydidyoudesertme\n", "output": "318008117\n"}, {"type": "stdin_stdout", "input": "37564\nwhydidzoudesertme", "output": "318008117\n"}, {"type": "stdin_stdout", "input": "37564\nwhxdidzoudesertme", "output": "318008117\n"}, {"type": "stdin_stdout", "input": "37564\nwhxdidzoude... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYour boss decided to save money by purchasing some cut-rate optical character recognition software for scanning in the text of old novels to your database. At first it seems to capture words okay, but you quickly notice t... | [{"input": "\"My \\\"me3ssy\\\" d8ata issues2! Will1 th4ey ever, e3ver be3 so0lved?\"", "output": "[\"My \\\"messy\\\" data issues! Will they ever, ever be solved?\"]", "fn_name": "string_clean"}, {"input": "\"Wh7y can't we3 bu1y the goo0d software3? #cheapskates3\"", "output": "[\"Why can't we buy the good software? #... | code_functional |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nAfter returned from forest, Alyona started reading a book. She noticed strings s and t, lengths of which are n and m respectively. As usual, reading bored Alyona and she decided to pay her attention to strings s and t, wh... | [{"type": "stdin_stdout", "input": "120 362 6\ncaaccbbbabbbcbaacbaccacaaccacaaababccaccaabaccacccbbaaaaababbccbbacccaacabacbaaacabbacbabcccbccbcbbcaabaaabaabcccaabacbb\nabcbbaaccbbcabbcbbcacbabaacbaaacabcbabcabbabccbcaaacaccaaabbcbaacccccbcabacaacabbbcabaabcbbccabacbaaaacbbbbbccabccccbababcbacbbbcbbaabcaabcacbaaaaaccba... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nSnuke is standing on a two-dimensional plane. In one operation, he can move by 1 in the positive x-direction, or move by 1 in the positive y-direction.\nLet us define a function f(r, c) as follows:\n - f(r,c) := (The num... | [{"type": "stdin_stdout", "input": "1000000 1000000 1000000 1000000\n", "output": "192151600\n"}, {"type": "stdin_stdout", "input": "799999 789898 979797 999999\n", "output": "50188529\n"}, {"type": "stdin_stdout", "input": "53245 34234 643323 948342\n", "output": "574642047\n"}, {"type": "stdin_stdout", "input": "3340... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nMislove had an array $a_1$, $a_2$, $\\cdots$, $a_n$ of $n$ positive integers, but he has lost it. He only remembers the following facts about it:\n\n\n\n The number of different numbers in the array is not less than $l$ a... | [{"type": "stdin_stdout", "input": "1000 20 20\n", "output": "1049555 514850815\n"}, {"type": "stdin_stdout", "input": "1000 20 20\n", "output": "1049555 514850815\n"}, {"type": "stdin_stdout", "input": "114 18 19\n", "output": "262239 25427967\n"}, {"type": "stdin_stdout", "input": "879 17 17\n", "output": "131933 566... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nRecently a Golden Circle of Beetlovers was found in Byteland. It is a circle route going through n ⋅ k cities. The cities are numerated from 1 to n ⋅ k, the distance between the neighboring cities is exactly 1 km.\n\nSerg... | [{"type": "stdin_stdout", "input": "98752 97209\n41218 39020\n", "output": "21427641 3199861056\n"}, {"type": "stdin_stdout", "input": "65536 32768\n6427 13573\n", "output": "67108864 1073741824\n"}, {"type": "stdin_stdout", "input": "100000 100000\n10 1\n", "output": "10000000000 10000000000\n"}, {"type": "stdin_stdou... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nPhoenix is playing with a new puzzle, which consists of $n$ identical puzzle pieces. Each puzzle piece is a right isosceles triangle as shown below.\n\nA puzzle piece\n\nThe goal of the puzzle is to create a square using ... | [{"type": "stdin_stdout", "input": "3\n524304\n61032704\n61560720\n", "output": "NO\nNO\nNO\n"}, {"type": "stdin_stdout", "input": "3\n524304\n61032704\n61560720\n", "output": "NO\nNO\nNO\n"}, {"type": "stdin_stdout", "input": "3\n524304\n61032704\n10950212\n", "output": "NO\nNO\nNO\n"}, {"type": "stdin_stdout", "input... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nAlex doesn't like boredom. That's why whenever he gets bored, he comes up with games. One long winter evening he came up with a game and decided to play it.\n\nGiven a sequence a consisting of n integers. The player can m... | [{"type": "stdin_stdout", "input": "100\n4 8 10 1 8 8 8 1 10 3 1 8 6 8 6 1 10 3 3 3 3 7 2 1 1 4 10 1 7 9 8 10 3 8 6 2 2 6 7 6 10 8 9 11 2 3 10 5 3 9 10 5 10 8 8 5 7 8 2 5 3 9 9 2 7 8 1 10 4 9 2 8 10 19 5 8 5 1 7 3 4 5 2 5 9 3 2 5 6 2 3 10 1 5 9 6 10 4 10 8\n", "output": "383\n"}, {"type": "stdin_stdout", "input": "100\... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nA word or a sentence in some language is called a pangram if all the characters of the alphabet of this language appear in it at least once. Pangrams are often used to demonstrate fonts in printing or test the output devi... | [{"type": "stdin_stdout", "input": "100\nmKtsiDRJypUieHIkvJaMFkwaKxcCIbBszZQLIyPpCDCjhNpAnYFngLjRpnKWpKWtGnwoSteeZXuFHWQxxxOpFlNeYTwKocsXuCoa\n", "output": "YES\n"}, {"type": "stdin_stdout", "input": "100\nmKtsiDRJypUieHIkvJaMFkwaKxcCIbBszZQLIyPpCDCjhNpAnYFngLjRpnKWpKWtGnwoSteeZXuFHWQxxxOpFlNeYTwKocsXuCoa\n", "output":... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nSmart Beaver decided to be not only smart, but also a healthy beaver! And so he began to attend physical education classes at school X. In this school, physical education has a very creative teacher. One of his favorite w... | [{"type": "stdin_stdout", "input": "200\n1 2 1 1 2 2 1 1 1 1 1 1 2 1 2 2 2 2 2 1 2 2 1 1 2 2 2 2 2 1 2 1 1 2 2 2 1 2 2 2 1 1 2 2 2 1 2 2 1 2 1 2 2 1 2 2 2 2 2 1 2 2 1 2 1 1 2 2 2 2 2 2 2 1 2 2 2 1 1 2 2 2 2 1 1 2 2 1 1 1 2 2 1 1 2 2 1 1 2 2 2 1 2 2 2 1 2 1 2 2 2 2 2 2 2 1 1 1 2 2 2 2 1 2 2 2 1 1 2 2 2 2 2 1 2 1 2 1 1 1... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nWhere do odds begin, and where do they end? Where does hope emerge, and will they ever break?\n\nGiven an integer sequence a_1, a_2, ..., a_{n} of length n. Decide whether it is possible to divide it into an odd number of... | [{"type": "stdin_stdout", "input": "100\n100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou decide to develop a game with your friends. The title of the game is \"Battle Town\". This is a game with the theme of urban warfare with tanks. As the first step in game development, we decided to develop the followi... | [{"type": "stdin_stdout", "input": "4\n4 6\n*.*..*\n*.....\n...-..\n^.*#..\n10\nSRSSRRUSSR\n2 2\n<.\n..\n12\nDDSRRSUUSLLS\n3 5\n>-#**\n.-*#*\n.-**#\n15\nSSSDRSSSDRSSSUU\n5 5\nv****\n*****\n*****\n*****\n*****\n44\nSSSSDDRSDRSRDSULUURSSSSRRRRDSSSSDDLSDLSDLSSD", "output": "*....*\n......\n..>-..\n...#..\n\n<.\n..\n\n^-#*... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nTwo participants are each given a pair of distinct numbers from 1 to 9 such that there's exactly one number that is present in both pairs. They want to figure out the number that matches by using a communication channel y... | [{"type": "stdin_stdout", "input": "12 12\n1 6 2 6 8 3 6 4 4 8 7 2 7 5 9 4 2 4 9 5 8 5 3 6\n2 8 6 15 2 6 7 4 6 5 6 3 5 8 7 8 7 1 1 9 9 7 7 3\n", "output": "-1\n"}, {"type": "stdin_stdout", "input": "12 12\n7 6 3 8 8 4 4 7 1 9 9 5 7 5 4 9 8 6 2 7 7 3 3 6\n9 1 2 4 9 8 5 3 6 7 3 8 2 7 5 9 6 4 3 1 2 6 1 4\n", "output": "-1... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThere are two rectangles.\nThe lengths of the vertical sides of the first rectangle are A, and the lengths of the horizontal sides of the first rectangle are B.\nThe lengths of the vertical sides of the second rectangle a... | [{"type": "stdin_stdout", "input": "100 600 200 300\n", "output": "60000\n"}, {"type": "stdin_stdout", "input": "100 600 200 300", "output": "60000"}, {"type": "stdin_stdout", "input": "100 600 200 6", "output": "60000\n"}, {"type": "stdin_stdout", "input": "100 480 244 6", "output": "48000\n"}, {"type": "stdin_stdout"... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThere is a grid with N rows and N columns of squares. Let (i,j) be the square at the i-th row from the top and the j-th column from the left.\nThese squares have to be painted in one of the C colors from Color 1 to Color ... | [{"type": "stdin_stdout", "input": "153 17\n0 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1 1 1 1000 1000\n1000 0 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1 1 1 1000 1000\n1000 1000 0 1000 1000 1000 1000 1000 1000 1000 1000 1000 1 1 1 1000 1000\n1000 1000 1000 0 1000 1000 1000 1000 1000 1000 1000 10... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThis is the easy version of the problem. The only difference is that in this version q = 1. You can make hacks only if both versions of the problem are solved.\n\nThere is a process that takes place on arrays a and b of l... | [{"type": "stdin_stdout", "input": "100\n45 21 34 56 15 0 46 59 40 39 78 83 29 77 19 30 60 39 90 64 11 47 10 47 35 79 30 13 21 31 26 68 0 67 52 43 29 94 100 76 16 61 74 34 62 63 4 41 78 31 77 21 90 2 43 70 53 15 53 29 47 87 33 20 23 30 55 57 13 25 19 89 10 17 92 24 47 6 4 91 52 9 11 25 81 14 82 75 46 49 66 62 28 84 88 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nBlackjack is a type of card game played in casinos, where the game is played using cards with numbers from 1 to 13. The score of each card is decided as follows.\n\n* 1 is 1 point or 11 points\n* From 2 to 9, the score is... | [{"type": "stdin_stdout", "input": "1\n3 7 4\n13 7 13\n10 2\n10 1 1\n0", "output": "11\n14\n0\n12\n12\n"}, {"type": "stdin_stdout", "input": "1\n11 3 4\n1 7 8\n2 1\n10 3 1\n0", "output": "11\n17\n16\n13\n14\n"}, {"type": "stdin_stdout", "input": "1\n7 7 3\n11 10 8\n8 1\n10 2 1\n0", "output": "11\n17\n0\n19\n13\n"}, {"t... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nA new innovative ticketing systems for public transport is introduced in Bytesburg. Now there is a single travel card for all transport. To make a trip a passenger scan his card and then he is charged according to the far... | [{"type": "stdin_stdout", "input": "10\n13\n45\n46\n60\n103\n115\n126\n150\n256\n516\n", "output": "20\n20\n10\n0\n20\n0\n0\n20\n20\n10\n"}, {"type": "stdin_stdout", "input": "7\n000\n138\n279\n308\n381\n718\n1185\n", "output": "20\n20\n20\n20\n20\n20\n0\n"}, {"type": "stdin_stdout", "input": "7\n100\n138\n279\n308\n39... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nLittle Vasya's uncle is a postman. The post offices are located on one circular road. Besides, each post office has its own gas station located next to it. Petya's uncle works as follows: in the morning he should leave th... | [{"type": "stdin_stdout", "input": "20\n10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10\n10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10\n", "output": "20\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \n"}, {"type": "stdin_stdout", "input": "20\n31 16 20 30 19 35 8 11 20 45 10 26 21 39 29 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nCreate a function that takes a string and an integer (`n`).\n\nThe function should return a string that repeats the input string `n` number of times.\n\nIf anything other than a string is passed in you should return `\"No... | [{"input": "\"243624\"\n22", "output": "[\"243624243624243624243624243624243624243624243624243624243624243624243624243624243624243624243624243624243624243624243624243624243624\"]", "fn_name": "repeat_it"}, {"input": "\"Hello\"\n11", "output": "[\"HelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHello\"]", "fn_name": "... | code_functional |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nLittle Petya loves presents. His mum bought him two strings of the same size for his birthday. The strings consist of uppercase and lowercase Latin letters. Now Petya wants to compare those two strings lexicographically. ... | [{"type": "stdin_stdout", "input": "AanbDfbZNlUodtBQlvPMyomStKNhgvSGhSbTdabxGFGGXCdpsJDimsAykKjfBDPMulkhBMsqLmVKLDoesHZsRAEEdEzqigueXInY\ncwfyjoppiJNrjrOLNZkqcGimrpTsiyFBVgMWEPXsMrxLJDDbtYzerXiFGuLBcQYitLdqhGHBpdjRnkUegmnwhGHAKXGyFtscWDSI\n", "output": "-1\n"}, {"type": "stdin_stdout", "input": "sSvpcITJAwghVfJaLKBmyjO... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\n'Jeopardy!' is an intellectual game where players answer questions and earn points. Company Q conducts a simplified 'Jeopardy!' tournament among the best IT companies. By a lucky coincidence, the old rivals made it to the... | [{"type": "stdin_stdout", "input": "50 30\n6015200 8643865 4116771 6555197 304415 8580071 8414182 3089212 5684567 7595481 1272699 7127763 3309618 1410297 4349070 2027355 136702 6863504 1800751 5585842 5924142 5188269 4805201 9313209 8941399 5137060 4983630 8467668 1646260 7804684 8646497 7067118 6896291 9109696 6197162... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou are given a text consisting of $n$ space-separated words. There is exactly one space character between any pair of adjacent words. There are no spaces before the first word and no spaces after the last word. The lengt... | [{"type": "stdin_stdout", "input": "250\nf r s d b f f k d e k v m b t k k j t t a o m m s n d w l v g e k x d w k v a j h c a g x s d e t z z w q z d h n r i k b z k u s q l k c v o d o w w c y i a q v r i g i m l b x z h t a i j t h q u e v j o h w m o v k g r r x j a c m z z i s i r a p p i i l e i g m f f f y v k m... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nPolycarp was gifted an array $a$ of length $n$. Polycarp considers an array beautiful if there exists a number $C$, such that each number in the array occurs either zero or $C$ times. Polycarp wants to remove some element... | [{"type": "stdin_stdout", "input": "1\n36\n1 2 2 3 3 11 14 4 4 10 5 5 6 8 6 10 7 2 7 7 13 8 8 15 9 9 9 9 10 17 10 10 12 12 12 19\n", "output": "16\n"}, {"type": "stdin_stdout", "input": "1\n36\n1 2 2 3 2 38 14 4 1 10 5 2 2 8 6 6 16 4 7 7 13 8 5 9 9 2 2 9 10 17 10 10 24 12 29 37\n", "output": "17\n"}, {"type": "stdin_st... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou have a string $s$ consisting of $n$ characters. Each character is either 0 or 1.\n\nYou can perform operations on the string. Each operation consists of two steps: select an integer $i$ from $1$ to the length of the ... | [{"type": "stdin_stdout", "input": "5\n6\n111010\n1\n0\n1\n1\n2\n11\n6\n101010\n", "output": "3\n1\n1\n1\n3\n"}, {"type": "stdin_stdout", "input": "5\n6\n111010\n1\n1\n1\n1\n2\n11\n6\n101010\n", "output": "3\n1\n1\n1\n3\n"}, {"type": "stdin_stdout", "input": "5\n6\n111000\n1\n1\n1\n1\n2\n11\n6\n101010\n", "output": "2\... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nDraw a rectangle which has a height of H cm and a width of W cm. Draw a 1-cm square by single '#'.\n\nConstraints\n\n* 1 ≤ H ≤ 300\n* 1 ≤ W ≤ 300\n\nInput\n\nThe input consists of multiple datasets. Each dataset consists ... | [{"type": "stdin_stdout", "input": "8 2\n5 22\n4 -2\n0 0", "output": "##\n##\n##\n##\n##\n##\n##\n##\n\n######################\n######################\n######################\n######################\n######################\n\n\n\n\n\n\n"}, {"type": "stdin_stdout", "input": "3 4\n15 6\n2 4\n0 0", "output": "####\n####\n... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nPolycarp has an integer $n$ that doesn't contain the digit 0. He can do the following operation with his number several (possibly zero) times:\n\nReverse the prefix of length $l$ (in other words, $l$ leftmost digits) of $... | [{"type": "stdin_stdout", "input": "4\n3876\n387\n4489\n3\n", "output": "0\n2\n1\n-1\n"}, {"type": "stdin_stdout", "input": "1\n77771449\n", "output": "2\n"}, {"type": "stdin_stdout", "input": "1\n841419\n", "output": "1\n"}, {"type": "stdin_stdout", "input": "1\n21328\n", "output": "0\n"}, {"type": "stdin_stdout", "in... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou are given n sets of integers. The i-th set contains k_i integers.\n\nTwo sets are called similar if they share at least two common elements, i. e. there exist two integers x and y such that x ≠ y, and they both belong... | [{"type": "stdin_stdout", "input": "10\n2\n5 190511 174892 60413 161099 192095\n2 190511 174892\n2\n2 25224 33915\n2 33915 25224\n2\n2 102801 58269\n2 102801 58269\n2\n2 73575 66574\n2 73575 66574\n2\n2 191259 156476\n2 191259 156476\n2\n2 94903 80911\n2 94903 80911\n2\n2 134838 86551\n2 134838 86551\n2\n2 64258 10995\... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\n$n$ boys and $m$ girls came to the party. Each boy presented each girl some integer number of sweets (possibly zero). All boys are numbered with integers from $1$ to $n$ and all girls are numbered with integers from $1$ t... | [{"type": "stdin_stdout", "input": "2 2\n100000000 100000000\n100000000 100000000\n", "output": "400000000\n"}, {"type": "stdin_stdout", "input": "2 2\n000000000 100000000\n100000000 100000000\n", "output": "200000000\n"}, {"type": "stdin_stdout", "input": "2 2\n100000000 100000000\n100000000 100010000\n", "output": "4... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nDaniel is organizing a football tournament. He has come up with the following tournament format: In the first several (possibly zero) stages, while the number of teams is even, they split in pairs and play one game for ... | [{"type": "stdin_stdout", "input": "288230376151711743\n", "output": "144115188344291328\n288230376151711744\n"}, {"type": "stdin_stdout", "input": "288230376151711743\n", "output": "144115188344291328\n288230376151711744\n"}, {"type": "stdin_stdout", "input": "72057594037927935\n", "output": "36028797153181696\n720575... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\n## Euler's Method\n\nWe want to calculate the shape of an unknown curve which starts at a given point \nwith a given slope. This curve satisfies an ordinary differential equation (ODE):\n\n```math\n\\frac{dy}{dx} = f(x, y... | [{"input": "1000", "output": "[0.000251]", "fn_name": "ex_euler"}, {"input": "1200", "output": "[0.000209]", "fn_name": "ex_euler"}, {"input": "1500", "output": "[0.000167]", "fn_name": "ex_euler"}, {"input": "2000", "output": "[0.000125]", "fn_name": "ex_euler"}, {"input": "100", "output": "[0.002524]", "fn_name": "ex... | code_functional |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nCatherine has a deck of n cards, each of which is either red, green, or blue. As long as there are at least two cards left, she can do one of two actions: take any two (not necessarily adjacent) cards with different col... | [{"type": "stdin_stdout", "input": "200\nBBRGRRBBRGGGBGBGBGRRGRGRGRBGRGRRBBGRGBGRRGRRRGGBBRGBGBGBRBBBBBBBGGBRGGRRRGGRGBGBGGBRRRRBRRRBRBBGGBGBRGRGBBBBGGBGBBBGBGRRBRRRGBGGBBBRBGRBRRGGGRRGBBBGBGRRRRRRGGRGRGBBBRGGGBGGGBRBBRRGBGRGRBRRRBRBGRGGBRBB\n", "output": "BGR\n"}, {"type": "stdin_stdout", "input": "200\nRGRGRRRRRGRRGR... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nA palindrome is a word, phrase, number, or other sequence of characters which reads the same backward as forward. Examples of numerical palindromes are: \n\n* 232\n* 110011\n* 54322345\n\nComplete the function to test if ... | [{"input": "\"Hello world!\"", "output": "[\"Not valid\"]", "fn_name": "palindrome"}, {"input": "\"357665\"", "output": "[\"Not valid\"]", "fn_name": "palindrome"}, {"input": "\"ololo\"", "output": "[\"Not valid\"]", "fn_name": "palindrome"}, {"input": "-42", "output": "[\"Not valid\"]", "fn_name": "palindrome"}, {"inp... | code_functional |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nAfter several latest reforms many tourists are planning to visit Berland, and Berland people understood that it's an opportunity to earn money and changed their jobs to attract tourists. Petya, for example, left the IT co... | [{"type": "stdin_stdout", "input": "70 203\n1 105\n1 105\n1 105\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 300\n3 3... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nOne Martian boy called Zorg wants to present a string of beads to his friend from the Earth — Masha. He knows that Masha likes two colours: blue and red, — and right in the shop where he has come, there is a variety of ad... | [{"type": "stdin_stdout", "input": "50 161245081749292\n", "output": "00101100010110000001101000110001001101000011000011\n"}, {"type": "stdin_stdout", "input": "50 250144743882708\n", "output": "01010101010010111011000010110101001100000110000101\n"}, {"type": "stdin_stdout", "input": "50 264823400156610\n", "output": "... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nChingel is practicing for a rowing competition to be held on this saturday. He is trying his best to win this tournament for which he needs to figure out how much time it takes to cover a certain distance. \n\n**Input**\n... | [{"input": "54\n28\n\"Downstream 3\"", "output": "[1.74]", "fn_name": "time"}, {"input": "60\n45\n\"Downstream 15\"", "output": "[1]", "fn_name": "time"}, {"input": "24\n10\n\"Downstream 2\"", "output": "[2]", "fn_name": "time"}, {"input": "60\n45\n\"Upstream 15\"", "output": "[2]", "fn_name": "time"}, {"input": "24\n1... | code_functional |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nIn this kata we want to convert a string into an integer. The strings simply represent the numbers in words.\n\nExamples:\n\n* \"one\" => 1\n* \"twenty\" => 20\n* \"two hundred forty-six\" => 246\n* \"seven hundred eighty... | [{"input": "\"eight hundred eighty-eight thousand eight hundred and eighty-eight\"", "output": "[888888]", "fn_name": "parse_int"}, {"input": "\"six hundred sixty-six thousand six hundred sixty-six\"", "output": "[666666]", "fn_name": "parse_int"}, {"input": "\"ninety-nine thousand nine hundred and ninety-nine\"", "out... | code_functional |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nExample\n\nInput\n\n7\n>>\n\n\nOutput\n\n7\n\nThe input will be stdin and you should print your solution to stdout\n\n\nNow solve the problem and return the code.\n\nWrite Python code to solve this problem. Your program s... | [{"type": "stdin_stdout", "input": "7\n>=", "output": "7\n"}, {"type": "stdin_stdout", "input": "7\n=>", "output": "7\n"}, {"type": "stdin_stdout", "input": "7\n?=", "output": "7\n"}, {"type": "stdin_stdout", "input": "7\n=?", "output": "7\n"}, {"type": "stdin_stdout", "input": "7\n<?", "output": "7\n"}, {"type": "stdi... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYaroslav, Andrey and Roman can play cubes for hours and hours. But the game is for three, so when Roman doesn't show up, Yaroslav and Andrey play another game. \n\nRoman leaves a word for each of them. Each word consists ... | [{"type": "stdin_stdout", "input": "10\n00000000000111111110\n00000000011111111111\n", "output": "Second\n"}, {"type": "stdin_stdout", "input": "10\n00010000000111111110\n00000000011111111111\n", "output": "Second\n"}, {"type": "stdin_stdout", "input": "10\n00000000000111111111\n00000000011111111111\n", "output": "Draw... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nOn the eve of Teddy Day Chotu decided to buy a teddy for his girlfriend Choti. He has N coins each having distinct value from 1 to N. Now after collecting all the coins he went to buy a Teddy. \n\nNow the shopkeeper Motu ... | [{"type": "stdin_stdout", "input": "100\n12960000 83980806479913\n81 3290\n92236816 4253815159027246\n47458321 1126146139798662\n456976 104413760704\n45212176 1022070451933572\n12117361 73415224860826\n1185921 703204902083\n1679616 1410555793583\n5308416 14089642868658\n57289761 1641058386363413\n28561 407879609\n25411... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nOn a random day, Neko found $n$ treasure chests and $m$ keys. The $i$-th chest has an integer $a_i$ written on it and the $j$-th key has an integer $b_j$ on it. Neko knows those chests contain the powerful mysterious gree... | [{"type": "stdin_stdout", "input": "10 10\n522312461 931001459 598654597 488228616 544064902 21923894 329635457 980089248 988262691 654502493\n967529230 543358150 835120075 128123793 809901567 613170206 152157661 479980560 859252956 318029856\n", "output": "10\n"}, {"type": "stdin_stdout", "input": "10 10\n522312461 93... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nHannibal is on a mission. He has to shoot a criminal. Hannibal was on the point (0, 0) and the criminal is on the point (Xc, Yc). But there is a wall between the point (X1, Y1) and (X2, Y2). \n\nYou have to tell whether H... | [{"type": "stdin_stdout", "input": "100\n941445 -585976 643923 15605 743170 321702\n-777421 -170401 -701038 -365745 576901 -633716\n15692 13501 29844 -14215 56608 -110864\n312993 542837 225090 264308 375410 -454875\n690025 414391 -67304 -600306 -973390 -583316\n281348 664922 -215695 -724566 306706 674447\n-671140 72837... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nPolycarpus just has been out of luck lately! As soon as he found a job in the \"Binary Cat\" cafe, the club got burgled. All ice-cream was stolen.\n\nOn the burglary night Polycarpus kept a careful record of all club visi... | [{"type": "stdin_stdout", "input": "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nA class of students wrote a multiple-choice test.\n\nThere are $n$ students in the class. The test had $m$ questions, each of them had $5$ possible answers (A, B, C, D or E). There is exactly one correct answer for each q... | [{"type": "stdin_stdout", "input": "10 10\nCBBBBBBBBB\nABBBBEBBBB\nBDBBBBBBBB\nBCBBBBBBBB\nBABBBBBEBB\nEBBBBBBBBB\nBBBCBDCBBB\nBEBBEBBBBB\nBBBBBBBBBB\nBBBDBBBACB\n840 678 490 153 1118 84 256 405 468 856\n", "output": "45122\n"}, {"type": "stdin_stdout", "input": "10 10\nCBBBBBBBBB\nABBBBEBBBB\nBDBBBBBBBB\nBBBBBBBBBB\nB... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nA championship is held in Berland, in which $n$ players participate. The player with the number $i$ has $a_i$ ($a_i \\ge 1$) tokens.\n\nThe championship consists of $n-1$ games, which are played according to the following... | [{"type": "stdin_stdout", "input": "2\n4\n1 2 4 3\n5\n1 1 1 1 1\n", "output": "\n3\n2 3 4 \n5\n1 2 3 4 5 \n"}, {"type": "stdin_stdout", "input": "2\n4\n1 2 4 3\n5\n1 1 1 1 1\n", "output": "3\n2 3 4 \n5\n1 2 3 4 5 \n"}, {"type": "stdin_stdout", "input": "2\n4\n2 2 4 3\n5\n1 2 1 1 1\n", "output": "4\n1 2 3 4\n5\n1 2 3 4 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nAfter a hard quarter in the office you decide to get some rest on a vacation. So you will book a flight for you and your girlfriend and try to leave all the mess behind you.\n\nYou will need a rental car in order for you ... | [{"input": "10", "output": "[350]", "fn_name": "rental_car_cost"}, {"input": "3", "output": "[100]", "fn_name": "rental_car_cost"}, {"input": "4", "output": "[140]", "fn_name": "rental_car_cost"}, {"input": "5", "output": "[180]", "fn_name": "rental_car_cost"}, {"input": "6", "output": "[220]", "fn_name": "rental_car_c... | code_functional |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nIn a far away kingdom lived the King, the Prince, the Shoemaker, the Dressmaker and many other citizens. They lived happily until great trouble came into the Kingdom. The ACMers settled there.\n\nMost damage those strange... | [{"type": "stdin_stdout", "input": "7002108534951820589946967018226114921984364117669853212254634761258884835434844673935047882480101006606512119541798298905598015607366335061012709906661245805358900665571472645463994925687210711492820804158354236327017974683658305043146543214454877759341394.202118562635032813887482826... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou are given three multisets of pairs of colored sticks: $R$ pairs of red sticks, the first pair has length $r_1$, the second pair has length $r_2$, $\\dots$, the $R$-th pair has length $r_R$; $G$ pairs of green stick... | [{"type": "stdin_stdout", "input": "16 26 8\n13 13 0 24 56 74 72 4 172 98 43 4 6 30 82 12\n31 6 76 15 88 37 22 64 44 55 18 67 12 65 10 24 83 23 27 101 198 2 58 59 34 38\n31 61 138 21 67 86 63 6\n", "output": "101183\n"}, {"type": "stdin_stdout", "input": "16 26 8\n13 13 0 24 56 74 88 4 172 98 43 4 6 30 82 12\n31 6 76 1... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nTo celebrate the opening of the Winter Computer School the organizers decided to buy in n liters of cola. However, an unexpected difficulty occurred in the shop: it turned out that cola is sold in bottles 0.5, 1 and 2 lit... | [{"type": "stdin_stdout", "input": "10000 5000 5000 5000\n", "output": "6253751\n"}, {"type": "stdin_stdout", "input": "10000 4534 2345 4231\n", "output": "2069003\n"}, {"type": "stdin_stdout", "input": "8765 2432 2789 4993\n", "output": "1697715\n"}, {"type": "stdin_stdout", "input": "8987 4000 2534 4534\n", "output":... | code_stdio |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.