messages listlengths 1 1 | ground_truth stringlengths 88 726k | dataset stringclasses 1
value |
|---|---|---|
[
{
"content": "Solve the following coding problem using the programming language python:\n\nOkabe and Super Hacker Daru are stacking and removing boxes. There are n boxes numbered from 1 to n. Initially there are no boxes on the stack.\n\nOkabe, being a control freak, gives Daru 2n commands: n of which are to ad... | [{"type": "stdin_stdout", "input": "19\nadd 1\nadd 2\nadd 3\nadd 4\nadd 5\nadd 6\nadd 7\nadd 8\nadd 9\nadd 10\nadd 11\nadd 12\nadd 13\nadd 14\nadd 15\nadd 16\nadd 17\nadd 18\nadd 19\nremove\nremove\nremove\nremove\nremove\nremove\nremove\nremove\nremove\nremove\nremove\nremove\nremove\nremove\nremove\nremove\nremove\nr... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nAfter the fourth season Sherlock and Moriary have realized the whole foolishness of the battle between them and decided to continue their competitions in peaceful game of Credit Cards.\n\nRules of this game are simple: ea... | [{"type": "stdin_stdout", "input": "200\n89017372169770060638462517044634884577600285180365791227828841983192945639410766634962149214165390392679430585962408483864914959904870801002680423351144765728677610509881245693518626747873607530273392\n34804385048475325130258121398275821439066233953856051421626677848150660724595... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou have decided to watch the best moments of some movie. There are two buttons on your player: Watch the current minute of the movie. By pressing this button, you watch the current minute of the movie and the player au... | [{"type": "stdin_stdout", "input": "18 111\n1449 2156\n3497 4784\n7775 14575\n23857 24593\n29211 30739\n31932 33447\n35902 36426\n36991 38506\n39679 47202\n48772 60016\n60522 61868\n63340 63982\n68417 78537\n79445 86568\n86918 87940\n90081 90310\n90629 94325\n95728 96263\n", "output": "58967\n"}, {"type": "stdin_stdout... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThis is the easy version of the problem. The difference between versions is the constraints on $n$ and $a_i$. You can make hacks only if all versions of the problem are solved.\n\nFirst, Aoi came up with the following ide... | [{"type": "stdin_stdout", "input": "123 79\n49 100 128 149 148 22 89 81 46 142 119 70 22 134 134 80 69 145 144 33 28 127 70 27 91 94 98 29 153 53 102 138 113 123 135 143 87 77 84 27 106 8 156 27 97 150 53 31 126 135 40 79 150 79 69 7 3 49 84 14 24 39 13 103 54 98 122 95 71 157 79 114 136 101 38 25 150 103 150 79 109 12... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nCucumber boy is fan of Kyubeat, a famous music game.\n\nKyubeat has 16 panels for playing arranged in 4 × 4 table. When a panel lights up, he has to press that panel.\n\nEach panel has a timing to press (the preffered tim... | [{"type": "stdin_stdout", "input": "1\n.135\n1247\n3468\n5789\n", "output": "YES\n"}, {"type": "stdin_stdout", "input": "5\n..1.\n1111\n..1.\n..1.\n", "output": "YES\n"}, {"type": "stdin_stdout", "input": "1\n....\n....\n....\n....\n", "output": "YES\n"}, {"type": "stdin_stdout", "input": "1\n6981\n.527\n4163\n2345\n",... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nTo become the king of Codeforces, Kuroni has to solve the following problem.\n\nHe is given $n$ numbers $a_1, a_2, \\dots, a_n$. Help Kuroni to calculate $\\prod_{1\\le i<j\\le n} |a_i - a_j|$. As result can be very big, ... | [{"type": "stdin_stdout", "input": "140 149\n124 109 136 123 83 121 53 37 111 105 75 146 99 87 51 45 131 83 18 76 99 29 115 96 16 89 88 69 81 100 120 90 141 48 83 97 26 27 51 94 53 25 32 27 4 139 81 140 137 95 94 89 116 32 85 91 68 12 107 10 124 96 110 32 135 126 2 146 79 14 132 136 110 16 130 98 109 105 2 18 52 27 134... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou got a job as a marketer in a pet shop, and your current task is to boost sales of cat food. One of the strategies is to sell cans of food in packs with discounts. \n\nSuppose you decided to sell packs with $a$ cans in... | [{"type": "stdin_stdout", "input": "10\n335544320 671088640\n335544322 671088639\n335544321 671088639\n335544325 671088637\n335544319 671088640\n335544319 671088641\n335544319 671088639\n335544318 671088639\n335544317 671088637\n335544319 671088643\n", "output": "NO\nYES\nYES\nYES\nNO\nNO\nNO\nNO\nNO\nNO\n"}, {"type": ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nProfessor Dumbledore is helping Harry destroy the Horcruxes. He went to Gaunt Shack as he suspected a Horcrux to be present there. He saw Marvolo Gaunt's Ring and identified it as a Horcrux. Although he destroyed it, he i... | [{"type": "stdin_stdout", "input": "43 959134961 -868367850 142426380\n921743429 63959718 -797293233 122041422 -407576197 700139744 299598010 168207043 362252658 591926075 941946099 812263640 -76679927 -824267725 89529990 -73303355 83596189 -982699817 -235197848 654773327 125211479 -497091570 -2301804 203486596 -126652... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nToday, Wet Shark is given n bishops on a 1000 by 1000 grid. Both rows and columns of the grid are numbered from 1 to 1000. Rows are numbered from top to bottom, while columns are numbered from left to right.\n\nWet Shark ... | [{"type": "stdin_stdout", "input": "10\n646 171\n816 449\n375 934\n950 299\n702 232\n657 81\n885 306\n660 304\n369 371\n798 657\n", "output": "0\n"}, {"type": "stdin_stdout", "input": "10\n515 563\n451 713\n537 709\n343 819\n855 779\n457 60\n650 359\n631 42\n788 639\n710 709\n", "output": "0\n"}, {"type": "stdin_stdout... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYour search for Heidi is over – you finally found her at a library, dressed up as a human. In fact, she has spent so much time there that she now runs the place! Her job is to buy books and keep them at the library so tha... | [{"type": "stdin_stdout", "input": "80 4\n71 49 41 21 72 71 37 14 51 59 73 11 70 15 36 46 32 57 58 15 72 67 16 75 70 11 67 3 40 36 2 9 63 68 32 22 63 52 67 55 35 19 72 59 22 19 44 55 59 74 4 34 53 3 22 57 32 27 78 12 71 4 26 15 43 21 79 10 67 39 34 74 38 26 31 78 2 78 69 42\n", "output": "62\n"}, {"type": "stdin_stdout... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nA classroom in a school has six rows with 3 desks in each row. Two people can use the same desk: one sitting on the left and one sitting on the right. \n\nSome places are already occupied, and some places are vacant. Pety... | [{"type": "stdin_stdout", "input": "..-**-..\n..-**-..\n..-..-..\n..-..-..\n..-..-..\n..-..-..\n", "output": "..-**-..\n..-**-..\n..-..-..\n..-P.-..\n..-..-..\n..-..-..\n"}, {"type": "stdin_stdout", "input": "**-**-**\n**-**-**\n..-**-.*\n**-**-**\n..-..-..\n..-**-..\n", "output": "**-**-**\n**-**-**\n..-**-.*\n**-**-*... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou are given a sequence $a_1, a_2, \\dots, a_n$ consisting of $n$ integers.\n\nYou may perform the following operation on this sequence: choose any element and either increase or decrease it by one.\n\nCalculate the mini... | [{"type": "stdin_stdout", "input": "100 1186\n619 240 80 547 446 128 43 285 725 220 56 690 770 431 777 5 41 549 405 203 2 477 919 481 453 787 680 326 318 241 942 497 504 324 598 925 346 628 851 38 355 493 748 685 901 63 698 676 154 162 313 964 455 617 381 41 479 746 83 253 164 907 950 918 264 307 980 743 257 322 845 41... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nWe have a tree with N vertices numbered 1 to N.\nThe i-th edge in this tree connects Vertex a_i and Vertex b_i.\n\nConsider painting each of these edges white or black. There are 2^{N-1} such ways to paint the edges. Amon... | [{"type": "stdin_stdout", "input": "50\n1 2\n2 3\n3 4\n4 5\n5 6\n6 7\n7 8\n8 9\n9 10\n10 11\n11 12\n12 13\n13 14\n14 15\n15 16\n16 17\n17 18\n18 19\n19 20\n20 21\n21 22\n22 23\n23 24\n24 25\n25 26\n26 27\n27 28\n28 29\n29 30\n30 31\n31 32\n32 33\n33 34\n34 35\n35 36\n36 37\n37 38\n38 39\n39 40\n40 41\n41 42\n42 43\n43 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThere are N cities numbered 1 to N, connected by M railroads.\nYou are now at City 1, with 10^{100} gold coins and S silver coins in your pocket.\nThe i-th railroad connects City U_i and City V_i bidirectionally, and a on... | [{"type": "stdin_stdout", "input": "50 98 49\n12 13 38 966876944\n35 47 5 419053521\n20 23 39 513566946\n43 45 31 973756616\n11 39 45 339701654\n8 12 34 119183522\n5 16 50 644322683\n37 44 42 476275226\n3 4 41 832102486\n29 45 1 974869661\n6 21 32 929876961\n23 33 18 660381903\n12 19 26 747314758\n9 45 22 109205766\n43... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nGiven are a sequence of N positive integers A_1, A_2, \\ldots, A_N and another positive integer S.\n\nFor a non-empty subset T of the set \\{1, 2, \\ldots , N \\}, let us define f(T) as follows:\n\n - f(T) is the number o... | [{"type": "stdin_stdout", "input": "2896 1518\n498 2010 1723 2089 76 1224 1972 612 465 880 283 143 1538 372 841 1998 292 2096 423 728 2199 807 2325 1185 1664 2349 531 40 1039 2006 2179 1842 2954 2847 2540 1045 2697 2112 1625 2062 631 2136 544 2420 1199 2592 2820 802 1157 383 1164 617 1513 2876 2625 947 1720 1640 1772 2... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThere are N boxes arranged in a row from left to right. The i-th box from the left contains A_i candies.\nYou will take out the candies from some consecutive boxes and distribute them evenly to M children.\nSuch being the... | [{"type": "stdin_stdout", "input": "43535 7\n5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1 5 1 1... | 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": "99999999 20\n3 100000000\n14 100000000\n22 100000000\n24 100000000\n31 100000000\n41 100000000\n46 100000000\n84 100000000\n94 100000000\n98 100000000\n99999912 100000000\n99999915 100000000\n99999916 100000000\n99999923 100000000\n99999935 100000000\n99999937 100000000\n99999954 100... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nSaMer has written the greatest test case of all time for one of his problems. For a given array of integers, the problem asks to find the minimum number of groups the array can be divided into, such that the product of an... | [{"type": "stdin_stdout", "input": "80\n8861 -8846 -3257 8263 -8045 4549 9626 -8599 5755 -3559 5813 -7411 9151 -1847 2441 4201 2381 4651 -6571 199 -6737 -6333 -9433 -4967 9041 -9319 6801 5813 -2731 -8599 7681 -1303 -7333 6067 -1847 -6333 6047 -7907 -7333 8677 -937 829 2441 -5702 -8045 -3037 -4882 -7703 9001 -5702 -2039... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nA super computer has been built in the Turtle Academy of Sciences. The computer consists of n·m·k CPUs. The architecture was the paralellepiped of size n × m × k, split into 1 × 1 × 1 cells, each cell contains exactly one... | [{"type": "stdin_stdout", "input": "100 1 1\n0\n\n1\n\n1\n\n1\n\n0\n\n0\n\n0\n\n1\n\n1\n\n0\n\n0\n\n1\n\n0\n\n1\n\n1\n\n1\n\n1\n\n0\n\n0\n\n1\n\n1\n\n1\n\n0\n\n0\n\n0\n\n0\n\n0\n\n1\n\n1\n\n0\n\n1\n\n1\n\n1\n\n0\n\n1\n\n0\n\n0\n\n1\n\n0\n\n1\n\n1\n\n0\n\n0\n\n0\n\n0\n\n1\n\n0\n\n1\n\n0\n\n0\n\n1\n\n1\n\n1\n\n0\n\n1\n\n... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nGiven two integers $n$ and $x$, construct an array that satisfies the following conditions: for any element $a_i$ in the array, $1 \\le a_i<2^n$; there is no non-empty subsegment with bitwise XOR equal to $0$ or $x$, ... | [{"type": "stdin_stdout", "input": "7 86920\n", "output": "127\n1 3 1 7 1 3 1 15 1 3 1 7 1 3 1 31 1 3 1 7 1 3 1 15 1 3 1 7 1 3 1 63 1 3 1 7 1 3 1 15 1 3 1 7 1 3 1 31 1 3 1 7 1 3 1 15 1 3 1 7 1 3 1 127 1 3 1 7 1 3 1 15 1 3 1 7 1 3 1 31 1 3 1 7 1 3 1 15 1 3 1 7 1 3 1 63 1 3 1 7 1 3 1 15 1 3 1 7 1 3 1 31 1 3 1 7 1 3 1 15 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nAnton likes to play chess. Also he likes to do programming. No wonder that he decided to attend chess classes and programming classes.\n\nAnton has n variants when he will attend chess classes, i-th variant is given by a ... | [{"type": "stdin_stdout", "input": "5\n999612104 999858319\n68705639 989393889\n297814302 732073321\n577979321 991069087\n601930055 838139173\n14\n109756300 291701768\n2296272 497162877\n3869085 255543683\n662920943 820993688\n54005870 912134860\n1052 70512\n477043210 648640912\n233115268 920170255\n575163323 756904529... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nSasha is a very happy guy, that's why he is always on the move. There are $n$ cities in the country where Sasha lives. They are all located on one straight line, and for convenience, they are numbered from $1$ to $n$ in i... | [{"type": "stdin_stdout", "input": "100 100\n", "output": "99\n"}, {"type": "stdin_stdout", "input": "91 14\n", "output": "3016\n"}, {"type": "stdin_stdout", "input": "84 15\n", "output": "2429\n"}, {"type": "stdin_stdout", "input": "100 1\n", "output": "4950\n"}, {"type": "stdin_stdout", "input": "100 3\n", "output": ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nOnce upon a time Petya and Gena gathered after another programming competition and decided to play some game. As they consider most modern games to be boring, they always try to invent their own games. They have only stic... | [{"type": "stdin_stdout", "input": "110\n-256 -149 -136 -33 -253 -141 -170 -253 0 -107 -141 -236 -65 -158 -84 -180 -97 -97 -223 -44 -232 -255 -108 -25 -49 -48 -212 -3 -232 -172 -231 -158 -23 -206 -198 -55 -36 -11 -169 -94 -190 -115 -116 -231 -155 -201 -155 -103 -242 -119 -136 -8 -2 -11 -69 -250 -51 -129 -155 -216 -107 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nDevu is a renowned classical singer. He is invited to many big functions/festivals. Recently he was invited to \"All World Classical Singing Festival\". Other than Devu, comedian Churu was also invited.\n\nDevu has provid... | [{"type": "stdin_stdout", "input": "100 6000\n41 31 23 17 24 78 26 96 93 48 46 2 49 33 35 9 73 100 34 48 83 36 33 69 43 24 3 74 8 81 27 33 94 38 77 9 76 90 62 90 21 67 22 22 12 2 17 27 61 18 72 85 59 65 71 38 90 75 74 66 60 47 58 50 90 95 75 10 5 100 97 29 83 88 65 26 93 90 22 98 36 55 70 38 50 92 88 72 99 96 25 14 74 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThe Central Company has an office with a sophisticated security system. There are $10^6$ employees, numbered from $1$ to $10^6$.\n\nThe security system logs entrances and departures. The entrance of the $i$-th employee is... | [{"type": "stdin_stdout", "input": "20\n384933 946658 407136 242739 -242739 -407136 -946658 -384933 384933 -384933 319281 407136 804861 -407136 415987 946658 -946658 -415987 -804861 -319281\n", "output": "3\n8 2 10\n"}, {"type": "stdin_stdout", "input": "8\n1 -1 1 2 -1 -2 3 -3\n", "output": "3\n2 4 2\n"}, {"type": "std... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThe only difference between easy and hard versions is constraints.\n\nThe BerTV channel every day broadcasts one episode of one of the $k$ TV shows. You know the schedule for the next $n$ days: a sequence of integers $a_1... | [{"type": "stdin_stdout", "input": "30\n4 4 1\n3 3 1 2\n4 4 1\n4 1 4 1\n1 1 1\n1\n3 2 1\n2 1 2\n4 4 2\n3 2 2 2\n4 2 4\n1 2 2 2\n1 4 1\n4\n2 3 1\n2 3\n2 2 1\n2 2\n4 4 2\n1 2 4 2\n4 4 1\n2 4 4 3\n4 3 1\n1 3 1 3\n1 1 1\n1\n2 2 2\n2 1\n2 4 1\n1 4\n2 4 1\n3 4\n1 2 1\n1\n2 4 2\n2 1\n3 1 2\n1 1 1\n2 4 1\n1 4\n2 3 1\n3 3\n4 2 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nVasya follows a basketball game and marks the distances from which each team makes a throw. He knows that each successful throw has value of either 2 or 3 points. A throw is worth 2 points if the distance it was made from... | [{"type": "stdin_stdout", "input": "18\n450 3726 12063 27630 29689 30626 33937 35015 45951 46217 53004 59541 75551 75836 78996 81297 93876 96211\n47\n3393 5779 6596 7935 9549 10330 11145 13121 14801 15578 24104 24125 25871 31280 35036 38969 40077 41342 42708 46033 47491 48451 49152 51905 55002 55689 56565 57901 59481 6... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou are given a string $s$ consisting only of lowercase Latin letters.\n\nYou can rearrange all letters of this string as you wish. Your task is to obtain a good string by rearranging the letters of the given string or re... | [{"type": "stdin_stdout", "input": "100\naa\nb\ncbc\nc\nbab\nc\nbdb\ndd\nhfh\nebe\nb\nf\ngg\na\nm\nkkk\nqq\ni\noo\nss\ntt\nere\njgj\nqiq\nkk\nn\naaa\nb\naa\nb\nc\na\nf\ne\na\naa\nff\ne\na\nafa\no\nmom\nqq\nf\niii\nh\njj\njj\nkgk\nbb\nhih\nj\na\naaa\nbb\nbab\ne\naa\nd\nb\nfdf\nibi\nbb\nfhf\ncc\nf\ngig\nene\nbob\na\nrcr\... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nSimon has a rectangular table consisting of n rows and m columns. Simon numbered the rows of the table from top to bottom starting from one and the columns — from left to right starting from one. We'll represent the cell ... | [{"type": "stdin_stdout", "input": "5 50\n0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nVasya decided to learn to play chess. Classic chess doesn't seem interesting to him, so he plays his own sort of chess.\n\nThe queen is the piece that captures all squares on its vertical, horizontal and diagonal lines. I... | [{"type": "stdin_stdout", "input": "1000000000\n", "output": "white\n1 2\n"}, {"type": "stdin_stdout", "input": "999999996\n", "output": "white\n1 2\n"}, {"type": "stdin_stdout", "input": "99966246\n", "output": "white\n1 2\n"}, {"type": "stdin_stdout", "input": "666666\n", "output": "white\n1 2\n"}, {"type": "stdin_st... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nA lighthouse keeper Peter commands an army of $n$ battle lemmings. He ordered his army to stand in a line and numbered the lemmings from $1$ to $n$ from left to right. Some of the lemmings hold shields. Each lemming canno... | [{"type": "stdin_stdout", "input": "12\n0 0 0 0 1 1 1 1 0 1 1 0\n", "output": "9 12 13 14 14 14 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 \n"}, {"type": "stdin_stdout", "input": "... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nDZY loves chemistry, and he enjoys mixing chemicals.\n\nDZY has n chemicals, and m pairs of them will react. He wants to pour these chemicals into a test tube, and he needs to pour them in one by one, in any order. \n\nLe... | [{"type": "stdin_stdout", "input": "50 50\n16 21\n23 47\n23 30\n2 12\n23 41\n3 16\n14 20\n4 49\n2 47\n19 29\n13 42\n5 8\n24 38\n13 32\n34 37\n38 46\n3 20\n27 50\n7 42\n33 45\n2 48\n41 47\n9 48\n15 26\n27 37\n32 34\n17 24\n1 39\n27 30\n10 33\n38 47\n32 33\n14 39\n35 50\n2 19\n3 12\n27 34\n18 25\n12 23\n31 44\n5 35\n28 4... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nLittle Artem got n stones on his birthday and now wants to give some of them to Masha. He knows that Masha cares more about the fact of receiving the present, rather than the value of that present, so he wants to give her... | [{"type": "stdin_stdout", "input": "1000000000\n", "output": "666666667\n"}, {"type": "stdin_stdout", "input": "999999999\n", "output": "666666666\n"}, {"type": "stdin_stdout", "input": "999999998\n", "output": "666666665\n"}, {"type": "stdin_stdout", "input": "999999997\n", "output": "666666665\n"}, {"type": "stdin_st... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nPetya is a big fan of mathematics, especially its part related to fractions. Recently he learned that a fraction $\\frac{a}{b}$ is called proper iff its numerator is smaller than its denominator (a < b) and that the fract... | [{"type": "stdin_stdout", "input": "1000\n", "output": "499 501\n"}, {"type": "stdin_stdout", "input": "999\n", "output": "499 500\n"}, {"type": "stdin_stdout", "input": "998\n", "output": "497 501\n"}, {"type": "stdin_stdout", "input": "997\n", "output": "498 499\n"}, {"type": "stdin_stdout", "input": "996\n", "output... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nGrigory has $n$ magic stones, conveniently numbered from $1$ to $n$. The charge of the $i$-th stone is equal to $c_i$.\n\nSometimes Grigory gets bored and selects some inner stone (that is, some stone with index $i$, wher... | [{"type": "stdin_stdout", "input": "10\n62159435 282618243 791521863 214307200 976959598 590907019 166397456 708291256 85377387 569889619\n296371399 546807332 272720717 689420404 273026579 74510326 749070707 104458586 450770185 466655231\n", "output": "No\n"}, {"type": "stdin_stdout", "input": "10\n589934963 440265648 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThere are $n$ children numbered from $1$ to $n$ in a kindergarten. Kindergarten teacher gave $a_i$ ($1 \\leq a_i \\leq n$) candies to the $i$-th child. Children were seated in a row in order from $1$ to $n$ from left to r... | [{"type": "stdin_stdout", "input": "50\n0 0 2 3 2 4 4 4 0 5 5 10 4 6 6 13 13 13 3 14 14 7 15 7 7 7 5 8 8 8 22 22 3 23 6 24 10 25 25 10 10 3 28 28 0 29 8 4 14 32\n0 0 7 29 2 10 10 10 0 9 9 22 5 8 8 19 19 19 1 18 18 7 17 7 7 7 4 6 6 6 10 10 1 9 3 8 4 7 7 4 4 1 4 4 0 3 1 0 0 0\n", "output": "YES\n50 50 41 18 46 36 36 36 5... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nArkady bought an air ticket from a city A to a city C. Unfortunately, there are no direct flights, but there are a lot of flights from A to a city B, and from B to C.\n\nThere are $n$ flights from A to B, they depart at t... | [{"type": "stdin_stdout", "input": "10 11 4 5 10\n1 2 3 4 5 6 7 8 9 10\n16 17 18 19 20 21 22 23 24 25 26\n", "output": "-1\n"}, {"type": "stdin_stdout", "input": "4 3 2 3 1\n1 999999998 999999999 1000000000\n3 4 1000000000\n", "output": "1000000003\n"}, {"type": "stdin_stdout", "input": "2 2 1000000000 1000000000 1\n99... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou are given a permutation of integers from 1 to n. Exactly once you apply the following operation to this permutation: pick a random segment and shuffle its elements. Formally: Pick a random segment (continuous subsequ... | [{"type": "stdin_stdout", "input": "100\n30 99 96 51 67 72 33 35 93 70 25 24 6 9 22 83 86 5 79 46 29 88 66 20 87 47 45 71 48 52 61 37 19 40 44 11 8 42 63 92 31 94 2 4 28 77 21 75 13 95 76 14 53 69 54 38 59 60 98 55 39 68 85 23 15 18 58 78 43 49 16 1 82 91 7 84 34 89 17 27 90 26 36 81 64 74 50 57 10 73 12 62 3 100 80 32... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nTanya wants to go on a journey across the cities of Berland. There are $n$ cities situated along the main railroad line of Berland, and these cities are numbered from $1$ to $n$. \n\nTanya plans her journey as follows. Fi... | [{"type": "stdin_stdout", "input": "15\n10 10 10 1 2 3 4 5 6 7 8 9 10 11 12\n", "output": "78\n"}, {"type": "stdin_stdout", "input": "10\n10 60 12 13 14 15 16 66 18 130\n", "output": "130\n"}, {"type": "stdin_stdout", "input": "9\n18 11 24 7 18 10 1 20 17\n", "output": "24\n"}, {"type": "stdin_stdout", "input": "9\n4 1... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nMancala is a game famous in the Middle East. It is played on a board that consists of 14 holes. [Image] \n\nInitially, each hole has $a_i$ stones. When a player makes a move, he chooses a hole which contains a positive n... | [{"type": "stdin_stdout", "input": "404418821 993626161 346204297 122439813 461187221 628048227 625919459 628611733 938993057 701270099 398043779 684205961 630975553 575964835\n", "output": "8139909016\n"}, {"type": "stdin_stdout", "input": "170651077 730658441 824213789 583764177 129437345 717005779 675398017 31497970... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nGeorge is a cat, so he really likes to play. Most of all he likes to play with his array of positive integers b. During the game, George modifies the array by using special changes. Let's mark George's current array as b_... | [{"type": "stdin_stdout", "input": "10000000000000000000000000000000000000400500000000000000000000000000000000030020010300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nUser ainta is making a web site. This time he is going to make a navigation of the pages. In his site, there are n pages numbered by integers from 1 to n. Assume that somebody is on the p-th page now. The navigation will ... | [{"type": "stdin_stdout", "input": "100 10 100\n", "output": "1 2 3 4 5 6 7 8 9 (10) 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 8... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThis is the hard version of the problem. The difference between versions is the constraints on $n$ and $a_i$. You can make hacks only if all versions of the problem are solved.\n\nFirst, Aoi came up with the following ide... | [{"type": "stdin_stdout", "input": "87 83\n40 6 7 50 16 65 47 90 94 65 79 29 41 76 80 13 87 37 92 71 54 53 93 79 14 53 71 78 50 50 74 40 30 92 66 86 94 60 37 65 82 14 61 48 68 71 91 99 74 88 89 34 57 74 25 2 79 72 92 37 61 16 32 85 29 74 6 69 50 74 76 48 31 42 40 95 29 27 28 31 38 60 52 45 14 78 59\n", "output": "75\n1... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThe Patisserie AtCoder sells cakes with number-shaped candles.\nThere are X, Y and Z kinds of cakes with 1-shaped, 2-shaped and 3-shaped candles, respectively.\nEach cake has an integer value called deliciousness, as foll... | [{"type": "stdin_stdout", "input": "1000 1000 1000 3000\n8864823801 8864823801 8864823801 8864823801 8864823801 8864823801 8864823801 8864823801 8864823801 8864823801 8864823801 8864823801 8864823801 8864823801 8864823801 8864823801 8864823801 8864823801 8864823801 8864823801 8864823801 8864823801 8864823801 8864823801... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nGiven are positive integers A and B.\nLet us choose some number of positive common divisors of A and B.\nHere, any two of the chosen divisors must be coprime.\nAt most, how many divisors can we choose?Definition of common... | [{"type": "stdin_stdout", "input": "1000000000000 1000000000000\n", "output": "3\n"}, {"type": "stdin_stdout", "input": "642507465600 642507465600\n", "output": "10\n"}, {"type": "stdin_stdout", "input": "963761198400 963761198400\n", "output": "10\n"}, {"type": "stdin_stdout", "input": "200560490130 200560490130\n", "... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nTo decide which is the strongest among Rock, Paper, and Scissors, we will hold an RPS tournament.\nThere are 2^k players in this tournament, numbered 0 through 2^k-1. Each player has his/her favorite hand, which he/she wi... | [{"type": "stdin_stdout", "input": "100 100\nPSRRPRRSPSPSSSPSSSPSSSSSPSRSPRRPSRSSPSPPRRSRRRRPSSRRRRPSPSPSSRPRPPRSSRSSPSRPRSRPPSRPRPRPSPSPRRSRSPSP\n", "output": "R\n"}, {"type": "stdin_stdout", "input": "100 100\nRRPSSPPPPSRSRPSSPRSPPSPRSRRPSSPRRPSPPSPSPPRSSRPRPRRSSPSRSSRPSRSRRPRPPPSSSRRRPPRRRSPRRSPSSRRRRRPPPRPP\n", "ou... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nLet f(A, B) be the exclusive OR of A, A+1, ..., B. Find f(A, B).\nWhat is exclusive OR?\nThe bitwise exclusive OR of integers c_1, c_2, ..., c_n (let us call it y) is defined as follows:\n - When y is written in base two,... | [{"type": "stdin_stdout", "input": "1000000000000 1000000000000\n", "output": "1000000000000\n"}, {"type": "stdin_stdout", "input": "123456789012 123456789012\n", "output": "123456789012\n"}, {"type": "stdin_stdout", "input": "250874886258 260155437540\n", "output": "260155437541\n"}, {"type": "stdin_stdout", "input": ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou are given a tree with N vertices.\n\nHere, a tree is a kind of graph, and more specifically, a connected undirected graph with N-1 edges, where N is the number of its vertices.\n\nThe i-th edge (1≤i≤N-1) connects Vert... | [{"type": "stdin_stdout", "input": "30\n20 2 885820291\n9 3 833676138\n21 8 969316096\n13 10 732239064\n14 12 568976928\n4 14 362005859\n4 17 46938898\n4 21 706609800\n13 4 114271135\n18 13 475446302\n20 22 582315387\n7 23 941896909\n18 7 546231774\n30 24 698675648\n30 25 13971027\n11 26 760254873\n30 27 731457744\n1 2... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nGiven is a string S of length N consisting of lowercase English letters.\nSnuke can do this operation any number of times: remove fox occurring as a substring from s and concatenate the remaining parts of s.\nWhat is the ... | [{"type": "stdin_stdout", "input": "90585\nfohfoxuvgjxpybcfoxmefomtzopbsprupidgsybejhphoymfoxxaobhdxbmfoxqioqjzehbmufpownifoxhwlrybqsqijgkdmbpfoxzlobcfoxfpdznrbcqqjqglhqgnuooojywfoxfsqesfoxagdfmfoxlzlhjxrfkwmrktsintfocipouajpsqucpoydkfogknyjffoxddeqsrdeupfownwreitzyflusfoxrhmoffoxqfoxsmyurkfotmlxhekuksfotxukcdfopfoxrcr... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nn evenly spaced points have been marked around the edge of a circle. There is a number written at each point. You choose a positive real number k. Then you may repeatedly select a set of 2 or more points which are evenly ... | [{"type": "stdin_stdout", "input": "488\n453349582488862562152454328120974624021885842759505659322561694358728150516204337664755243733316681382547751353198982127441183878962690095592236469807087207161691714104527568781618875688104415243715506909284770554256616642020503116458540489226220383015748323400356936736149732496... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nCount the number of distinct sequences a_1, a_2, ..., a_{n} (1 ≤ a_{i}) consisting of positive integers such that gcd(a_1, a_2, ..., a_{n}) = x and $\\sum_{i = 1}^{n} a_{i} = y$. As this number could be large, print the a... | [{"type": "stdin_stdout", "input": "495219 444706662\n", "output": "115165527\n"}, {"type": "stdin_stdout", "input": "1000000000 1000000000\n", "output": "1\n"}, {"type": "stdin_stdout", "input": "9357 18255507\n", "output": "745979764\n"}, {"type": "stdin_stdout", "input": "225 315096300\n", "output": "413133630\n"}, ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou are organizing a boxing tournament, where $n$ boxers will participate ($n$ is a power of $2$), and your friend is one of them. All boxers have different strength from $1$ to $n$, and boxer $i$ wins in the match agains... | [{"type": "stdin_stdout", "input": "128\n-1 37 90 12 24 35 86 39 20 27 86 95 51 8 33 32 55 35 8 75 74 79 64 51 66 32 34 45 39 89 19 11 86 31 69 58 40 58 62 11 99 54 31 10 4 70 88 22 94 23 46 20 65 97 61 39 31 65 23 31 95 78 40 25 51 14 12 55 8 63 18 57 91 75 31 26 22 84 29 22 32 64 20 12 49 92 50 4 97 17 26 88 10 56 73... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nPeter Parker wants to play a game with Dr. Octopus. The game is about cycles. Cycle is a sequence of vertices, such that first one is connected with the second, second is connected with third and so on, while the last one... | [{"type": "stdin_stdout", "input": "10\n802030518 598196518 640274071 983359971 71550121 96204862 799843967 446173607 796619138 402690754\n", "output": "1\n2\n2\n2\n2\n1\n1\n1\n2\n1\n"}, {"type": "stdin_stdout", "input": "10\n9 8 5 4 1 1 2 1 1 1\n", "output": "2\n1\n1\n2\n2\n2\n1\n1\n1\n1\n"}, {"type": "stdin_stdout", ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nVanya got n cubes. He decided to build a pyramid from them. Vanya wants to build the pyramid as follows: the top level of the pyramid must consist of 1 cube, the second level must consist of 1 + 2 = 3 cubes, the third lev... | [{"type": "stdin_stdout", "input": "10000\n", "output": "38\n"}, {"type": "stdin_stdout", "input": "4115\n", "output": "28\n"}, {"type": "stdin_stdout", "input": "9894\n", "output": "38\n"}, {"type": "stdin_stdout", "input": "7969\n", "output": "35\n"}, {"type": "stdin_stdout", "input": "6560\n", "output": "33\n"}, {"t... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nPolycarpus is the director of a large corporation. There are n secretaries working for the corporation, each of them corresponds via the famous Spyke VoIP system during the day. We know that when two people call each othe... | [{"type": "stdin_stdout", "input": "123\n0 6361 8903 10428 0 258 0 10422 0 0 2642 1958 0 0 0 0 0 8249 1958 0 0 2642 0 0 0 11566 4709 1847 3998 0 1331 0 0 10289 2739 6135 3450 0 0 10994 6069 4337 5854 1331 5854 0 630 630 11244 5928 2706 0 683 214 0 9080 0 0 0 10422 683 11566 10994 0 0 3450 11244 11542 3998 1847 2708 987... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nA number is called quasibinary if its decimal representation contains only digits 0 or 1. For example, numbers 0, 1, 101, 110011 — are quasibinary and numbers 2, 12, 900 are not.\n\nYou are given a positive integer n. Rep... | [{"type": "stdin_stdout", "input": "999999\n", "output": "9\n111111 111111 111111 111111 111111 111111 111111 111111 111111 \n"}, {"type": "stdin_stdout", "input": "909090\n", "output": "9\n101010 101010 101010 101010 101010 101010 101010 101010 101010 \n"}, {"type": "stdin_stdout", "input": "909823\n", "output": "9\n1... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nArya has n opponents in the school. Each day he will fight with all opponents who are present this day. His opponents have some fighting plan that guarantees they will win, but implementing this plan requires presence of ... | [{"type": "stdin_stdout", "input": "1 100\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\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\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\n0\n0\n0\n0\n0\n0... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nVus the Cossack holds a programming competition, in which $n$ people participate. He decided to award them all with pens and notebooks. It is known that Vus has exactly $m$ pens and $k$ notebooks.\n\nDetermine whether the... | [{"type": "stdin_stdout", "input": "100 100 100\n", "output": "Yes\n"}, {"type": "stdin_stdout", "input": "54 82 100\n", "output": "Yes\n"}, {"type": "stdin_stdout", "input": "1 100 100\n", "output": "Yes\n"}, {"type": "stdin_stdout", "input": "20 61 100\n", "output": "Yes\n"}, {"type": "stdin_stdout", "input": "100 99... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThis year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel... | [{"type": "stdin_stdout", "input": "25\n1000000 999999 999998 999997 999996 999995 999994 999993 999992 999991 999990 999989 999988 999987 999986 999985 999984 999983 999982 999981 999980 999979 999978 999977 999976\n", "output": "999975\n"}, {"type": "stdin_stdout", "input": "25\n58115 794098 753382 484882 238434 6742... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nA permutation p of size n is an array such that every integer from 1 to n occurs exactly once in this array.\n\nLet's call a permutation an almost identity permutation iff there exist at least n - k indices i (1 ≤ i ≤ n) ... | [{"type": "stdin_stdout", "input": "1000 4\n", "output": "373086956251\n"}, {"type": "stdin_stdout", "input": "800 4\n", "output": "152620985001\n"}, {"type": "stdin_stdout", "input": "600 4\n", "output": "48187303751\n"}, {"type": "stdin_stdout", "input": "400 4\n", "output": "9477912501\n"}, {"type": "stdin_stdout", ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nEhab is interested in the bitwise-xor operation and the special graphs. Mahmoud gave him a problem that combines both. He has a complete graph consisting of n vertices numbered from 0 to n - 1. For all 0 ≤ u < v < n, vert... | [{"type": "stdin_stdout", "input": "1000000000000\n", "output": "20140978692096"}, {"type": "stdin_stdout", "input": "999999999999\n", "output": "20140978692095"}, {"type": "stdin_stdout", "input": "549755813888\n", "output": "10720238370816"}, {"type": "stdin_stdout", "input": "549755813887\n", "output": "107202383708... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nMany computer strategy games require building cities, recruiting army, conquering tribes, collecting resources. Sometimes it leads to interesting problems. \n\nLet's suppose that your task is to build a square city. The w... | [{"type": "stdin_stdout", "input": "10\n-260530833 169589238\n-681955770 -35391010\n223450511 24504262\n479795061 -26191863\n-291344265 21153856\n714700263 -328447419\n-858655942 161086142\n-270884153 462537328\n-501424901 977460517\n115284904 -151626824\n", "output": "2475449747812002025\n"}, {"type": "stdin_stdout", ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThanos sort is a supervillain sorting algorithm, which works as follows: if the array is not sorted, snap your fingers* to remove the first or the second half of the items, and repeat the process.\n\nGiven an input array,... | [{"type": "stdin_stdout", "input": "16\n12 17 18 51 52 54 56 59 68 74 88 91 98 100 66 49\n", "output": "8\n"}, {"type": "stdin_stdout", "input": "16\n71 23 16 21 29 34 39 69 74 76 80 84 85 97 36 49\n", "output": "4\n"}, {"type": "stdin_stdout", "input": "16\n63 42 13 15 39 42 42 44 46 56 58 62 67 82 84 93\n", "output":... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nHyakugoku has just retired from being the resident deity of the South Black Snail Temple in order to pursue her dream of becoming a cartoonist. She spent six months in that temple just playing \"Cat's Cradle\" so now she ... | [{"type": "stdin_stdout", "input": "0 0 0 0 0 0 0 0 0 0\n0 0 0 0 0 0 0 0 0 0\n0 0 0 0 0 0 0 0 0 0\n0 0 0 0 0 0 0 0 0 0\n0 0 0 0 0 0 0 0 0 0\n0 0 0 0 0 0 0 0 0 0\n0 0 0 0 0 0 0 0 0 0\n0 0 0 0 0 0 0 0 0 0\n0 0 0 0 0 0 0 0 0 0\n0 0 0 0 0 0 0 0 0 0\n", "output": "33.0476190476\n"}, {"type": "stdin_stdout", "input": "0 0 0 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou are given $n$ blocks, each of them is of the form [color$_1$|value|color$_2$], where the block can also be flipped to get [color$_2$|value|color$_1$]. \n\nA sequence of blocks is called valid if the touching endpoints... | [{"type": "stdin_stdout", "input": "40\n2 99891 4\n1 29593 4\n4 12318 1\n1 40460 3\n1 84340 2\n3 33349 4\n3 2121 4\n3 50068 3\n2 72029 4\n4 52319 3\n4 60726 2\n1 30229 1\n3 1887 2\n2 56145 4\n3 53121 1\n2 54227 4\n2 70016 3\n1 93754 4\n4 68567 3\n1 70373 2\n4 52983 3\n2 27467 2\n4 56860 2\n2 12665 2\n3 11282 3\n2 18731... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nTom loves vowels, and he likes long words with many vowels. His favorite words are vowelly words. We say a word of length $k$ is vowelly if there are positive integers $n$ and $m$ such that $n\\cdot m = k$ and when the wo... | [{"type": "stdin_stdout", "input": "60\n", "output": "aeioueiouaiouaeouaeiuaeioaeioueiouaiouaeouaeiuaeioaeioueioua"}, {"type": "stdin_stdout", "input": "56\n", "output": "aeiouaeeiouaeiiouaeioouaeiouuaeiouaaeiouaeeiouaeiiouaeio"}, {"type": "stdin_stdout", "input": "50\n", "output": "aeioueiouaiouaeouaeiuaeioaeioueiouai... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nFord Prefect got a job as a web developer for a small company that makes towels. His current work task is to create a search engine for the website of the company. During the development process, he needs to write a subro... | [{"type": "stdin_stdout", "input": "10\ncdcddbacdb\naababacabc\n", "output": "8\n7 8\n"}, {"type": "stdin_stdout", "input": "9\npergament\npermanent\n", "output": "1\n4 6\n"}, {"type": "stdin_stdout", "input": "6\nwookie\ncookie\n", "output": "1\n-1 -1\n"}, {"type": "stdin_stdout", "input": "6\ndouble\nbundle\n", "outp... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nPeter wrote on the board a strictly increasing sequence of positive integers a_1, a_2, ..., a_{n}. Then Vasil replaced some digits in the numbers of this sequence by question marks. Thus, each question mark corresponds to... | [{"type": "stdin_stdout", "input": "98\n?\n?0\n2?\n6?\n6?\n69\n??\n??\n96\n1?2\n??3\n104\n??4\n1?9\n??2\n18?\n?01\n205\n?19\n244\n??8\n?5?\n?5?\n276\n??3\n???\n???\n?28\n?3?\n3??\n??8\n355\n4?0\n4??\n?10\n??1\n417\n4?9\n?3?\n4?4\n?61\n?8?\n???\n507\n?2?\n???\n??6\n5?7\n540\n5?9\n???\n?7?\n5??\n591\n?9?\n6?0\n620\n??4\n... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nAdilbek's house is located on a street which can be represented as the OX axis. This street is really dark, so Adilbek wants to install some post lamps to illuminate it. Street has $n$ positions to install lamps, they cor... | [{"type": "stdin_stdout", "input": "20 16 16\n1 2 3 4 5 6 8 9 10 11 13 14 15 16 18 19\n2 1 1 1 1 1 3 3 2 2 1 3 3 3 3 2\n", "output": "3\n"}, {"type": "stdin_stdout", "input": "11 4 6\n3 4 5 6\n1000000 1000000 1000000 1000000 1000000 1\n", "output": "3\n"}, {"type": "stdin_stdout", "input": "20 2 10\n9 16\n109 58 165 71... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\n$k$ people want to split $n$ candies between them. Each candy should be given to exactly one of them or be thrown away.\n\nThe people are numbered from $1$ to $k$, and Arkady is the first of them. To split the candies, Ar... | [{"type": "stdin_stdout", "input": "576460752303423488 576460752303423488 351082447248993993 1000\n", "output": "351082447248993993\n"}, {"type": "stdin_stdout", "input": "962768465676381898 72057594037927936 586039918340257175 256\n", "output": "586039918340257175\n"}, {"type": "stdin_stdout", "input": "23925738098196... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nBeing a nonconformist, Volodya is displeased with the current state of things, particularly with the order of natural numbers (natural number is positive integer number). He is determined to rearrange them. But there are ... | [{"type": "stdin_stdout", "input": "1000000000000 1000000000000\n", "output": "1000000000000"}, {"type": "stdin_stdout", "input": "1000000000000 500000000000\n", "output": "999999999999"}, {"type": "stdin_stdout", "input": "1000000000000 499999999999\n", "output": "999999999997"}, {"type": "stdin_stdout", "input": "999... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou are given $n$ numbers $a_1, a_2, \\dots, a_n$. With a cost of one coin you can perform the following operation:\n\nChoose one of these numbers and add or subtract $1$ from it.\n\nIn particular, we can apply this opera... | [{"type": "stdin_stdout", "input": "22\n99039804 -580368436 -694542422 231508622 -490965348 958087037 -570157955 560902976 -840005981 -837792364 -708462966 468364483 443419189 -631099451 -154223559 102960509 -225552439 507250810 -712228569 989896753 965939784 0\n", "output": "11772769437"}, {"type": "stdin_stdout", "in... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nA correct expression of the form a+b=c was written; a, b and c are non-negative integers without leading zeros. In this expression, the plus and equally signs were lost. The task is to restore the expression. In other wor... | [{"type": "stdin_stdout", "input": "100277221476489181970323375139380435110027722147648918197032337513938043511002772214764891819703233751393804351100277221476489181970323375139380435120055444295297836394064675027876087022005544429529783639406467502787608702\n", "output": "1002772214764891819703233751393804351100277221... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nFedya studies in a gymnasium. Fedya's maths hometask is to calculate the following expression:(1^{n} + 2^{n} + 3^{n} + 4^{n}) mod 5\n\nfor given value of n. Fedya managed to complete the task. Can you? Note that given num... | [{"type": "stdin_stdout", "input": "124356983594583453458888889\n", "output": "0\n"}, {"type": "stdin_stdout", "input": "584660\n", "output": "4\n"}, {"type": "stdin_stdout", "input": "192329\n", "output": "0\n"}, {"type": "stdin_stdout", "input": "971836\n", "output": "4\n"}, {"type": "stdin_stdout", "input": "578487\... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThere are $n$ houses along the road where Anya lives, each one is painted in one of $k$ possible colors.\n\nAnya likes walking along this road, but she doesn't like when two adjacent houses at the road have the same color... | [{"type": "stdin_stdout", "input": "100 100\n82 51 81 14 37 17 78 92 64 15 8 86 89 8 87 77 66 10 15 12 100 25 92 47 21 78 20 63 13 49 41 36 41 79 16 87 87 69 3 76 80 60 100 49 70 59 72 8 38 71 45 97 71 14 76 54 81 4 59 46 39 29 92 3 49 22 53 99 59 52 74 31 92 43 42 23 44 9 82 47 7 40 12 9 3 55 37 85 46 22 84 52 98 41 2... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nBizon the Champion is called the Champion for a reason. \n\nBizon the Champion has recently got a present — a new glass cupboard with n shelves and he decided to put all his presents there. All the presents can be divided... | [{"type": "stdin_stdout", "input": "100 100 100\n100 100 100\n100\n", "output": "YES\n"}, {"type": "stdin_stdout", "input": "100 100 100\n100 100 100\n1\n", "output": "NO\n"}, {"type": "stdin_stdout", "input": "21 61 39\n63 58 69\n44\n", "output": "YES\n"}, {"type": "stdin_stdout", "input": "64 27 81\n72 35 23\n48\n", ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\n++++++++[>+>++>+++>++++>+++++>++++++>+++++++>++++++++>+++++++++>++++++++++>+\n++++++++++>++++++++++++>+++++++++++++>++++++++++++++>+++++++++++++++>+++++++\n+++++++++<<<<<<<<<<<<<<<<-]>>>>>>>>>>.<<<<<<<<<<>>>>>>>>>>>>>>++.... | [{"type": "stdin_stdout", "input": "1000000\n", "output": "2\n"}, {"type": "stdin_stdout", "input": "299593\n", "output": "7\n"}, {"type": "stdin_stdout", "input": "398929\n", "output": "4\n"}, {"type": "stdin_stdout", "input": "860076\n", "output": "1\n"}, {"type": "stdin_stdout", "input": "262144\n", "output": "1\n"}... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nzscoder has a deck of $n+m$ custom-made cards, which consists of $n$ cards labelled from $1$ to $n$ and $m$ jokers. Since zscoder is lonely, he wants to play a game with himself using those cards. \n\nInitially, the deck ... | [{"type": "stdin_stdout", "input": "2000000 2000000\n", "output": "507914970\n"}, {"type": "stdin_stdout", "input": "1999922 1999943\n", "output": "255234262\n"}, {"type": "stdin_stdout", "input": "1999968 1999941\n", "output": "499830706\n"}, {"type": "stdin_stdout", "input": "1999913 1999918\n", "output": "667185390\... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nPolycarp is a music editor at the radio station. He received a playlist for tomorrow, that can be represented as a sequence a_1, a_2, ..., a_{n}, where a_{i} is a band, which performs the i-th song. Polycarp likes bands w... | [{"type": "stdin_stdout", "input": "80 79\n17 59 54 75 68 69 69 67 62 77 65 78 54 69 59 73 68 57 65 54 66 46 68 68 67 65 75 39 62 63 45 78 72 62 78 34 74 68 78 68 79 60 64 56 68 76 66 44 43 69 74 75 44 66 71 78 41 75 71 77 59 56 78 52 61 64 64 53 79 34 79 79 65 45 79 67 65 78 68 74\n", "output": "1 46\n17 7 4 36 22 29 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nAnother Codeforces Round has just finished! It has gathered $n$ participants, and according to the results, the expected rating change of participant $i$ is $a_i$. These rating changes are perfectly balanced — their sum i... | [{"type": "stdin_stdout", "input": "100\n-306\n-172\n26\n-328\n-241\n212\n-3\n270\n141\n111\n-56\n-46\n-27\n-54\n-253\n117\n118\n82\n189\n44\n-4\n55\n126\n-324\n219\n73\n-333\n-254\n-114\n-6\n74\n-263\n197\n-83\n311\n233\n-165\n84\n-241\n272\n-214\n10\n-173\n11\n230\n142\n-289\n10\n178\n62\n292\n-241\n101\n0\n-78\n65\n... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nValera considers a number beautiful, if it equals 2^{k} or -2^{k} for some integer k (k ≥ 0). Recently, the math teacher asked Valera to represent number n as the sum of beautiful numbers. As Valera is really greedy, he w... | [{"type": "stdin_stdout", "input": "10001100101100101000100101000100100111100001111001000011101001010001100111001010011111100101110101010011101101110000111111010100100111110000011111000100011000000010111011000110010110001100010011111100110011100001110011011110000011101111000110100010000111011010011101100101010010110011... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou are given an array $a_1, a_2, \\ldots, a_n$.\n\nIn one operation you can choose two elements $a_i$ and $a_j$ ($i \\ne j$) and decrease each of them by one.\n\nYou need to check whether it is possible to make all the e... | [{"type": "stdin_stdout", "input": "5\n1000000000 1000000000 1000000000 1000000000 1000000000\n", "output": "YES"}, {"type": "stdin_stdout", "input": "5\n564718673 365329221 412106895 291882089 585325539\n", "output": "NO"}, {"type": "stdin_stdout", "input": "9\n9486 407 8791 38849 4191 197 5807 8030 1939\n", "output":... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\n-----Input-----\n\nThe input contains a single integer $a$ ($1 \\le a \\le 99$).\n\n\n-----Output-----\n\nOutput \"YES\" or \"NO\".\n\n\n-----Examples-----\nInput\n5\n\nOutput\nYES\n\nInput\n13\n\nOutput\nNO\n\nInput\n24\... | [{"type": "stdin_stdout", "input": "46\n", "output": "YES\n"}, {"type": "stdin_stdout", "input": "12\n", "output": "YES\n"}, {"type": "stdin_stdout", "input": "30\n", "output": "YES\n"}, {"type": "stdin_stdout", "input": "35\n", "output": "YES\n"}, {"type": "stdin_stdout", "input": "43\n", "output": "YES\n"}, {"type": ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nPetya was late for the lesson too. The teacher gave him an additional task. For some array a Petya should find the number of different ways to select non-empty subset of elements from it in such a way that their product i... | [{"type": "stdin_stdout", "input": "20\n20 34 51 40 70 64 14 30 24 20 6 1 70 28 38 43 9 60 31 69\n", "output": "2047\n"}, {"type": "stdin_stdout", "input": "18\n22 41 40 8 36 48 23 5 58 12 26 44 53 49 3 56 58 57\n", "output": "127\n"}, {"type": "stdin_stdout", "input": "17\n44 57 54 57 54 65 40 57 59 16 39 51 32 51 20 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThere is a rectangular grid of n rows of m initially-white cells each.\n\nArkady performed a certain number (possibly zero) of operations on it. In the i-th operation, a non-empty subset of rows R_{i} and a non-empty subs... | [{"type": "stdin_stdout", "input": "50 8\n.....#..\n........\n........\n.....#..\n.....#..\n........\n........\n........\n........\n...#....\n...#....\n........\n...#....\n#.#.#...\n...#....\n...#....\n........\n...#....\n...#....\n...#....\n........\n#.#.#...\n.....#..\n........\n#.#.#...\n#.#.#...\n#.#.#...\n...#....... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nGiven is a positive integer N.\nWe will choose an integer K between 2 and N (inclusive), then we will repeat the operation below until N becomes less than K.\n - Operation: if K divides N, replace N with N/K; otherwise, r... | [{"type": "stdin_stdout", "input": "1000000000000\n", "output": "266\n"}, {"type": "stdin_stdout", "input": "523968956449\n", "output": "385\n"}, {"type": "stdin_stdout", "input": "145329450841\n", "output": "289\n"}, {"type": "stdin_stdout", "input": "642507465600\n", "output": "12\n"}, {"type": "stdin_stdout", "input... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nWe have a grid with H horizontal rows and W vertical columns. Let (i,j) denote the square at the i-th row from the top and the j-th column from the left.\nThe square (i, j) has two numbers A_{ij} and B_{ij} written on it.... | [{"type": "stdin_stdout", "input": "80 80\n80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80\n80 80 80 80 80 80 80 80 80 80 80 80 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou are given N non-negative integers A_1, A_2, ..., A_N and another non-negative integer K.\nFor a integer X between 0 and K (inclusive), let f(X) = (X XOR A_1) + (X XOR A_2) + ... + (X XOR A_N).\nHere, for non-negative ... | [{"type": "stdin_stdout", "input": "1 0\n1000000000000\n", "output": "1000000000000\n"}, {"type": "stdin_stdout", "input": "4 9\n7 4 0 3\n", "output": "46\n"}, {"type": "stdin_stdout", "input": "3 7\n1 6 3\n", "output": "14\n"}] | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nGiven are an N \\times N matrix and an integer K. The entry in the i-th row and j-th column of this matrix is denoted as a_{i, j}. This matrix contains each of 1, 2, \\dots, N^2 exactly once.\nSigma can repeat the followi... | [{"type": "stdin_stdout", "input": "49 4643\n1 50 99 148 197 246 295 344 393 442 491 540 589 638 687 736 785 834 883 932 981 1030 1079 1128 1177 1226 1275 1324 1373 1422 1471 1520 1569 1618 1667 1716 1765 1814 1863 1912 1961 2010 2059 2108 2157 2185 2255 2304 2353\n2 51 742 149 198 247 296 345 394 443 1148 541 590 639 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nWe have a grid of squares with N rows and M columns. Let (i, j) denote the square at the i-th row from the top and j-th column from the left. We will choose K of the squares and put a piece on each of them.\nIf we place t... | [{"type": "stdin_stdout", "input": "155776 1 112696\n", "output": "837491985\n"}, {"type": "stdin_stdout", "input": "200000 1 134405\n", "output": "945631888\n"}, {"type": "stdin_stdout", "input": "491 405 148903\n", "output": "206234613\n"}, {"type": "stdin_stdout", "input": "435 448 126173\n", "output": "779238467\n"... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThere are N people standing in a queue from west to east.\nGiven is a string S of length N representing the directions of the people.\nThe i-th person from the west is facing west if the i-th character of S is L, and east... | [{"type": "stdin_stdout", "input": "95617 23923\nRRRLRRRLLRRLRRLRLRRLLLRLLLRRRRRRRLLRRRRLRRRLLRLLRLLLRLLRLRLRRRRRLRRLRRRLRRRLRRLLRLLRLLRLRLRRLRRRLRLRLRLRLLLLRRLRLRRRRLRLLLLLLRLRRRLRLRRLRLLRLLRRLRRRRRRLRRRLRLRLRRRLLLRLRLRLLLLLRRRLRLLLLRLLRRLLLLRRLRLRLRLLRLLLLLLRRLRRRRLLLRLLLRLRRRRLRRRRLLRLRRRRRLRLRRLLRLLLRLRLRRLLLRRRRRR... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nIn this problem we consider a special type of an auction, which is called the second-price auction. As in regular auction n bidders place a bid which is price a bidder ready to pay. The auction is closed, that is, each bi... | [{"type": "stdin_stdout", "input": "100\n2515 3324 7975 6171 4240 1217 4829 5203 8603 6900 3031 4699 4732 6070 4221 3228 6497 7359 9130 4346 4619 1109 3945 5442 3271 16 9711 2045 6410 2301 3406 8125 6003 1892 1260 9661 3940 6692 4708 7027 4930 6925 1979 5361 4263 3144 867 8639 6230 5562 9714 3676 4231 3347 4733 4920 48... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nПрофиль горного хребта схематично задан в виде прямоугольной таблицы из символов «.» (пустое пространство) и «*» (часть горы). Каждый столбец таблицы содержит хотя бы одну «звёздочку». Гарантируется, что любой из символов... | [{"type": "stdin_stdout", "input": "20 20\n........*...........\n........*........*..\n........*........*..\n.**.....*.......**..\n.**.....*.......**..\n.**.....*.....*.**..\n.**.....*.....*.**..\n.**.....*.....*.**..\n.**.....*.....*.**..\n.**.*...*.....*.**..\n.**.*...*.....*.**..\n.**.*...*....**.**..\n.**.*...*..*.... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nPolycarp is a big lover of killing time in social networks. A page with a chatlist in his favourite network is made so that when a message is sent to some friend, his friend's chat rises to the very top of the page. The r... | [{"type": "stdin_stdout", "input": "50\njcg\nvle\njopb\nepdb\nnkef\nfv\nxj\nufe\nfuy\noqta\ngbc\nyuz\nec\nyji\nkuux\ncwm\ntq\nnno\nhp\nzry\nxxpp\ntjvo\ngyz\nkwo\nvwqz\nyaqc\njnj\nwoav\nqcv\ndcu\ngc\nhovn\nop\nevy\ndc\ntrpu\nyb\nuzfa\npca\noq\nnhxy\nsiqu\nde\nhphy\nc\nwovu\nf\nbvv\ndsik\nlwyg\n", "output": "lwyg\ndsik\n... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou are given a tube which is reflective inside represented as two non-coinciding, but parallel to $Ox$ lines. Each line has some special integer points — positions of sensors on sides of the tube.\n\nYou are going to emi... | [{"type": "stdin_stdout", "input": "13 968288\n0 67108864 134217728 201326592 268435456 335544320 402653184 469762048 536870912 603979776 671088640 738197504 805306368\n13 986214\n33554432 100663296 167772160 234881024 301989888 369098752 436207616 503316480 570425344 637534208 704643072 771751936 838860800\n", "output... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThe only king stands on the standard chess board. You are given his position in format \"cd\", where c is the column from 'a' to 'h' and d is the row from '1' to '8'. Find the number of moves permitted for the king.\n\nCh... | [{"type": "stdin_stdout", "input": "e4\n", "output": "8\n"}, {"type": "stdin_stdout", "input": "a1\n", "output": "3\n"}, {"type": "stdin_stdout", "input": "h8\n", "output": "3\n"}, {"type": "stdin_stdout", "input": "a4\n", "output": "5\n"}, {"type": "stdin_stdout", "input": "g7\n", "output": "8\n"}, {"type": "stdin_std... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nThere are n cities in Berland, each of them has a unique id — an integer from 1 to n, the capital is the one with id 1. Now there is a serious problem in Berland with roads — there are no roads.\n\nThat is why there was a... | [{"type": "stdin_stdout", "input": "51 16 31\n1 3 3 3 4 4 3 5 4 1 3 3 3 2 3 5\n", "output": "51\n7 4\n48 44\n20 16\n31 23\n47 44\n37 33\n18 12\n44 42\n8 11\n33 36\n20 26\n5 2\n6 3\n22 16\n28 32\n33 38\n21 16\n27 20\n14 9\n42 45\n2 4\n9 6\n1 2\n42 39\n9 13\n46 42\n23 30\n23 20\n12 19\n44 49\n32 35\n33 32\n39 43\n44 50\n... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nPolycarp has a strict daily schedule. He has n alarms set for each day, and the i-th alarm rings each day at the same time during exactly one minute.\n\nDetermine the longest time segment when Polycarp can sleep, i. e. no... | [{"type": "stdin_stdout", "input": "70\n03:33\n23:36\n03:16\n18:18\n06:36\n06:58\n17:27\n04:07\n14:39\n15:53\n17:09\n05:16\n20:28\n09:34\n02:41\n14:18\n20:00\n04:14\n00:25\n20:18\n16:34\n10:13\n21:45\n11:08\n16:19\n20:50\n03:08\n05:06\n02:08\n02:51\n15:16\n11:02\n18:13\n18:35\n00:04\n08:50\n06:12\n20:16\n12:05\n04:01\n... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nYou are given a tree with $n$ vertices. You are allowed to modify the structure of the tree through the following multi-step operation: Choose three vertices $a$, $b$, and $c$ such that $b$ is adjacent to both $a$ and $c... | [{"type": "stdin_stdout", "input": "15\n4 6\n8 4\n12 11\n7 6\n9 8\n5 1\n14 13\n6 13\n1 4\n1 2\n6 11\n10 8\n15 14\n3 1\n", "output": "4\n"}, {"type": "stdin_stdout", "input": "15\n9 7\n7 15\n6 5\n12 10\n1 2\n5 11\n10 7\n3 2\n6 7\n4 8\n3 5\n9 13\n13 14\n3 4\n", "output": "5\n"}, {"type": "stdin_stdout", "input": "15\n13 ... | code_stdio |
[
{
"content": "Solve the following coding problem using the programming language python:\n\nIn an attempt to escape the Mischievous Mess Makers' antics, Farmer John has abandoned his farm and is traveling to the other side of Bovinia. During the journey, he and his k cows have decided to stay at the luxurious Gr... | [{"type": "stdin_stdout", "input": "491 89\n011111011111111000001110101100010100011101110000101011111010001000100101110111011101101111011010101110001110000111000110100100101111110000110110101001100010000111001110000010111000100011111011111010001110011001100101001010000011100101001001001001010011000101010010000100001111... | code_stdio |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.