test stringlengths 184 51.6M | hash stringlengths 32 32 |
|---|---|
__inputs__ = ['5\n4\n1 2 3 4\n7\n4 3 3 8 4 5 2\n3\n1 1 1\n7\n1 3 1 4 5 3 2\n5\n5 4 3 2 3\n', '5\n4\n1 2 3 4\n7\n4 3 3 8 4 5 2\n3\n1 1 1\n7\n1 3 1 7 5 3 2\n5\n5 4 3 2 3\n', '5\n4\n1 2 3 4\n7\n4 3 3 8 4 5 2\n3\n1 1 1\n7\n1 3 1 0 5 3 2\n5\n5 4 3 2 3\n', '5\n4\n1 2 3 4\n7\n4 5 3 8 4 5 2\n3\n1 1 1\n7\n1 3 1 4 0 3 2\n5\n5 4 ... | 4ed2ad32acd5b9f991a8f564334cbda1 |
__inputs__ = ['5\n4\n1 2 3 4\n7\n4 3 3 8 4 5 2\n3\n1 1 1\n7\n1 3 1 4 5 3 2\n5\n5 4 3 2 3\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| c7e8e1a7acbfd3ac0e183f5f8bed6e92 |
__inputs__ = ['4 4\n1 2\n2 3\n3 1\n4 1\n', '6 5\n1 2\n2 3\n3 4\n4 5\n3 6\n', '2 1\n1 2\n', '3 3\n2 1\n1 3\n3 2\n', '3 2\n1 2\n2 3\n', '9 8\n1 2\n2 3\n3 4\n4 1\n5 6\n6 7\n7 8\n8 9\n', '8 7\n6 2\n1 5\n4 8\n4 7\n6 7\n8 3\n8 1\n', '200 5\n93 101\n199 164\n14 94\n115 61\n106 156\n', '10 9\n6 5\n9 2\n4 7\n2 3\n7 3\n3 4\n10 6... | 477f0ed3f5a65464dbd8ac1fd907e542 |
__inputs__ = ['4 4\n1 2\n2 3\n3 1\n4 1\n', '6 5\n1 2\n2 3\n3 4\n4 5\n3 6\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| a5d9fe15f68e260a792c5c8e45da95ca |
__inputs__ = ['5 5\n0 0 0 0 1\n2 1 0 2 0\n1 0 0 1 1\n0 2 1 2 0\n0 1 0 0 0\n5 5\n0 0 1 0 0\n2 1 0 2 0\n1 0 0 1 1\n0 2 1 2 0\n0 1 0 0 0\n15 15\n0 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\n0 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\n0 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... | 7b41effa1b4e9ea0732479ff29a1317f |
__inputs__ = ['5 5\n0 0 0 0 1\n2 1 0 2 0\n1 0 0 1 1\n0 2 1 2 0\n0 1 0 0 0\n5 5\n0 0 1 0 0\n2 1 0 2 0\n1 0 0 1 1\n0 2 1 2 0\n0 1 0 0 0\n15 15\n0 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\n0 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\n0 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... | 9e1681c17619f2c8e0972b099aae0868 |
__inputs__ = ['5 8\n121351 0 13513 0 165454\n', '9 5\n0 0 0 0 0 0 0 0 6\n', '6 6\n0 10 0 0 10 0\n', '6 2\n1000000000 1000000000 1000000000 1000000000 1000000000 1000000000\n', '19 100000\n1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1\n', '1 1\n15141354\n', '5 3\n0 0 14 0 0\n', '20 20\n0 0 0 0 0 0 154 0 0 0 0 0 0 0 0 0 0 0 0 0\... | f16ae4a24d17c68e0675d528f5c77b92 |
__inputs__ = ['3 2\n1 0 2\n', '2 1\n1 1\n', '4 100\n3 4 5 4\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 4893d49fc285a87fa7ae72c9b5045e91 |
__inputs__ = ['10 1 1\n2\n1 3\n1 7\n', '30 2 1\n10\n1 4\n2 1\n1 1\n1 3\n1 1\n1 1\n1 2\n1 5\n2 4\n2 7\n', '10 1 1\n5\n1 1\n1 2\n1 3\n2 2\n1 4\n', '10 1 1\n2\n1 3\n1 6\n', '50 2 3\n15\n1 7\n1 6\n1 1\n2 3\n2 1\n2 2\n1 1\n1 4\n1 6\n1 2\n1 8\n1 6\n2 7\n1 8\n2 9\n', '50 3 1\n30\n1 9\n2 1\n1 6\n1 5\n1 8\n1 1\n2 6\n1 7\n2 3\n2... | a72743d724840fbf403da8534a93b090 |
__inputs__ = ['10 1 1\n1\n1 12\n', '30 1 2\n6\n1 5\n1 4\n1 5\n2 2\n1 5\n1 4\n', '30 1 1\n6\n1 5\n1 4\n1 5\n2 2\n1 5\n1 4\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 3322633521969583c4f8bb4cb7154396 |
__inputs__ = ['QAQAQYSYIOIWIN\n', 'QAQQQZZYNOIWIN\n', 'QA\n', 'IAQVAQZLQBQVQFTQQQADAQJA\n', 'QQAAQASGAYAAAAKAKAQIQEAQAIAAIAQQQQQ\n', 'AMVFNFJIAVNQJWIVONQOAOOQSNQSONOASONAONQINAONAOIQONANOIQOANOQINAONOQINAONOXJCOIAQOAOQAQAQAQAQWWWAQQAQ\n', 'AAQQAXBQQBQQXBNQRJAQKQNAQNQVDQASAGGANQQQQTJFFQQQTQQA\n', 'KAZXAVLPJQBQVQQQQQAPAQ... | f53ba402ec49d25544f6295d877844c8 |
__inputs__ = ['QAQAQYSYIOIWIN\n', 'QAQQQZZYNOIWIN\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 009655a4615e78a39bd954ec5b839cc8 |
__inputs__ = ['6\n9 english\n6 mathematics\n8 geography\n-1\n3 graphics\n-1\n', '6\n9 english\n6 mathematics\n14 geography\n-1\n3 graphics\n-1\n', '6\n9 english\n9 lathematics\n14 reoggaphy\n-1\n3 graphics\n-1\n', '6\n9 english\n9 lathematics\n14 reoggaphy\n-1\n3 scihparg\n-1\n', '6\n9 hsilgne\n9 lathematics\n14 reogga... | 0914adcafa8be77fc50104e28854fc89 |
__inputs__ = ['6\n9 english\n6 mathematics\n8 geography\n-1\n3 graphics\n-1\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 855cc2da0f657adfff76ae06a3bd1f53 |
__inputs__ = ['4 10\n', '8 9\n', '8 8\n', '4 12\n', '9 12\n', '13 17\n', '3 17\n', '10 19\n', '6 11\n', '20 19\n', '10 6\n', '2 20\n', '2 1\n', '20 1\n', '2 10\n', '8 4\n', '4 9\n', '2 5\n', '7 9\n', '2 9\n', '4 14\n', '2 15\n', '4 1\n', '2 8\n', '2 14\n', '2 7\n', '2 13\n', '2 17\n', '2 26\n', '3 31\n', '2 24\n', '2 1... | 6c5904ec746cd707f8a9221cb5859ecb |
__inputs__ = ['4 10\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| dfbca86c7f749c2dbfa01f189eb0805d |
__inputs__ = ['5\n1 2 3 3 4 5 7 7 7\nR R R R R R G G G\n1 2 2 3 4 4 4 4 5\nR R R R R R R R R\n1 2 3 4 4 4 5 5 5\nR R B R R R R R R\n1 1 1 3 4 5 6 6 6\nR R B G G G R R R\n2 2 2 3 3 3 1 1 2\nR G B R G B R G B\n', '5\n1 2 3 3 4 5 7 7 7\nR R R R R R G G G\n1 2 2 3 4 4 4 4 5\nR R R R R R R R R\n1 2 3 4 4 4 5 5 5\nR R B R R ... | b25856949b923b8475f4a075e72c8c6a |
__inputs__ = ['5\n1 2 3 3 4 5 7 7 7\nR R R R R R G G G\n1 2 2 3 4 4 4 4 5\nR R R R R R R R R\n1 2 3 4 4 4 5 5 5\nR R B R R R R R R\n1 1 1 3 4 5 6 6 6\nR R B G G G R R R\n2 2 2 3 3 3 1 1 1\nR G B R G B R G B\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encod... | f9d6ec06c46e7ad9828d7a1c5c14630a |
__inputs__ = ['-12 -35\n', '-215 -996\n', '-96 -556\n', '-1000 0\n', '20 -21\n', '0 0\n', '207 -224\n', '-668 970\n', '-496 -644\n', '253 -204\n', '-129 489\n', '15 -8\n', '-589 952\n', '0 2\n', '-216 -90\n', '-72 -646\n', '280 342\n', '0 1000\n', '875 -129\n', '-201 278\n', '-196 -484\n', '-4 -4\n', '-677 492\n', '377... | 01877ab9556afed9ba03a6532194db10 |
__inputs__ = ['-2 1\n', '4 3\n', '2 1\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| f341d26e2afeadd3f99ec2cec22f0197 |
def is_eq(a, b):
if a == b:
return True
elif isinstance(a, (int, float)) and isinstance(b, (int, float)):
return abs(a - b) < 1e-4
elif isinstance(a, list) and isinstance(b, list):
if len(a) != len(b):
return False
for x, y in zip(a, b):
if not is_eq(... | aac527bc02e43b6bac640afe22f55edf |
def is_eq(a, b):
if a == b:
return True
elif isinstance(a, (int, float)) and isinstance(b, (int, float)):
return abs(a - b) < 1e-4
elif isinstance(a, list) and isinstance(b, list):
if len(a) != len(b):
return False
for x, y in zip(a, b):
if not is_eq(... | 2ad1fd479a2ca3d34ab7abe76a90fdb7 |
__inputs__ = ['4\nRURD\n', '6\nRRULDD\n', '26\nRRRULURURUULULLLDLDDRDRDLD\n', '3\nRLL\n', '4\nLRLR\n', '5\nLRDLR\n', '10\nDDRDUULUDD\n', '1\nD\n', '5\nLRRLD\n', '6\nDDLURR\n', '5\nRLDRL\n', '10\nLDRDUUDUDD\n', '26\nDLDRDRDDLDLLLULUURURULURRR\n', '26\nRURULRRURUDLULLLDLDURDRDLD\n', '26\nDLDRDRDRUDLLLULULRURULUDRR\n', '1... | 1d7750168f609491b5934800718f4594 |
__inputs__ = ['4\nRURD\n', '6\nRRULDD\n', '26\nRRRULURURUULULLLDLDDRDRDLD\n', '3\nRLL\n', '4\nLRLR\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| eaaf022277c0c769853bf3ac017d1880 |
__inputs__ = ['7\n3 6\n1 2\n3 1\n7 4\n5 7\n1 4\n', '4\n1 4\n4 2\n2 3\n', '4\n1 4\n4 3\n2 3\n', '7\n3 6\n2 2\n3 1\n7 4\n5 7\n1 4\n', '7\n3 6\n2 2\n3 1\n7 4\n4 7\n1 4\n', '7\n3 6\n1 2\n3 2\n7 4\n5 7\n1 4\n', '7\n3 6\n2 2\n3 1\n5 4\n4 7\n1 4\n', '4\n1 2\n4 2\n2 3\n', '4\n1 4\n4 3\n2 1\n', '7\n3 6\n1 2\n3 1\n7 4\n5 7\n2 4\... | 2c029d8bf313b69e04a09b1211d1bab3 |
__inputs__ = ['7\n3 6\n1 2\n3 1\n7 4\n5 7\n1 4\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| fa1c59909af86963ac72867180f61fe8 |
__inputs__ = ['4 4 6\n2 2\n3 2 \n3 2 \n4 3\n4 4\n4 3\n', '4 4 6\n3 2\n3 2 \n3 2 \n4 3\n4 4\n4 3\n', '4 4 6\n3 2\n3 2 \n3 2 \n4 3\n4 4\n4 1\n', '4 4 6\n3 2\n3 3 \n3 2 \n4 3\n4 4\n4 3\n', '4 6 6\n3 2\n2 3 \n3 2 \n4 3\n4 4\n4 3\n', '4 6 2\n3 2\n2 3 \n3 2 \n4 3\n4 4\n4 3\n', '3 6 2\n1 2\n3 0 \n6 2 \n4 3\n1 1\n5 3\n', '3 4 ... | b40ba1369a973a8f939f100e0988e72a |
__inputs__ = ['4 4 6\n2 2\n3 2 \n3 2 \n4 3\n4 4\n4 3\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| ae79637a3faa93e7904144876dd62f3e |
__inputs__ = ['1\n4\n10 20 34 55\n4\n7 14\n7 21\n14 21\n7 35\n', '1\n4\n10 20 34 55\n4\n7 14\n7 21\n14 6\n7 35\n', '1\n4\n10 20 34 55\n4\n7 14\n7 21\n14 6\n7 2\n', '1\n2\n10 20 34 55\n4\n7 5\n2 4\n21 6\n7 2\n', '1\n4\n10 8 45 28\n4\n7 26\n4 21\n21 6\n13 35\n', '1\n4\n20 8 45 40\n4\n13 38\n4 38\n3 7\n10 55\n', '1\n4\n10... | 4e34fd922f14244623a4fa201f370416 |
__inputs__ = ['1\n4\n10 20 34 55\n4\n7 14\n7 21\n14 21\n7 35\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 23a1388b930d7f51746c9f9a946cda6a |
__inputs__ = ['3\n2\n3\n4\n', '3\n4\n3\n4\n', '3\n4\n2\n4\n', '3\n6\n2\n3\n', '3\n6\n2\n7\n', '3\n12\n2\n7\n', '3\n14\n2\n7\n', '3\n2\n2\n4\n', '3\n6\n4\n3\n', '3\n14\n3\n7\n', '3\n4\n2\n7\n', '3\n2\n2\n8\n', '3\n4\n4\n2\n', '3\n6\n4\n5\n', '3\n14\n5\n7\n', '3\n4\n3\n7\n', '3\n4\n4\n5\n', '3\n14\n9\n8\n', '3\n4\n5\n6\n... | 9cb7ea9ca5582befdecabb5a142a3608 |
__inputs__ = ['3\n2\n3\n4\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 02a5fc310d8d07f562aba9e3f9744f46 |
__inputs__ = ['5 3 2\n', '5 4 2\n', '300 300 3\n', '300 282 7\n', '1000000000 1000000000 1000000000\n', '1000000000 800000000 2\n', '2 0 2\n', '2 1 2\n', '2 2 2\n', '3 2 2\n', '3 3 2\n', '10 7 3\n', '10 8 3\n', '10 8 5\n', '10 9 5\n', '972 100 2\n', '972 600 2\n', '972 900 2\n', '972 900 4\n', '972 900 5\n', '12345 112... | 804c9d796522b9ca9a02791d8988bd6f |
__inputs__ = ['5 3 2\n', '5 4 2\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 4c31a26594360e3352f17aa0b3475c89 |
__inputs__ = ['4\n1 2 3 4\n4 3 2 1\n1009\n', '100\n2 2 10 3 5 6 4 7 9 8 2 7 5 5 1 7 5 9 2 2 10 3 6 10 9 9 10 7 3 9 7 8 8 3 9 3 9 3 3 6 3 7 9 9 7 10 9 1 1 3 6 2 9 5 9 9 6 2 6 5 6 8 2 10 1 1 6 8 8 4 5 2 6 8 8 5 9 2 3 3 7 7 10 5 4 2 10 6 7 6 5 4 10 6 10 3 9 9 1 5\n3 5 6 4 2 3 2 9 3 8 3 1 10 7 4 3 6 9 3 5 9 5 3 10 4 7 9 7 ... | c948b8143b0e79d4f3e598e99394e026 |
__inputs__ = ['1\n1\n2\n7\n', '2\n1 2\n2 3\n11\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 4e2901dfb1b30ad119f8167d9e6bdee7 |
__inputs__ = ['16\n.**.*..*.***.**.\n', '11\n.*.*...*.*.\n', '53\n*.*.****.*.*......**....**.***.*.*.**.*.*.***...*..*.\n', '71\n**.**..*****.*.*.*.********.....*****.****.*..***...*.*.*.**.****.**.**\n', '56\n**.*..*...***.*.**.**..**.*.*.*.**...*.**.**....*...**..\n', '64\n***.*...*...*.***.....*.....**.*****.*.*...*... | 6ccd15ffc240b8f0827008ac2240ed91 |
__inputs__ = ['16\n.**.*..*.***.**.\n', '11\n.*.*...*.*.\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 2d549568e917612df7292895e5cb2793 |
__inputs__ = ['2 5\n20 10\n25 15\n', '3 9\n16 10\n10 10\n10 10\n', '2 5\n20 16\n25 15\n', '2 5\n20 13\n25 15\n', '2 6\n20 10\n43 15\n', '3 9\n10 10\n7 10\n10 10\n', '3 9\n10 10\n7 10\n10 18\n', '2 5\n20 11\n25 10\n', '3 9\n7 10\n13 10\n10 10\n', '2 5\n38 9\n25 15\n', '3 9\n10 10\n5 10\n10 18\n', '2 5\n38 9\n39 15\n', '... | 8a37bed0b80cd1c17c48155b5e146512 |
__inputs__ = ['1 1000000000\n1000000000000000000 1000000000\n', '2 6\n20 10\n25 15\n', '3 9\n10 10\n10 10\n10 10\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| d442af48968fb6aa3a0fb7045e5f7510 |
__inputs__ = ['2\n1 1 4\n2 2 3\n', '2\n1 1 3\n2 2 3\n', '2\n1 1 4\n2 0 0\n', '2\n0 1 1\n2 0 0\n', '2\n1 1 2\n2 0 0\n', '2\n1 1 0\n3 0 0\n', '2\n1 1 2\n3 2 3\n', '2\n1 1 4\n2 2 5\n', '2\n1 0 5\n2 1 3\n', '2\n1 1 4\n4 2 5\n', '2\n1 0 8\n1 -1 3\n', '2\n1 1 7\n2 2 6\n', '2\n1 2 7\n2 3 12\n', '2\n1 0 7\n2 3 12\n', '2\n0 1 1... | a211b217161ae0cabca96e22b0f6b163 |
__inputs__ = ['2\n1 1 2\n2 2 3\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 9ed40e0fdc09b2e9833f86d3ad535a57 |
__inputs__ = ['3\n-1000000000 1000000000\n1000000000 0\n1000 -1000000000\n3\n1000 -999999999\n1000 0\n1001 0\n', '4\n0 3\n3 0\n0 -3\n-3 0\n4\n2 2\n2 -2\n-2 -2\n-2 2\n', '4\n0 0\n9 4\n12 -5\n5 -5\n4\n2 0\n2 3\n5 3\n5 0\n', '6\n3 3\n3 -3\n0 -4\n-4 -1\n-4 2\n1 5\n9\n0 0\n2 1\n2 -3\n0 -1\n0 -3\n-2 -2\n-1 -1\n-2 1\n2 2\n', ... | b235ed466c55c0543bc76517c61ab9fb |
__inputs__ = ['5\n1 2\n4 2\n3 -3\n-2 -2\n-2 1\n4\n0 1\n1 2\n4 1\n2 -1\n', '5\n-1 2\n2 3\n4 1\n3 -2\n0 -3\n5\n1 0\n1 1\n3 1\n5 -1\n2 -1\n', '6\n-2 1\n0 3\n3 3\n4 1\n3 -2\n2 -2\n4\n0 1\n2 2\n3 1\n1 0\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8... | c5ae08c5466b4caa2ad05ea58cb6d1fb |
__inputs__ = ['4\n22\n9999\n1\n777\n', '36\n1\n2\n3\n4\n5\n6\n7\n8\n9\n11\n22\n33\n44\n55\n66\n77\n88\n99\n111\n222\n333\n444\n555\n666\n777\n888\n999\n1111\n2222\n3333\n4444\n5555\n6666\n7777\n8888\n9999\n', '36\n9999\n9999\n9999\n9999\n9999\n9999\n9999\n9999\n9999\n9999\n9999\n9999\n9999\n9999\n9999\n9999\n9999\n9999... | a8171f340bc90c2b71f8ba9591667215 |
__inputs__ = ['4\n22\n9999\n1\n777\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 5a2f8acadc4fddd919a72e05dfb1f34d |
__inputs__ = ['4\n1 2 3 4\n3\n2 3\n1 2 2\n2 1\n', '5\n3 50 2 1 10\n3\n1 2 0\n2 8\n1 3 20\n', '10\n1 2 3 4 5 6 7 8 9 10\n10\n2 1\n2 2\n2 3\n2 4\n2 5\n2 6\n2 7\n2 8\n2 9\n2 10\n', '5\n1 2 3 4 5\n10\n1 1 0\n2 1\n1 2 0\n2 2\n1 3 0\n2 3\n1 4 0\n2 4\n1 5 0\n2 5\n', '10\n7 9 4 4 7 6 3 7 9 8\n10\n1 3 2\n1 10 5\n1 5 3\n1 5 2\n1... | 72c073cf56d66f58aa7378d8ca404b23 |
__inputs__ = ['4\n1 2 3 4\n3\n2 3\n1 2 2\n2 1\n', '5\n3 50 2 1 10\n3\n1 2 0\n2 8\n1 3 20\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 300a47df6aefa0da8b198a432772a130 |
__inputs__ = ['4\n3\n4 5\n5 9\n7 7\n5\n11 19\n4 17\n16 16\n3 12\n14 17\n1\n1 10\n1\n1 1\n', '1\n10\n132182352 630066892\n323711215 923129673\n259700817 882571434\n226161845 398771294\n243750814 771888758\n322757488 771114163\n241900265 761492222\n197067927 815099563\n33872533 895781009\n271628366 729808874\n', '4\n1\n1... | 2eede30438f1bfb0585b2b107624af42 |
__inputs__ = ['4\n3\n4 5\n5 9\n7 7\n5\n11 19\n4 17\n16 16\n3 12\n14 17\n1\n1 10\n1\n1 1\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| f30ca6d3c5d0c92e0ad33d539cc36885 |
__inputs__ = ['10 9\n624\n47 56 60 51 88 82 77 83 89 100\n', '10 2\n1523\n661 230 363 300 28 72 676 741 837 984\n', '100 10\n9199\n89 409 428 408 309 400 259 393 212 273 472 654 533 774 663 484 695 801 587 518 521 578 767 644 532 785 500 944 582 680 899 882 589 601 614 633 877 543 770 614 852 715 932 627 639 658 765 95... | 50ab930b44f08becc492e691d861a20f |
__inputs__ = ['5 2\n8\n2 4 5 3 1\n', '5 4\n1000000000000000\n5 4 3 2 1\n', '5 2\n8\n3 2 4 1 5\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 2c61c57614b67730749107e1a276bddc |
__inputs__ = ['AORNNDKTRLRVGDPXJKXFTPFpopuzrlqumrxssskvbm\n', 'ERPZGrodyu\n', 'EBWOVSNLYTWWXrnovgugogtjahnmatomubebyxakas\n', 'Ur\n', 'XHRPXZEGHSOCJPICUIXSKFUZUPYTSGJSDIYBCMNMNBPNDBXLXBzhbfnqvwcffvrdhtickyqhupmcehlsyvncqmfhautvxudqdhgg\n', 'RJIQZMJCIMSNDBOHBRAWIENODSALETAKGKPYUFGVEFGCBRENZGAdkcetqjljtmttlonpekcovdzebzd... | b1de88160301b0d5d24cceaca33b5081 |
__inputs__ = ['ViP\n', 'maTRIx\n', 'HoUse\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 3557177c90c2949f1f44b19d1551e318 |
__inputs__ = ['yxxxxxxxxx\n', 'aatu\n', 'abracbdabra\n', 'yxxxxxxxxw\n', 'yxxxxxxyxw\n', 'yxxxxxxzxw\n', 'yxxxwxxzxw\n', 'aaracbdaarb\n', 'wxzxxxwxxz\n', 'aarqabdaacb\n', 'abrqabdaacb\n', 'ttaa\n', 'yxxxxyxxxx\n', 'arbadbcbrca\n', 'vxzxxwxxxy\n', 'zxxwyxxzxw\n', 'arbadbcbsca\n', 'yxzxxwwxxw\n', 'vyzxxwxxxy\n', 'aqbadac... | da2fc952fcb7fef351352641ee8b41e2 |
__inputs__ = ['xxxxxxxxxx\n', 'aatt\n', 'abracadabra\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 4bcf34e0a0e05c9a5b7dc58c0445585f |
__inputs__ = ['2\n100000001 95312501 97600001 1\n', '1\n1000000000 1000000000\n', '2\n81475384 79354071 83089784 94987161\n', '4\n4 1 3 2 3 11 1 3\n', '2\n1 499999999 705032704 1000000000\n', '2\n186213023 151398020 526707498 169652181\n', '1\n553296794 23577639\n', '2\n95988141 53257147 119443802 199984654\n', '2\n229... | 2223c5a82d17a5fcfd78830155328cc9 |
__inputs__ = ['4\n4 1 3 2 3 2 1 3\n', '3\n5 8 5 5 7 5\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 46927cf2af8ab5d8dd8adbd62762ff22 |
__inputs__ = ['3 2\n3 4 5\n', '4 3\n2 3 5 6\n', '4 3\n9 1 1 1\n', '2 2\n654 1162\n', '5 5\n1182 1182 1182 1183 1182\n', '5 2\n1834 1833 1836 1836 1836\n', '5 2\n679 678 679 678 677\n', '5 3\n818 819 820 819 820\n', '3 2\n795 611 751\n', '4 2\n1639 1165 228 810\n', '5 5\n1187 1719 1898 575 1692\n', '123 79\n49 100 128 1... | eb1d4afcdbed018988887959295571f7 |
__inputs__ = ['3 2\n3 4 5\n', '4 3\n2 3 5 6\n', '4 3\n9 1 1 1\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| c99ec6029836bc4fa39bd5af2aab7caf |
__inputs__ = ['5 51\n10 23\n23 42\n39 42\n10 39\n39 58\n', '5 100\n1 2\n1 3\n1 4\n2 3\n2 4\n', '4 1\n1 2\n1 3\n2 3\n4 5\n', '10 100\n60976680 603454792\n575754027 696647370\n7534463 570826751\n117972518 472387015\n35713567 439985965\n439985965 928160845\n443596853 828504858\n689509731 117972518\n909843480 592765058\n25... | cd73e89a24ec0357f83f4775acd19ee8 |
__inputs__ = ['5 51\n10 23\n23 42\n39 42\n10 39\n39 58\n', '5 100\n1 2\n1 3\n1 4\n2 3\n2 4\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 30503d5b4de845d5bf10b6b12acd2cf7 |
__inputs__ = ['10 8 3\n', '1000000000000000000 1000000000000000000 1001\n', '5 2 3\n', '10 8 6\n', '2 2 2\n', '1 10 1\n', '10 6 6\n', '2 3 2\n', '2 10 2\n', '2 11 2\n', '3 5 3\n', '6 5 3\n', '6 5 2\n', '6 8 2\n', '12 8 2\n', '9 8 2\n', '9 15 2\n', '9 16 2\n', '9 20 2\n', '9 20 0\n', '7 20 0\n', '5 12 3\n', '2 15 1\n', ... | 3a7d67e0f07d1524470067f840ca2676 |
__inputs__ = ['7 8 3\n', '1000000000000000000 1000000000000000000 1000\n', '5 10 3\n', '1 1 2\n', '2 10 1\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| a8a809340009adb7694515d4e9951509 |
__inputs__ = ['6 4 10\n3 1 1 1 2 2\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n', '4 5 4\n4 4 5 1\n15\n9\n13\n6\n', '1 1 20\n1\n2\n5\n200\n199\n198\n24\n123\n100\n101\n100\n3\n6\n200\n193\n191\n24\n123\n78\n109\n13\n', '1 100 20\n5\n2\n3\n4\n5\n100\n101\n102\n103\n200\n78\n6\n7\n8\n9\n10\n104\n105\n106\n107\n108\n', '100 99 ... | 707c23758f834acc2e5e1edc17d62299 |
__inputs__ = ['6 4 10\n3 1 1 1 2 2\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n', '4 5 4\n4 4 5 1\n15\n9\n13\n6\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| bba5abacd6897c01a24ec7ed9ceb2152 |
__inputs__ = ['2\n2\n0\n', '2\n17\n0\n', '2\n7\n0\n', '2\n0\n0\n', '2\n14\n0\n', '2\n10\n0\n', '2\n11\n0\n', '2\n22\n0\n', '2\n15\n0\n', '2\n5\n0\n', '2\n18\n0\n', '2\n1\n0\n', '2\n24\n0\n', '2\n12\n0\n', '2\n3\n0\n', '2\n13\n0\n', '2\n8\n0\n', '2\n16\n0\n', '2\n6\n0\n', '2\n4\n0\n', '2\n33\n0\n', '2\n23\n0\n', '2\n58\... | 90498f31d70b2e47d5372b48b8f760aa |
__inputs__ = ['2\n9\n0\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 80ccff1c49c5692c52c3e8a02256573e |
__inputs__ = ['3\n6\n3 7 1 4 2 4\n5\n5 4 3 2 1\n5\n4 3 2 2 3\n', '3\n6\n3 7 1 4 2 4\n5\n5 4 3 2 1\n5\n4 3 1 2 3\n', '3\n6\n3 1 1 4 2 4\n5\n5 4 3 2 1\n5\n4 3 1 2 3\n', '3\n6\n3 1 1 4 2 4\n5\n2 4 3 2 1\n5\n4 3 1 2 3\n', '3\n6\n1 1 0 4 2 4\n5\n4 4 3 2 1\n5\n4 0 1 2 3\n', '3\n6\n1 1 0 4 2 4\n5\n4 7 3 2 2\n5\n4 0 1 2 3\n', ... | 15e2108470db69b76881564b0f729b70 |
__inputs__ = ['3\n6\n3 7 1 4 2 4\n5\n5 4 3 2 1\n5\n4 3 2 2 3\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 1c3323f84ab95ad8a45083a04252dd2b |
__inputs__ = ['8\n20 1000\n32 37\n40 1000\n45 50\n16 16\n16 16\n14 1000\n2 1000\n', '7\n4 4\n4 4\n4 4\n4 4\n4 4\n4 4\n5 5\n', '7\n14000000003 1000000000000000000\n81000000000 88000000000\n5000000000 7000000000\n15000000000 39000000000\n46000000000 51000000000\n0 1000000000\n0 0\n', '2\n100 150\n5 100000\n', '9\n4 70\n3... | 89554f5ff9730c3a72a4d2378482c2e1 |
__inputs__ = ['8\n20 1000\n32 37\n40 1000\n45 50\n16 16\n16 16\n14 1000\n2 1000\n', '7\n4 4\n4 4\n4 4\n4 4\n4 4\n4 4\n5 5\n', '7\n14000000003 1000000000000000000\n81000000000 88000000000\n5000000000 7000000000\n15000000000 39000000000\n46000000000 51000000000\n0 1000000000\n0 0\n']
for __inp__ in __inputs__:
import... | 8941c71ed1943a42984a08bccb79523c |
def is_eq(a, b):
if a == b:
return True
elif isinstance(a, (int, float)) and isinstance(b, (int, float)):
return abs(a - b) < 1e-4
elif isinstance(a, list) and isinstance(b, list):
if len(a) != len(b):
return False
for x, y in zip(a, b):
if not is_eq(... | 035e8faf29a0c638701d48faa524f6a9 |
def is_eq(a, b):
if a == b:
return True
elif isinstance(a, (int, float)) and isinstance(b, (int, float)):
return abs(a - b) < 1e-4
elif isinstance(a, list) and isinstance(b, list):
if len(a) != len(b):
return False
for x, y in zip(a, b):
if not is_eq(... | 2ad1fd479a2ca3d34ab7abe76a90fdb7 |
__inputs__ = ['14\n', '86483718001\n', '79402108049\n', '26\n', '59146214190\n', '14885609983\n', '4\n', '19238477126\n', '3123061804\n', '3577561486\n', '2369636804\n', '0\n', '3247730789\n', '1112597576\n', '1610699774\n', '544563173\n', '973659229\n', '1835108767\n', '8\n', '1759015471\n', '2111835413\n', '363015607... | 396515e77ce8182ad66c368402430b81 |
__inputs__ = ['7\n', '149696127901\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 758287841d3b1cc1fab3a4f872206500 |
__inputs__ = ['2 100\n', '5 30\n', '42147 412393322\n', '77809 868097296\n', '5105 443422097\n', '75615 376679484\n', '22951 23793302\n', '12785 993582106\n', '60276 428978808\n', '84776 104860385\n', '41984 653766991\n', '100000 1000000000\n', '41163 472310076\n', '6983 765352180\n', '33493 967727004\n', '90898 940109... | da9965dca73935d3cc5627725fe3c855 |
__inputs__ = ['2 100\n', '5 30\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| e723424670f0aeba60ae645422343996 |
__inputs__ = ['6 2\n', '809 9265\n', '13 0\n', '8 2\n', '11 0\n', '8 4\n', '8 5\n', '8 7\n', '8 0\n', '4 2\n', '7 2\n', '13 2\n', '20 2\n', '20 0\n', '5 0\n', '38823 9265\n', '17 0\n', '12 2\n', '2 0\n', '8 1\n', '9 0\n', '14 4\n', '809 718\n', '6 0\n', '1531 24\n', '7 3\n', '4 1\n', '7 0\n', '13 1\n', '23 2\n', '20 1\... | 730620bf2aa960435c94a19701bb92ee |
__inputs__ = ['5 2\n', '31415 9265\n', '10 0\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| bb044ca66e0f0d4fac42c116c3acee15 |
__inputs__ = ['2 100\n10 9\n', '5 3\n10 30 40 50 24\n', '3 4\n40 10 20 70 80 10 20 70 80 60\n', '3 1\n0 20 10\n', '3 4\n40 10 17 70 80 10 20 70 80 60\n', '2 100\n7 10\n', '10 4\n40 9 20 70 80 10 20 70 80 60\n', '3 1\n9 20 10\n', '2 100\n17 9\n', '3 4\n40 10 34 70 80 10 20 70 80 60\n', '3 1\n1 20 10\n', '2 101\n10 10\n'... | 616f0723ef57e51663b450ddebf04c72 |
__inputs__ = ['2 100\n10 10\n', '5 3\n10 30 40 50 20\n', '10 4\n40 10 20 70 80 10 20 70 80 60\n', '3 1\n10 20 10\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| c6fb45bf97ef010117fcdc802bfdfed5 |
__inputs__ = ['11500\n', '999999\n', '7\n', '10\n', '19\n', '4994\n', '2\n', '3410\n', '12\n', '999996\n', '838069\n', '1000000\n', '999997\n', '5\n', '40\n', '63405\n', '8\n', '999998\n', '21\n', '18\n', '22\n', '100\n', '17\n', '999000\n', '12357\n', '9\n', '11\n', '16\n', '21341\n', '670293\n', '6578\n', '696485\n',... | b680d951902caa36e05a3c534d146ac4 |
__inputs__ = ['3\n', '4\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 4fa9d080d99bcb863d41f5676bb454f7 |
__inputs__ = ['chokudai\nchokudaiz\n', 'snuke\nsnekee\n', 'a\naa\n', 'c\nbc\n', 'irjgore\nqirjgore\n', 'iwiwi\niwiwiw\n', 'aaaaaaaaaa\naaaaaaaaaaa\n', 'vgxgpuamkx\nvgxgpuamkxk\n', 'zhkbp\nphykin\n', 'e\nzp\n', 'vfjaqmop\nodotkrjzr\n', 'snuke\nsnelee\n', 'b\nba\n', 'a\nba\n', 'choktdai\nchokudaiz\n', 'nsuke\nsnelee\n', ... | 16341f3ed81ebc1d4d93f9e44a8f6d50 |
__inputs__ = ['chokudai\nchokudaiz\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 2d87e1ce58280e6de454c8c5fc0ef1a5 |
__inputs__ = ['3 4 1 1\n', '3 4 2 1\n', '3 4 3 1\n', '1 1 1 1\n', '3 10 723 6\n', '14 81 51 82\n', '826504481 101791432 76 486624528\n', '475965351 844435993 96338 972382431\n', '528774798 650132512 6406119 36569714\n', '632656975 851906850 1 310973933\n', '1 1 352875518515340737 1\n', '978837295 606974665 846646545585... | 45db995f0eb00fd3bf08c5592e05b321 |
__inputs__ = ['3 4 1 1\n', '3 4 2 1\n', '3 4 3 1\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| e596772ef135a7909c1ca39682f665ce |
__inputs__ = ['2 2\n1 1\n', '3 6\n1 1 1\n', '3 1\n1 0 1\n', '3 1000000000000000000\n5 4 5\n', '4 1000000000000000000\n0 4 4 5\n', '5 1000000000000000000\n5 7 4 2 5\n', '3 999999999000999944\n7 2 6\n', '4 999999999000531216\n8 7 4 6\n', '5 152742477016321721\n0 0 2 6 2\n', '6 1000000000000000000\n1 1 0 1 0 1\n', '7 1000... | fb77e5dfc15f524445fd3c38029332f8 |
__inputs__ = ['2 2\n1 1\n', '3 6\n1 1 1\n', '3 1\n1 0 1\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 4199f29e031f297dfdcbd20ff8acbcef |
__inputs__ = ['10264\n', '217\n', '7\n', '777777\n', '47248\n', '13\n', '301\n', '1034\n', '6\n', '6486\n', '225481\n', '1\n', '403\n', '6726\n', '43\n', '9\n', '21352\n', '999811\n', '10000\n', '999998\n', '51\n', '498598\n', '5832\n', '2\n', '2749\n', '101\n', '999999\n', '9991\n', '100000\n', '8\n', '10\n', '88\n', ... | de902cff8a75117ee40e02cd1dd21f0a |
__inputs__ = ['4\n', '5\n', '3\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 1c5a2990bb7159ea999fb581bd25543e |
__inputs__ = ['3 4 5\n', '2 5 3\n', '100 10 10\n', '1 1 1\n', '100 100 100\n', '100 1 1\n', '12 34 56\n', '68 1 67\n', '100 100 1\n', '100 1 99\n', '23 56 33\n', '98 12 23\n', '88 2 6\n', '1 50 87\n', '1 50 100\n', '1 92 13\n', '56 42 87\n', '100 100 99\n', '3 1 1\n', '14 21 76\n', '1 7 35\n', '86 43 10\n', '2 10 2\n',... | 3bddc393de8792357b23e17c7b616058 |
__inputs__ = ['3 4 5\n', '2 5 3\n', '100 10 10\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| d9843117d7ad9a1fc617ad5b3ff88e78 |
__inputs__ = ['20 3 2\n10 99\n2 4 3\n20 10 40\n4 15\n10 80\n', '20 3 2\n10 99\n2 4 3\n200 100 400\n4 15\n100 800\n', '10 3 3\n10 33\n1 7 6\n17 25 68\n2 9 10\n78 89 125\n', '94 1 1\n26 324\n7\n236\n77\n5\n', '3 4 5\n5 9\n1 2 1 1\n3 5 4 1\n1 1 1 1 3\n1 2 3 4 5\n', '1 4 2\n3 10\n2 1 1 1\n1 5 3 5\n1 1\n1 5\n', '5 3 3\n4 4\... | 9e54cc80ad1ab5b04c7a1627d19905ba |
__inputs__ = ['20 3 2\n10 99\n2 4 3\n20 10 40\n4 15\n10 80\n', '20 3 2\n10 99\n2 4 3\n200 100 400\n4 15\n100 800\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| c018e014aca0e616e674da8f1888a960 |
__inputs__ = ['3 3\n2 3 1\n', '7 4\n1 3 1 2 2 4 3\n', '3 3\n3 1 3\n', '8 8\n6 2 1 8 5 7 3 4\n', '10 5\n5 1 2 2 3 3 4 4 5 1\n', '100 100\n98 52 63 2 18 96 31 58 84 40 41 45 66 100 46 71 26 48 81 20 73 91 68 76 13 93 17 29 64 95 79 21 55 75 19 85 54 51 89 78 15 87 43 59 36 1 90 35 65 56 62 28 86 5 82 49 3 99 33 9 92 32 7... | 3a7e9fed2c247c1e9afb04f5b77cc1c3 |
__inputs__ = ['3 3\n2 3 1\n', '7 4\n1 3 1 2 2 4 3\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| acb518a851de0ae4bfc8086f37f844e0 |
__inputs__ = ['5\n4 100\n0 0 0 0\n1 2\n1\n3 4\n1 4 1\n3 2\n0 1 3\n3 9\n0 59049 810\n', '3\n5 2\n1 2 4 8 17\n2 3\n1 2\n4 3\n10 4 13 12\n', '1\n1 10\n10000000000000000\n', '1\n1 100\n10000000000000000\n', '1\n2 2\n2251799813685248 2251799813685248\n', '1\n2 2\n9007199254740992 9007199254740992\n', '1\n2 2\n1099511627776 ... | 75f27f731e94f24577739a99bbe4d6bc |
__inputs__ = ['5\n4 100\n0 0 0 0\n1 2\n1\n3 4\n1 4 1\n3 2\n0 1 3\n3 9\n0 59049 810\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 8615551af1e06d3f2b7df35986eacfd1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.