test
stringlengths
184
51.6M
hash
stringlengths
32
32
__inputs__ = ['3857 5000\n', '0000 2000\n', '1010 3000\n', '428 5000\n', '0000 2954\n', '0010 3000\n', '824 5000\n', '0000 4848\n', '0000 3000\n', '45 5000\n', '0010 4848\n', '45 3263\n', '0010 8622\n', '0011 4882\n', '53 3263\n', '0010 3841\n', '0111 4882\n', '53 4803\n', '0110 3841\n', '1111 4882\n', '53 2930\n', '0010 5678\n', '1111 7060\n', '53 5105\n', '0010 9694\n', '1111 5081\n', '61 5105\n', '0010 12073\n', '1101 5081\n', '89 5105\n', '0000 12073\n', '1101 1314\n', '78 5105\n', '0001 12073\n', '1101 1754\n', '78 2934\n', '0011 12073\n', '1001 1754\n', '120 2934\n', '0111 12073\n', '1001 379\n', '120 3263\n', '1111 12073\n', '1001 755\n', '120 3074\n', '1110 12073\n', '0001 755\n', '120 6070\n', '1100 12073\n', '0000 755\n', '120 283\n', '1000 12073\n', '0000 808\n', '120 394\n', '1001 12073\n', '0000 1336\n', '31 394\n', '1001 20263\n', '0000 2643\n', '62 394\n', '1011 20263\n', '0000 3506\n', '53 394\n', '1011 3942\n', '0010 3506\n', '53 48\n', '1011 218\n', '0000 989\n', '9 48\n', '1011 342\n', '1000 989\n', '13 48\n', '0011 342\n', '1000 227\n', '13 78\n', '1000 452\n', '13 89\n', '0011 0\n', '1100 452\n', '13 74\n', '0001 0\n', '0100 452\n', '19 74\n', '1011 0\n', '0110 452\n', '21 74\n', '0011 1\n', '0010 452\n', '21 77\n', '0001 1\n', '0010 133\n', '21 149\n', '0010 115\n', '21 209\n', '1010 115\n', '35 209\n', '0101 3\n', '1110 115\n', '32 209\n', '0101 6\n', '5000 5000\n', '1000 2000\n', '1000 3000\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
28440829721b4e818c48cd9c401ddaa8
__inputs__ = ['5000 5000\n', '1000 2000\n', '1000 3000\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
c8f35a8784f397a9d6b94e501e5faa6e
__inputs__ = ['4 2\n1 2 3 4\n', '4 3\n1 2 3 4\n', '5 3\n5 3 4 2 6\n', '6 4\n5 3 50 2 4 5\n', '9 6\n61893 41300 6953 17157 3356 96839 77399 31252 37704\n', '4 4\n99402 47701 84460 34277\n', '3 2\n60105 66958 8251\n', '8 2\n53334 11332 30400 32538 96555 59257 53063 32571\n', '7 7\n20569 28739 17283 56309 61086 8910 52918\n', '2 2\n5 10\n', '10 4\n91239 51189 50977 96098 56330 55725 6448 7351 60071 93359\n', '3 3\n25875 65787 4273\n', '6 3\n36914 69317 77398 81226 65499 13860\n', '7 7\n75226 32953 72514 65185 20228 97478 86174\n', '7 4\n42794 67289 74431 27073 23448 20525 18468\n', '4 4\n42834 68994 51974 47316\n', '3 2\n57537 28477 3814\n', '2 2\n1123 82409\n', '4 2\n93648 34841 31096 95128\n', '7 7\n87348 10537 16568 51995 43500 80087 61886\n', '4 2\n6683 34841 31096 95128\n', '10 4\n91239 51189 50977 96098 56330 55725 6448 7351 82063 93359\n', '4 4\n99402 90705 84460 34277\n', '7 7\n20569 28739 5076 56309 61086 8910 52918\n', '3 2\n60105 51721 8251\n', '6 3\n36914 69317 77389 81226 65499 13860\n', '9 6\n61893 41300 6953 17157 3356 94689 77399 31252 37704\n', '7 7\n87348 10537 16568 51995 55242 80087 61886\n', '3 2\n57537 20848 3814\n', '4 4\n42834 68994 51974 35396\n', '7 4\n53754 67289 74431 27073 23448 20525 18468\n', '3 2\n25875 65787 4273\n', '8 2\n53334 11332 30400 32538 177390 59257 53063 32571\n', '4 2\n1 3 3 4\n', '6 4\n5 4 50 2 4 5\n', '5 3\n5 3 4 4 6\n', '10 4\n30551 51189 50977 96098 56330 55725 6448 7351 82063 93359\n', '6 3\n36914 69317 77389 81226 23086 13860\n', '3 2\n25875 65787 6394\n', '10 4\n30551 4363 50977 96098 56330 55725 6448 7351 82063 93359\n', '4 4\n18210 90705 38139 34277\n', '4 4\n42361 68994 4994 35396\n', '3 2\n1418 65787 6394\n', '7 7\n20569 28739 4963 99091 61086 8910 52918\n', '6 3\n36914 117321 77389 81226 21592 13860\n', '6 4\n5 4 50 2 6 1\n', '8 3\n53334 8651 30400 70342 114092 59257 53063 32571\n', '6 3\n1311 117321 145053 81226 21592 17315\n', '6 3\n1311 202768 145053 81226 2248 17315\n', '8 3\n53334 8651 41757 70342 114092 59257 7640 57521\n', '8 3\n53334 4325 41757 70342 114092 59257 7640 57521\n', '8 3\n53334 2218 41757 70342 14643 59257 7640 57521\n', '8 3\n54300 1067 41757 70342 8720 59257 2670 96530\n', '8 6\n54300 1067 41757 70342 9469 59257 2670 96530\n', '8 6\n82330 1067 41757 73507 559 59257 1101 185114\n', '8 8\n82330 1067 5137 73507 383 59257 1101 185114\n', '8 8\n152619 629 5137 73507 383 59257 0001 185114\n', '8 8\n229974 629 7524 73507 430 59257 0001 185114\n', '4 4\n99402 90705 38139 34277\n', '7 7\n20569 28739 5254 56309 61086 8910 52918\n', '9 6\n92750 41300 6953 17157 3356 94689 77399 31252 37704\n', '4 4\n42361 68994 51974 35396\n', '7 4\n53754 67289 74431 27073 23448 27518 18468\n', '8 3\n53334 11332 30400 32538 177390 59257 53063 32571\n', '6 4\n5 4 50 2 6 5\n', '7 7\n20569 28739 4963 56309 61086 8910 52918\n', '6 3\n36914 117321 77389 81226 23086 13860\n', '9 6\n92750 41300 6953 17157 5557 94689 77399 31252 37704\n', '8 3\n53334 11332 30400 32538 114092 59257 53063 32571\n', '6 4\n5 4 50 2 6 6\n', '10 4\n30551 4363 50977 65951 56330 55725 6448 7351 82063 93359\n', '4 4\n42361 68994 4994 57821\n', '8 3\n53334 11332 30400 41275 114092 59257 53063 32571\n', '6 3\n36914 117321 145053 81226 21592 13860\n', '8 3\n53334 11332 30400 70342 114092 59257 53063 32571\n', '6 4\n5 4 50 2 4 1\n', '6 3\n36914 117321 145053 81226 21592 17315\n', '6 4\n5 4 50 1 4 1\n', '8 3\n53334 8651 30400 70342 114092 59257 53063 40613\n', '6 4\n5 4 50 1 8 1\n', '6 3\n1311 202768 145053 81226 21592 17315\n', '8 3\n53334 8651 41757 70342 114092 59257 53063 40613\n', '8 3\n53334 8651 41757 70342 114092 59257 53063 57521\n', '8 3\n53334 4325 41757 70342 14643 59257 7640 57521\n', '8 3\n53334 2218 41757 70342 14643 59257 9991 57521\n', '8 3\n53334 2218 41757 70342 14643 59257 15502 57521\n', '8 3\n53334 2218 41757 70342 8720 59257 15502 57521\n', '8 3\n53334 2218 41757 70342 8720 59257 15502 96530\n', '8 3\n53334 2218 41757 70342 8720 59257 2670 96530\n', '8 3\n54300 2218 41757 70342 8720 59257 2670 96530\n', '8 3\n54300 1067 41757 70342 9469 59257 2670 96530\n', '8 6\n54300 1067 41757 70342 9469 59257 2670 185114\n', '8 6\n54300 1067 41757 70342 9469 59257 739 185114\n', '8 6\n54300 1067 41757 73507 9469 59257 739 185114\n', '8 6\n54300 1067 41757 73507 9469 59257 1101 185114\n', '8 6\n82330 1067 41757 73507 9469 59257 1101 185114\n', '8 6\n82330 1067 41757 73507 383 59257 1101 185114\n', '8 6\n82330 1067 5137 73507 383 59257 1101 185114\n', '8 8\n82330 1067 5137 73507 383 59257 1001 185114\n', '8 8\n82330 2132 5137 73507 383 59257 1001 185114\n', '8 8\n82330 2132 5137 73507 383 59257 0001 185114\n', '8 8\n82330 629 5137 73507 383 59257 0001 185114\n', '8 8\n152619 629 5137 73507 430 59257 0001 185114\n', '8 8\n152619 629 7524 73507 430 59257 0001 185114\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
5fdce2497ed24ab9f59a1b77df507911
__inputs__ = ['4 2\n1 2 3 4\n', '4 3\n1 2 3 4\n', '5 3\n5 3 4 2 6\n', '6 4\n5 3 50 2 4 5\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
abc30a389c535d022d15292a828ff5ee
__inputs__ = ['125\n', '9999999999\n', '88\n', '131\n', '189\n', '292\n', '348\n', '260\n', '11\n', '16\n', '0\n', '1\n', '2\n', '188\n', '67\n', '29\n', '182\n', '135\n', '672\n', '497\n', '20\n', '25\n', '4\n', '3\n', '5\n', '42\n', '130\n', '58\n', '139\n', '144\n', '1333\n', '9\n', '8\n', '30\n', '6\n', '7\n', '10\n', '19\n', '61\n', '48\n', '154\n', '101\n', '353\n', '12\n', '14\n', '28\n', '78\n', '18\n', '259\n', '111\n', '517\n', '13\n', '24\n', '90\n', '34\n', '327\n', '119\n', '43\n', '129\n', '68\n', '413\n', '191\n', '40\n', '91\n', '95\n', '393\n', '23\n', '50\n', '162\n', '89\n', '711\n', '27\n', '70\n', '152\n', '17\n', '790\n', '21\n', '296\n', '36\n', '272\n', '39\n', '541\n', '52\n', '738\n', '87\n', '763\n', '1455\n', '1573\n', '1479\n', '2515\n', '128\n', '123\n', '55\n', '110\n', '100\n', '71\n', '126\n', '179\n', '115\n', '15\n', '46\n', '80\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
39cf68387fc697a25ab57cc5108ae2a3
__inputs__ = ['125\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
8512a0949f3da9ca95ab9515e97034b0
__inputs__ = ['6\n1 6 2 5 3 7\n', '6\n6 6 6 0 0 0\n', '6\n0 0 0 6 6 6\n', '6\n6 6 0 0 6 6\n', '5\n0 0 0 0 0\n', '10\n0 100 0 100 0 100 0 100 0 100\n', '1\n0\n', '2\n0 0\n', '3\n0 0 0\n', '4\n0 0 0 0\n', '2\n921 29111\n', '2\n0 1000000000\n', '2\n291911 1\n', '2\n20180000 0\n', '10\n10 9 7 13 7 5 13 15 10 11\n', '100\n6 3 4 5 3 4 2 4 1 2 4 1 8 5 2 2 4 4 6 8 4 10 4 4 6 8 6 5 5 4 8 4 3 3 6 5 7 2 9 7 6 5 6 3 2 6 8 10 3 6 8 7 2 3 5 4 8 6 5 6 6 8 4 1 5 6 1 8 12 5 3 3 8 2 4 2 4 5 6 6 9 5 1 2 8 8 3 7 5 3 4 5 7 6 3 9 4 6 3 6\n', '10\n1 1 1 1 1 999999999 999999999 999999999 999999999 999999999\n', '10\n1 1 1 1 1 1 1 1 2 1000000000\n', '14\n0 0 0 0 0 0 0 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000\n', '20\n1 1 1 1 1 1 1 1 1 1 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999\n', '20\n1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 2 2 2 2 2 2 2 2 2 2\n', '20\n1000000100 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 2 2 2 2 2 2 2 2 2 2\n', '2\n0 1100000000\n', '2\n9856090 0\n', '1\n1\n', '2\n1361 29111\n', '2\n7325946 0\n', '2\n2681 29111\n', '2\n2681 9435\n', '2\n4429 9435\n', '2\n1383 9435\n', '2\n1769 9435\n', '2\n1769 3637\n', '2\n2083 3637\n', '2\n1849 3637\n', '2\n1849 6189\n', '2\n757 6189\n', '2\n757 4733\n', '1\n2\n', '1\n-1\n', '1\n-2\n', '1\n-4\n', '1\n4\n', '1\n8\n', '1\n6\n', '1\n11\n', '1\n12\n', '1\n15\n', '1\n3\n', '1\n7\n', '1\n-3\n', '1\n5\n', '1\n20\n', '1\n26\n', '1\n-7\n', '1\n-5\n', '1\n-6\n', '1\n-9\n', '1\n-14\n', '1\n-27\n', '1\n-19\n', '1\n-8\n', '1\n10\n', '1\n-13\n', '1\n-16\n', '1\n-12\n', '1\n-10\n', '1\n28\n', '1\n27\n', '1\n31\n', '1\n53\n', '1\n89\n', '1\n34\n', '1\n30\n', '1\n13\n', '1\n-30\n', '1\n-57\n', '1\n-65\n', '1\n-85\n', '1\n-15\n', '1\n-24\n', '1\n-48\n', '1\n-71\n', '1\n-39\n', '1\n-99\n', '1\n-197\n', '1\n-194\n', '1\n-361\n', '1\n-633\n', '1\n-934\n', '1\n14\n', '1\n-25\n', '1\n-49\n', '1\n-40\n', '1\n-26\n', '1\n16\n', '1\n9\n', '1\n38\n', '1\n60\n', '1\n119\n', '1\n72\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
a4251ae6282cb113b176a1d669e0e1d3
__inputs__ = ['6\n1 6 2 5 3 7\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
6b64730a02b690079c47abc74a8630ee
__inputs__ = ['3\n3 12 6\n', '2\n2 9\n', '7\n2 1000000000 4 6 8 4 2\n', '6\n13 52 0 13 26 52\n', '3\n1000000000 1 1000000000\n', '10\n1 1000000000 1 1 1 1 1 1 1 1\n', '10\n1000000000 1 2 3 4 5 6 7 8 9\n', '10\n100000000 200000000 300000000 20 500000000 600000000 700000000 800000000 900000000 1000000000\n', '5\n0 0 1 0 0\n', '10\n100000000 200000000 300000000 28 500000000 600000000 700000000 800000000 900000000 1000000000\n', '10\n1 1000000000 2 1 1 1 1 1 1 1\n', '5\n0 0 1 0 -1\n', '10\n1000000000 1 2 3 4 5 6 7 2 9\n', '3\n0000000000 1 1000000000\n', '2\n1 9\n', '3\n3 8 6\n', '7\n2 1000000000 4 6 8 1 2\n', '6\n13 52 0 13 26 31\n', '10\n100000000 200000000 99172297 28 500000000 600000000 700000000 800000000 900000000 1000000000\n', '10\n1 1000000000 2 1 2 1 1 1 1 1\n', '5\n0 0 1 -1 -1\n', '10\n1000000000 1 0 3 4 5 6 7 2 9\n', '3\n0000000000 1 1000100000\n', '2\n1 15\n', '3\n3 8 0\n', '7\n2 1000000000 4 6 7 1 2\n', '6\n5 52 0 13 26 31\n', '10\n100000000 200000000 171013924 28 500000000 600000000 700000000 800000000 900000000 1000000000\n', '10\n1 1000000000 2 1 2 1 2 1 1 1\n', '10\n0000000000 1 0 3 4 5 6 7 2 9\n', '3\n0000000000 1 1001100000\n', '2\n0 15\n', '7\n2 1000000000 4 6 7 1 0\n', '6\n5 52 0 20 26 31\n', '10\n100000000 200000000 171013924 28 500000000 600000000 700000000 800000000 900000000 1000010000\n', '10\n0000000000 1 0 3 4 5 2 7 2 9\n', '3\n0000000001 1 1001100000\n', '2\n0 13\n', '3\n3 6 0\n', '7\n2 1000000000 4 6 11 1 0\n', '6\n5 52 0 20 51 31\n', '10\n100000000 200000000 171013924 28 500000000 600000000 700000000 667029535 900000000 1000010000\n', '5\n0 2 1 -1 -1\n', '10\n0000000000 2 0 3 4 5 2 7 2 9\n', '3\n0000000000 1 1001100100\n', '6\n5 70 0 20 51 31\n', '10\n100000010 200000000 171013924 28 500000000 600000000 700000000 667029535 900000000 1000010000\n', '5\n-1 2 1 -1 -1\n', '10\n0000100000 2 0 3 4 5 2 7 2 9\n', '3\n0000000000 1 1011100100\n', '7\n1 1000000100 4 6 11 1 0\n', '6\n1 70 0 20 51 31\n', '10\n100000010 23436524 171013924 28 500000000 600000000 700000000 667029535 900000000 1000010000\n', '10\n1 1000000000 0 1 2 1 2 2 -1 1\n', '5\n-1 4 1 -1 -1\n', '10\n0000100000 2 0 3 4 5 2 7 4 9\n', '3\n0000010000 1 1011100100\n', '7\n1 1000000100 4 6 10 1 0\n', '6\n1 70 0 20 51 53\n', '10\n100000010 23436524 171013924 28 985204834 600000000 700000000 667029535 900000000 1000010000\n', '10\n0000100000 2 0 0 4 5 2 7 4 9\n', '3\n0000010000 0 1011100100\n', '3\n5 7 -1\n', '6\n1 70 -1 20 51 53\n', '10\n100000010 23436524 225774845 28 985204834 600000000 700000000 667029535 900000000 1000010000\n', '10\n0000100000 2 0 0 4 5 1 7 4 9\n', '3\n0100010000 0 1011100100\n', '3\n5 11 -1\n', '7\n1 1000000100 6 6 10 1 0\n', '6\n1 70 -1 19 51 53\n', '10\n100000010 23436524 225774845 28 985204834 600000000 700000000 667029535 518484041 1000010000\n', '10\n0000100000 2 0 0 4 10 1 7 4 9\n', '3\n0100010001 0 1011100100\n', '3\n7 11 -1\n', '7\n2 1000000100 6 6 10 1 0\n', '6\n1 70 -1 19 51 6\n', '10\n100000010 23436524 225774845 0 985204834 600000000 700000000 667029535 518484041 1000010000\n', '10\n1 1010000000 0 0 4 1 2 2 -1 1\n', '3\n0100010001 0 1011100101\n', '3\n7 0 -1\n', '6\n1 70 -1 38 51 6\n', '10\n100000010 23436524 225774845 0 1237987973 600000000 700000000 667029535 518484041 1000010000\n', '10\n1 1010001000 0 0 4 1 2 2 -1 1\n', '10\n0000100000 2 0 0 0 10 1 7 4 17\n', '3\n0100010001 -1 1011100101\n', '7\n0 1000000100 6 6 16 1 0\n', '6\n1 70 -1 38 51 4\n', '10\n100000010 23436524 225774845 0 1237987973 600000000 700000000 667029535 518484041 1000011000\n', '10\n1 1010001000 0 0 4 1 2 2 -1 0\n', '10\n0000101000 2 0 0 0 10 1 7 4 17\n', '5\n0 0 1 -2 -1\n', '3\n3 4 0\n', '10\n1 1000000000 0 1 2 1 2 1 1 1\n', '5\n0 1 1 -1 -1\n', '10\n1 1000000000 0 1 2 1 2 2 1 1\n', '2\n-1 13\n', '3\n5 6 0\n', '7\n1 1000000000 4 6 11 1 0\n', '10\n1 1000000000 0 1 2 1 2 2 0 1\n', '3\n5 4 0\n', '3\n5 4 -1\n', '10\n1 1000000000 0 1 3 1 2 2 -1 1\n', '5\n-1 0 1 -1 -1\n', '7\n1 1000000100 5 6 10 1 0\n', '10\n1 1000000000 0 0 3 1 2 2 -1 1\n', '5\n0 0 1 -1 0\n', '10\n1 1000000000 0 0 4 1 2 2 -1 1\n', '5\n0 -1 1 -1 0\n', '10\n0000100000 2 0 0 0 10 1 7 4 9\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
e0d3757494ec4af33cb5949feae8a97b
__inputs__ = ['3\n3 12 6\n', '2\n2 9\n', '7\n2 1000000000 4 6 8 4 2\n', '6\n13 52 0 13 26 52\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
0484881aabe956de53a2f4ef632e8ab3
README.md exists but content is empty.
Downloads last month
34