test stringlengths 184 51.6M | hash stringlengths 32 32 |
|---|---|
__inputs__ = ['2\n5 15 40 70 115\n50 45 40 30 15\n', '3\n55 80 10 -1 -1\n15 -1 79 60 -1\n42 -1 13 -1 -1\n', '5\n119 119 119 119 119\n0 0 0 0 -1\n20 65 12 73 77\n78 112 22 23 11\n1 78 60 111 62\n', '4\n-1 20 40 77 119\n30 10 73 50 107\n21 29 -1 64 98\n117 65 -1 -1 -1\n', '2\n33 15 51 7 101\n41 80 40 13 46\n', '9\n57 52 ... | f9423cfc7655610649dbf83ce0a886b4 |
__inputs__ = ['2\n5 15 40 70 115\n50 45 40 30 15\n', '3\n55 80 10 -1 -1\n15 -1 79 60 -1\n42 -1 13 -1 -1\n', '5\n119 119 119 119 119\n0 0 0 0 -1\n20 65 12 73 77\n78 112 22 23 11\n1 78 60 111 62\n', '4\n-1 20 40 77 119\n30 10 73 50 107\n21 29 -1 64 98\n117 65 -1 -1 -1\n']
for __inp__ in __inputs__:
import io
sys.... | 092d4046ec95f4e56f849e951b7abfc2 |
__inputs__ = ['1 1 1 1 1 1\n1 1 1 0 0 0\n1 0 0 0 1 0\n3 0 0 3 0 0\n3 1 0 1 3 1\n1 2 0 2 0 1\n0 0 1 1 0 3\n1 0 0 1 1 0\n0 0 0 0 0 0\n', '1 1 1 1 1 1\n1 1 1 0 0 0\n1 0 0 0 1 0\n3 0 0 0 0 0\n3 1 0 1 3 1\n1 2 0 2 0 1\n0 0 1 1 0 3\n1 0 0 1 1 0\n0 0 0 0 0 0\n', '1 1 1 1 1 1\n1 1 1 0 0 0\n1 0 0 0 1 1\n2 0 0 3 0 0\n3 1 0 1 3 1... | 71140ea35961950a3d2a70d37690e8f5 |
__inputs__ = ['1 1 1 1 1 1\n1 1 1 0 0 0\n1 0 0 0 1 1\n3 0 0 3 0 0\n3 1 0 1 3 1\n1 2 0 2 0 1\n0 0 1 1 0 3\n1 0 0 1 1 0\n0 0 0 0 0 0\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 468116b82f078f5a73f23bd99177e944 |
__inputs__ = ['7\n21 12 1 16 13 6 7\n20 11 2 20 14 5 8\n19 10 3 18 15 4 9\n', '5\n9 6 15 12 1\n10 5 14 11 2\n7 4 13 10 3\n', '6\n15 10 3 4 9 5\n14 11 2 5 8 17\n13 12 1 6 7 18\n', '5\n1 2 3 0 5\n6 7 8 9 10\n11 12 13 14 15\n', '7\n21 12 1 16 14 6 7\n20 11 2 20 14 5 8\n19 10 3 18 15 4 9\n', '5\n9 6 3 12 1\n10 5 14 11 2\n7... | 6f0d7a41192e9e3ea0e549997dbbdd38 |
__inputs__ = ['7\n21 12 1 16 13 6 7\n20 11 2 17 14 5 8\n19 10 3 18 15 4 9\n', '5\n9 6 15 12 1\n8 5 14 11 2\n7 4 13 10 3\n', '6\n15 10 3 4 9 16\n14 11 2 5 8 17\n13 12 1 6 7 18\n', '5\n1 4 7 10 13\n2 5 8 11 14\n3 6 9 12 15\n', '5\n1 2 3 4 5\n6 7 8 9 10\n11 12 13 14 15\n']
for __inp__ in __inputs__:
import io
sys.... | 2ab80d80405d4853a470ed234c19a9f2 |
__inputs__ = ['???\n', '??JG?\n', '9???\n', 'B?\n', 'A\n', 'IG5IJ\n', '5??\n', '????\n', '?\n', '???2\n', '3??\n', '?BB\n', '7\n', 'H1I??\n', 'HH???\n', 'BC??\n', 'CB\n', '?3?2\n', '?J?5?\n', 'BBB?\n', '1023456789??????????????????????????????????????ABCDIFGHIJ\n', 'CDEFG\n', 'GJH2?\n', 'CC\n', '??8\n', '7I9G4\n', '5??... | 9c4daa8accbfa228ae45683a5e04a356 |
__inputs__ = ['1?AA\n', 'AJ\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 2e0b85a73b318eb8c35de097811e2541 |
__inputs__ = ['20\nTAAGCGACCAGGTGCTTTAC\n', '15\nAGCGAATCCCATTGT\n', '4\nGACT\n', '1\nT\n', '3\nGCA\n', '318\nTATCAATCGGTACGTGCGCATCATTGTCAATCGGGCTTCATGGCTTGCGGGCGCTACCCGAGGGGAAGCTGCGGACAGGTAGGTAAGATACACACGAACCAAACGGAGTTATGTTGGATAAATTGGCTGGAAGGGCGTAGGTATATCGAGTCGCGGACCTGGCATAGACTATCAGGGGCAGCGGTACAAGGCAACCGTGAGCGGGGTCTG... | b8f51930a4288a97814e3816ce7a093f |
__inputs__ = ['1\nC\n', '2\nAG\n', '3\nTTT\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 023c614b4a6c4937cb61d7536cc748e8 |
__inputs__ = ['3 3\n', '3 2\n', '1 1\n', '22 22\n', '75 75\n', '26 26\n', '45 45\n', '72 72\n', '81 69\n', '29 15\n', '2 0\n', '25 6\n', '84 20\n', '4 3\n', '0 0\n', '1 0\n', '3 4\n', '4 1\n', '3 7\n', '4 0\n', '2 1\n', '2 7\n', '6 0\n', '0 1\n', '4 7\n', '6 -1\n', '0 2\n', '4 -1\n', '2 -1\n', '1 -1\n', '2 -2\n', '0 -1... | 0607fa04016fb3b2415d5460074d5e40 |
__inputs__ = ['3 3\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| c21e9b164ffe83981a63b5697783a3d5 |
__inputs__ = ['4\n1 4 2\n2\n1 1 -8\n2\n', '4\n1 -1000000000 1000000000\n1 -1000000000 1000000000\n1 -1000000000 1000000000\n2\n', '4\n1 -1000000000 1000000000\n1 -1000000000 0000000000\n1 -1000000000 1000000000\n2\n', '4\n1 2 2\n2\n1 1 -8\n2\n', '4\n1 -954673915 1000000000\n1 -1000000000 0000000000\n1 -1000000000 10000... | 250584b22669df49352fca001b428cfe |
__inputs__ = ['4\n1 4 2\n2\n1 1 -8\n2\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 30ccf1c3d807d64e11253461400846ff |
__inputs__ = ['3 12\n3 5 7\n4 6 7\n5 9 5\n', '6 10\n7 4 7\n5 8 8\n12 5 8\n6 11 6\n3 3 7\n5 9 6\n', '1 100\n97065 97644 98402\n', '1 100000\n1 82372 5587\n', '25 6\n1 10 5\n1 8 4\n1 8 2\n4 8 9\n3 2 8\n1 9 5\n2 10 10\n3 9 6\n3 5 4\n2 7 8\n2 3 2\n2 6 8\n3 7 8\n4 3 7\n1 8 1\n3 6 4\n3 2 8\n2 2 1\n4 8 8\n4 8 4\n3 10 2\n3 6 6... | 884f6f0355e0c1f202d5a25a991226af |
__inputs__ = ['3 12\n3 5 7\n4 6 7\n5 9 5\n', '6 10\n7 4 7\n5 8 8\n12 5 8\n6 11 6\n3 3 7\n5 9 6\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 159d9901896883d8ce195a70339c5db9 |
__inputs__ = ['6\n3\n1000000000 0 -1000000000\n1\n6\n2\n-1000000000 1000000000\n2\n1000000000 -1000000000\n2\n1000000000 1000000000\n2\n-1000000000 -1000000000\n', '6\n3\n1000000000 0 -1000000000\n1\n6\n2\n-1000000000 1000000000\n2\n1000000000 -1000000000\n2\n1000000000 1000000100\n2\n-1000000000 -1000000000\n', '3\n4\... | 0f0d89a87437038569399aa664f4030e |
__inputs__ = ['3\n4\n1 7 6 5\n5\n1 2 3 4 5\n2\n0 -4\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 398679670c07c1f99261b6eae563b104 |
__inputs__ = ['2\na bb\nb aa\na\nbbbbbbbb\n1\na aa\na\naaaaa\n3\nab aab\nabc aadc\nad dee\nabc\ndeeeeeeeec\n10\na abc\nb bai\nc acf\nd bed\ne abh\nf fag\ng abe\nh bag\ni aaj\nj bbb\na\nabaceaabe\n0\n', '2\na bb\nb aa\nb\nbbbbbbbb\n1\nb aa\na\naaaaa\n3\nab aab\nabc aadc\nad dee\nabc\ndeeeeeeeec\n10\na abc\nb bai\nc acf\... | 5c30dc69a429bdfdc5bbc14faf29c17a |
__inputs__ = ['2\na bb\nb aa\na\nbbbbbbbb\n1\na aa\na\naaaaa\n3\nab aab\nabc aadc\nad dee\nabc\ndeeeeeeeec\n10\na abc\nb bai\nc acf\nd bed\ne abh\nf fag\ng abe\nh bag\ni aaj\nj bbb\na\nabacfaabe\n0\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8... | a299d79f44be445db10b3d70d41fd81c |
__inputs__ = ['00000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000111111111\n10000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111\n010101010101010101010101010101010101010101010... | 1bab303b9368c570e00f6bae00ada697 |
__inputs__ = ['00000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000111111111\n10000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111\n010101010101010101010101010101010101010101010... | 162d2279f035ad9f5dc7a02696da34ab |
__inputs__ = ['3 1 8\n4 2\n5 5\n4 2\n3 2\n', '4 3 12\n3 4\n2 4\n3 5\n3 4\n3 5\n5 2\n3 4\n', '2 2 2\n5 3\n6 3\n4 2\n8 1\n', '10 10 229\n15 17\n5 4\n4 15\n4 17\n15 11\n7 6\n5 19\n14 8\n4 1\n10 12\n20 13\n20 14\n16 13\n7 15\n2 16\n11 11\n19 20\n6 7\n4 11\n14 16\n', '10 20 498\n40 12\n23 25\n20 9\n8 1\n23 8\n31 24\n33 2\n2... | 04c6b89e5211f446f0d4ed1257ffc3be |
__inputs__ = ['3 1 8\n4 2\n5 5\n4 2\n3 2\n', '4 3 12\n3 4\n2 4\n3 5\n3 4\n3 5\n5 2\n3 4\n', '2 2 2\n5 3\n6 3\n4 2\n8 1\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| b80650ce0c959a9459f06758d0b7af7d |
__inputs__ = ['369 852\n', '3 4\n', '77 77\n', '77777440 77777444\n', '854444 985555\n', '6 77\n', '7 777777774\n', '12 47\n', '47444 1000000000\n', '1 2\n', '49 49\n', '1000000000 1000000000\n', '474 747\n', '1 1000000\n', '987545885 999875584\n', '1 100\n', '5 6\n', '1 1\n', '4 7\n', '999999999 1000000000\n', '774744... | 1cdafec52d14ec13c85d44aee2b546e9 |
__inputs__ = ['7 7\n', '2 7\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 45f58f2473690a6e0d7275b65da0a024 |
__inputs__ = ['2 4 50\n20 100\n60 10 40 80\n', '1 2 10\n11\n15 7\n', '2 5 15\n10 4\n29 23 21 22 26\n', '3 10 1500\n106 160 129\n1333 1532 1181 1091 1656 1698 1291 1741 1242 1163\n', '5 20 1\n314 316 328 323 321\n30 61 11 83 19 63 97 87 14 79 43 57 75 48 47 95 41 27 8 88\n', '20 20 1000000000\n911196469 574676950 884047... | 9585371ff164331fb1c2abb4c3a61871 |
__inputs__ = ['2 4 50\n20 100\n60 10 40 80\n', '1 2 10\n11\n15 7\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 872f0fe6980534e44802e556f993dc78 |
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(... | 0e8c518111b8cdc3f362d4546578d3f8 |
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__ = ['1111111110\n', '11\n', '111\n', '11111111111111111111111110110111001101100111010010101101101001011100011011000111010011110010101100010001011101011010010100001000011100001101101001100010100001001010010100100001111110100110011000101100001111111011010111001011111110111101000100101001001011\n', '111101110111... | 1b7b5ae54c645a3b373211c7ebf67bfe |
__inputs__ = ['101\n', '110010\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| e9bd0188202c5d9537f9c6af424a5c9a |
__inputs__ = ['5\n10\n0001111111\n4\n0101\n8\n11001101\n10\n1110000000\n1\n1\n', '5\n10\n0001111111\n4\n0101\n8\n11001101\n10\n1010000000\n1\n1\n', '5\n10\n0011111111\n4\n0101\n8\n11001101\n10\n1010000000\n1\n1\n', '5\n10\n0001111110\n4\n0101\n8\n11001101\n10\n1110000000\n1\n1\n', '5\n10\n0001111110\n4\n0101\n8\n110011... | 1cb1102230217f5bb4c738aca2a2a966 |
__inputs__ = ['5\n10\n0001111111\n4\n0101\n8\n11001101\n10\n1110000000\n1\n1\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| f8d54bae9aeb716faddc773cbd7442bd |
__inputs__ = ['3\n0\n2\n1073741823\n', '9\n2\n2\n8\n228\n1\n4\n8\n8\n1488\n', '9\n3\n2\n8\n228\n1\n4\n8\n8\n1488\n', '3\n0\n2\n507180918\n', '9\n3\n2\n8\n228\n1\n6\n8\n8\n1488\n', '3\n1\n2\n507180918\n', '3\n1\n2\n759698327\n', '3\n1\n1\n326714685\n', '9\n3\n2\n2\n228\n1\n1\n8\n3\n1488\n', '9\n3\n4\n2\n228\n1\n0\n8\n3\... | caa0d64c4d7ace0f1060744df2c79a84 |
__inputs__ = ['3\n0\n2\n1073741823\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 4b1717f926b71ab906682c68c43ffc85 |
__inputs__ = ['4 4 3\n1 2 2\n2 4 1\n1 3 1\n3 4 2\n', '5 11 23\n1 2 3\n2 3 4\n3 4 5\n4 5 6\n1 3 4\n2 4 5\n3 5 6\n1 4 2\n2 5 3\n1 5 2\n3 2 30\n', '10 16 63\n1 2 1\n2 10 1\n1 3 1\n3 10 1\n1 4 1\n4 10 1\n1 5 1\n5 10 1\n1 6 1\n6 10 1\n1 7 1\n7 10 1\n1 8 1\n8 10 1\n1 9 1\n9 10 1\n', '2 1 3\n1 2 301\n', '2 2 1\n1 2 48\n2 1 39... | 23a54fd2d768844c621e3ed0d95ed449 |
__inputs__ = ['4 4 3\n1 2 2\n2 4 1\n1 3 1\n3 4 2\n', '5 11 23\n1 2 3\n2 3 4\n3 4 5\n4 5 6\n1 3 4\n2 4 5\n3 5 6\n1 4 2\n2 5 3\n1 5 2\n3 2 30\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 70cfa2249addd6e78193292411191451 |
__inputs__ = ['4\n5\n1 2 2 1 3\n3\n1 1 1\n4\n1 1000 101 1000\n4\n1 2 3 4\n', '1\n5\n6756657 32231 86 234 23442\n', '1\n2\n7 7\n', '1\n2\n11 7\n', '1\n5\n6756657 32231 141 234 23442\n', '4\n5\n1 2 2 1 3\n3\n1 1 1\n4\n1 1000 101 1100\n4\n1 2 3 4\n', '4\n5\n1 4 2 1 3\n3\n1 1 0\n4\n1 1000 101 1000\n4\n1 2 3 4\n', '4\n5\n1 ... | 3470919bd76631a0421cb66a061c846e |
__inputs__ = []
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 22f3d4d8c844fac5f1ba0db0ea002b67 |
__inputs__ = ['3 0\n', '3 1\n2 > 3\n', '4 1\n3 = 6\n', '5 2\n1 < 2\n9 > 10\n', '35 0\n', '10 5\n17 <= 10\n16 >= 18\n9 > 18\n8 = 8\n6 >= 13\n', '5 2\n1 = 10\n2 = 9\n', '3 3\n1 = 2\n3 = 4\n5 = 6\n', '4 3\n2 > 3\n4 > 5\n6 > 7\n', '1 1\n1 > 2\n', '1 1\n1 <= 2\n', '5 3\n2 > 10\n4 > 8\n3 = 6\n', '5 3\n2 <= 4\n6 <= 7\n5 > 6\n... | 7cf43f547e642065bd8e7d49c59d7730 |
__inputs__ = ['3 0\n', '3 1\n2 > 3\n', '4 1\n3 = 6\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 5b3d5414d8f7e9a45665a8b85b6b2195 |
__inputs__ = ['4\n1 1 1\n1 6 1\n2 2 2\n100 100 100\n', '10\n1 1 1\n1 1 1\n1 1 1\n1 1 1\n1 1 1\n1 1 1\n1 1 1\n1 1 1\n1 1 1\n1 1 1\n', '10\n9 6 8\n5 5 2\n8 9 2\n2 7 9\n6 4 10\n1 1 8\n2 8 1\n10 6 3\n7 5 2\n9 5 4\n', '1\n100000 100000 100000\n', '10\n9 6 8\n5 5 2\n8 9 2\n2 7 9\n6 4 10\n1 1 8\n2 8 1\n10 2 3\n7 5 2\n9 5 4\n'... | 13f33b8f63df3dcc6b843aae12fd86a2 |
__inputs__ = ['4\n1 1 1\n1 6 1\n2 2 2\n100 100 100\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 8af67fcdc3f1a2b386a4750e86086549 |
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(... | eed7c683e8072bf5feffb59725326cb6 |
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(... | 5c9170380c61e5c7c5fadf35204c8c21 |
__inputs__ = ['41\n2 1 7 7 4 2 4 4 9 3 10 0\n', '12\n1 1 1 1 1 1 1 1 1 1 1 1\n', '97\n17 0 10 0 0 0 18 0 14 23 15 0\n', '41\n3 1 3 4 3 6 6 1 4 4 0 6\n', '0\n55 81 28 48 99 20 67 95 6 19 10 93\n', '100\n100 100 100 100 100 100 100 100 100 100 100 100\n', '100\n6 3 2 0 4 1 2 2 2 2 1 1\n', '32\n5 2 4 1 5 0 5 1 4 3 0 3\n',... | 4b039ca5c5fdaa5ae2590f93e7ba39a6 |
__inputs__ = ['0\n0 0 0 0 0 0 0 1 1 2 3 0\n', '5\n1 1 1 1 2 2 3 2 2 1 1 1\n', '11\n1 1 4 1 1 5 1 1 4 1 1 1\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| e7cb877decfaee8e0f42185a95df3eed |
__inputs__ = ['3 3 2 3\n 1 1 1\n0 0 0 0\n 1 1 1\n0 0 0 0\n 1 1 1\n0 0 0 0\n 1 1 1\n3 3 2 2\n 1 0 1\n1 0 1 1\n 1 0 0\n0 0 0 0\n 0 0 1\n1 1 0 1\n 1 0 1\n1 3 1 1\n 1 1 1\n1 0 0 1\n 1 0 1\n2 2 1 1\n 1 0\n1 0 0\n 0 0\n0 0 0\n 0 0\n0 0 0 0\n', '3 3 2 2\n 1 1 1\n0 0 0 0\n 1 1 1\n0 0 0 0\n 1 1 1\n0 0 0 0\n 1 1 1\n3 3 2 1\n 1 0... | caa66678c206d1a758cd65144fa2523e |
__inputs__ = ['3 3 2 2\n 1 1 1\n0 0 0 0\n 1 1 1\n0 0 0 0\n 1 1 1\n0 0 0 0\n 1 1 1\n3 3 2 2\n 1 0 1\n1 0 1 1\n 1 0 0\n0 0 0 0\n 0 0 1\n1 1 0 1\n 1 0 1\n1 3 1 1\n 1 1 1\n1 0 0 1\n 1 0 1\n2 2 1 1\n 1 0\n1 0 0\n 0 0\n0 0 0\n 0 0\n0 0 0 0\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.Bytes... | ad92b08e5f537a72af1cf231dd2e0c14 |
__inputs__ = ['3 5\n..+.#\n#+..+\n+.#+.\n', '4 10\n...+.##+.+\n+#++..+++#\n++.#++++..\n.+##.++#.+\n', '2 2\n..\n++\n', '5 1\n.\n.\n.\n.\n.\n', '20 20\n..+#+.+++.+++#+..#++\n..####+++#..++#+.+.+\n+.+..+++..#.++++++++\n+##++..+.##..#+++.++\n++.+.+.+.++++.+++.++\n.+++++.+#+++++...+#+\n.+++#+++++++.+.++.++\n...+.++++++.++#... | 8e065f22f073283b4fd8f43f0f95dd61 |
__inputs__ = ['3 5\n..+.#\n#+..+\n+.#+.\n', '4 10\n...+.##+.+\n+#++..+++#\n++.#++++..\n.+##.++#.+\n', '2 2\n..\n++\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 324b445280ae86438b67ab492533b164 |
__inputs__ = ['4\ncba\ncab\nb\na\n3\nbca\nab\na\n5\nabc\nacb\nb\nc\nc\n5\nabc\nacc\nc\nb\nb\n0\n', '4\ncba\ncab\nb\na\n3\nbca\nab\na\n5\nabc\nacb\nb\nc\nc\n5\nabc\nacc\nd\nb\nb\n0\n', '4\ncba\ncab\nb\na\n3\nbca\nab\na\n5\ncba\nacb\nb\nc\nc\n5\nabc\nacc\nd\nb\nb\n0\n', '4\nabc\ncab\nb\na\n3\nacb\nac\na\n5\nabc\nacb\nb\n... | 3b756eaca53206f27390336659b21bd1 |
__inputs__ = ['4\ncba\ncab\nb\na\n3\nbca\nab\na\n5\nabc\nacb\nb\nc\nc\n5\nabc\nacb\nc\nb\nb\n0\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 4275193c1023c065a0d2f2fda9b972d5 |
__inputs__ = ['3,4,5\n5,5,8\n4,5,4\n5,4,3\n', '3,3,5\n5,5,8\n4,4,4\n5,4,3\n', '3,4,5\n5,5,8\n4,5,4\n3,4,5\n', '3,4,5\n8,5,5\n4,5,4\n3,4,5\n', '3,5,5\n6,5,8\n4,4,5\n5,4,3\n', '3,3,5\n5,5,8\n3,4,4\n5,4,3\n', '3,4,5\n8,5,5\n4,5,4\n5,4,3\n', '4,4,5\n5,5,8\n4,5,4\n3,4,5\n', '3,4,5\n5,5,8\n4,4,4\n3,4,5\n', '3,2,5\n8,5,5\n4,6... | 24ad9f7ca7b60ef34c8b1739a8907c7c |
__inputs__ = ['3,4,5\n5,5,8\n4,4,4\n5,4,3\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 04a61ba725cf05a145a9d694ba6334f7 |
__inputs__ = ['5 3\n', '1 6\n', '13 13\n', '15 1\n', '56 159\n', '5 1\n', '19 13\n', '15 2\n', '43 159\n', '1 1\n', '27 2\n', '61 159\n', '0 2\n', '2 13\n', '16 2\n', '39 159\n', '11 2\n', '89 205\n', '102 205\n', '169 205\n', '3 6\n', '16 6\n', '5 13\n', '613 159\n', '13 15\n', '13 1\n', '5 2\n', '23 13\n', '28 2\n', ... | 3afe2c7a6c868890822fb47084f37501 |
__inputs__ = ['3 3\n', '8 6\n', '9 13\n', '10 1\n', '314 159\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 8794b13fbeb1e0c05a0918d3bf52b1c0 |
__inputs__ = ['10 2\n7 4 10 9 2 8 8 7 3 7\n', '100 3\n94 94 83 27 80 73 61 38 34 95 72 96 59 36 78 15 83 78 39 22 21 57 54 59 9 32 81 64 94 90 67 41 18 57 93 76 44 62 77 61 31 70 39 73 81 57 43 31 27 85 36 26 44 26 75 23 66 53 3 14 40 67 53 19 70 81 98 12 91 15 92 90 89 86 58 30 67 73 72 69 68 47 30 7 89 35 17 93 45 6 ... | fcd8a3607d9c4813a47e0a00ad84dccf |
__inputs__ = ['6 3\n1 3 9 8 24 1\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 79027f87d471dd9e137d4f01d63139eb |
__inputs__ = ['5 3\n', '9 3\n', '9 6\n', '16 6\n', '4 3\n', '5 7\n', '6 7\n', '8 13\n', '10 16\n', '11 12\n', '18 11\n', '9 54\n', '12 47\n', '14 28\n', '9 1\n', '5 1\n', '4 1\n', '4 2\n', '6 2\n', '8 2\n', '8 3\n', '0 8\n', '5 5\n', '10 6\n', '18 1\n', '6 1\n', '9 2\n', '8 4\n', '8 1\n', '0 7\n', '0 5\n', '0 6\n', '7 ... | 185b6e2b45f66f4f75a2e94f9dcf5bee |
__inputs__ = ['5 8\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 8d9c208d3cc0b4321ce09506a053c325 |
__inputs__ = ['...\nX.X\n...\n', 'X..\nX..\nX..\n', '...\nXXX\nXXX\n', '...\nX.X\nX..\n', '..X\nX..\n..X\n', '...\n...\n..X\n', 'X..\n...\n...\n', '...\nX..\n...\n', '.X.\n...\n...\n', 'X.X\n.X.\nX.X\n', '...\nXXX\n...\n', '.X.\nX.X\nXX.\n', '...\n.X.\nX..\n', '...\n..X\n...\n', 'X..\n.X.\n..X\n', '...\n...\nX..\n', 'X... | 46f84a811170bb871c92e5935facbcba |
__inputs__ = ['X.X\nX..\n...\n', 'XX.\n...\n.XX\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 592ba08d0a1fe2964707969d207ae3de |
__inputs__ = ['7\n-1 3\n1 2\n1 1\n1 4\n4 5\n4 3\n5 2\n', '1\n-1 42\n', '2\n-1 3\n1 2\n', '3\n-1 3\n1 1\n1 2\n', '3\n-1 1\n1 2\n1 3\n', '3\n-1 3\n1 2\n2 1\n', '20\n-1 100\n1 10\n2 26\n2 33\n3 31\n2 28\n1 47\n6 18\n6 25\n9 2\n4 17\n6 18\n6 2\n6 30\n13 7\n5 25\n7 11\n11 7\n17 40\n12 43\n', '20\n-1 100\n1 35\n2 22\n3 28\n3... | 3d70a90d0d725f37f0e7fcb96fade122 |
__inputs__ = ['7\n-1 3\n1 2\n1 1\n1 4\n4 5\n4 3\n5 2\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 1225dd83baf75a6b32e1bff6184b6d66 |
__inputs__ = ['3\na\nb\na\n', '2\nbnn\na\n', '6\nw\ng\nc\nj\ny\nf\n', '5\nm\ng\nu\nt\ntttt\n', '4\nr\no\nw\nwwwwwwwwww\n', '4\nvr\nhp\nl\nllbn\n', '9\nlfpgbnlzyn\nc\ns\nw\nr\nm\nq\ny\nyinfblfcdhidphyfvgkxyuwomahiibbhnigdslsguhjkplibnhhrshtekwgefxeugyyyyy\n', '3\nj\nk\nkkailgwqnxtdsttkkkkkkk\n', '2\nn\nnnnnnnnnnnnnnnnnn... | 4ada7f16a2cb5d63545d8c789ae2f5d8 |
__inputs__ = ['3\na\nb\na\n', '2\nbnn\na\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| c6543c2858ddd4da1df59cc1a226f549 |
__inputs__ = ['12345\n', '13542\n', '71232\n', '11111\n', '10000\n', '99999\n', '91537\n', '70809\n', '41675\n', '32036\n', '19759\n', '27599\n', '99224\n', '11000\n', '40425\n', '21973\n', '11984\n', '45382\n', '12863\n', '84484\n', '11110\n', '17687\n', '11100\n', '11011\n', '32054\n', '11101\n', '11001\n', '41769\n'... | e6f1d9d77dc83c30c5a194f705f1bc4a |
__inputs__ = ['12345\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 026ce1f068940ba30809db0273b7844d |
__inputs__ = ['0 100\n', '5 100\n84 5 19 103\n45 39 105 63\n16 67 59 24\n6 89 104 8\n94 5 3 19\n', '5 100\n85 5 4 6\n46 5 6 10\n15 5 4 9\n25 3 6 3\n26 2 2 8\n', '1 20\n7 1 5 1\n', '3 50\n28 1 1 3\n21 1 1 1\n34 1 1 1\n', '10 10\n3 2 2 91\n3 4 1 75\n7 3 6 47\n5 5 5 83\n1 2 2 18\n0 2 2 28\n5 5 3 88\n5 3 2 26\n9 1 5 90\n8 ... | 23d64ae350e80b1a95f896b0bd404408 |
__inputs__ = ['2 20\n9 8 12 6\n15 5 1 1\n', '2 20\n5 10 5 5\n4 16 1 7\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| feb9c647ac36db783d2baedcb231558e |
__inputs__ = ['2 2\n', '2 3\n', '141421 356237\n', '1 1\n', '1 500000\n', '1 260522\n', '1 414575\n', '500000 500000\n', '436426 479445\n', '148772 190081\n', '190629 433447\n', '47202 203497\n', '1 2\n', '2 6\n', '0 2\n', '2 4\n', '1 4\n', '3 4\n', '141421 225813\n', '1 6\n', '2 7\n', '82963 225813\n', '1 3\n', '1 8\n... | f120f11a2a24310c3edf20c20a1fbc00 |
__inputs__ = ['2 2\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 1d607f8de7aeb7bf042a5b38e871063d |
__inputs__ = ['3\n5 3\n1 2 3 4 5\n3 2 5\n4 3\n4 3 2 1\n4 3 1\n7 4\n1 4 7 3 6 2 5\n3 2 4 5\n', '6\n2 1\n2 1\n1\n3 2\n1 3 2\n1 3\n4 2\n4 1 3 2\n1 2\n5 3\n4 3 2 5 1\n1 4 5\n6 3\n2 4 5 6 1 3\n2 4 5\n7 3\n7 6 4 3 2 1 5\n1 2 6\n', '6\n2 1\n2 1\n1\n3 2\n1 3 2\n1 3\n4 2\n4 1 3 2\n1 2\n5 3\n4 3 2 5 1\n1 4 5\n6 3\n2 4 5 6 1 6\n2... | 5d83b1427325a421d29444b06c56b82a |
__inputs__ = ['3\n5 3\n1 2 3 4 5\n3 2 5\n4 3\n4 3 2 1\n4 3 1\n7 4\n1 4 7 3 6 2 5\n3 2 4 5\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| ec5653e98f05611217e9714ab5ef0eeb |
__inputs__ = ['3 0\n', '-6 3\n', '0 0\n', '-2 3\n', '5 0\n', '-1 3\n', '-12 3\n', '1 0\n', '-2 1\n', '-15 3\n', '-4 1\n', '-23 3\n', '0 1\n', '-4 0\n', '-5 3\n', '0 2\n', '-6 1\n', '-2 5\n', '0 4\n', '-9 1\n', '-2 8\n', '1 2\n', '-9 2\n', '-3 8\n', '1 3\n', '-9 3\n', '-3 7\n', '1 1\n', '-3 5\n', '-3 11\n', '2 1\n', '-3... | 48783f2988feec35049f169fabcbf120 |
__inputs__ = ['3 3\n', '-3 3\n', '-4 3\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 0183b0a0cc5ff2fc0eb503240a9811e3 |
__inputs__ = ['3 2\n2 3 4\n', '4 2\n50 100 50 100\n', '10 3\n2 2 2 2 2 2 2 2 2 2\n', '1 1\n2\n', '2 1\n2 2\n', '2 2\n2 2\n', '11 4\n2 3 4 5 6 7 8 9 10 11 12\n', '70 1311\n1146 769 1530 1132 877 1352 1295 1282 1086 914 852 1351 1432 847 1105 776 1278 716 1435 749 1320 869 812 1179 1239 1426 1403 1296 1489 1018 848 1215 ... | 0552aebb1ea50be01221d1d8c3d5477e |
__inputs__ = ['3 2\n2 3 4\n', '4 2\n50 100 50 100\n', '10 3\n2 2 2 2 2 2 2 2 2 2\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 6775b4ae8de75a0d232a2e67450a834c |
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(... | e6f61a05d8d3f5ff05e5d8db44f61533 |
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__ = ['kigPrWNTOUNDBskAfefjhHYZNYdnfZWuXWzHiBxFQryBbAkPtenFwWvCSTYGpzOntUNzNUhxRWjKmicTwLwJAnbAxj\nkigpRWntOUNdBsKaFEFjhhYZnYDNfzWuXwZhibxFQRybbakPteNfwwvcStyGPzoNTunznuHXrWjKMIctWLWJANBAxJ\n', 'DQBdtSEDtFGiNRUeJNbOIfDZnsryUlzJHGTXGFXnwsVyxNtLgmklmFvRCzYETBVdmkpJJIvIOkMDgCFHZOTODiYrkwXd\nDQbDtsEdTFginRUEJNBOIfd... | f46944691c038b5698ea928ea734430b |
__inputs__ = ['aaaa\naaaA\n', 'abs\nAbz\n', 'abcdefg\nAbCdEfF\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 2bb9739e6fff990f6ccbffc3272844f7 |
__inputs__ = ['6\n', '10\n', '3\n', '4\n', '5\n', '2500\n', '952\n', '88\n', '1216\n', '2140\n', '564\n', '1488\n', '116\n', '1040\n', '1965\n', '593\n', '779\n', '1703\n', '331\n', '1051\n', '2179\n', '603\n', '1731\n', '2451\n', '1079\n', '2207\n', '2394\n', '818\n', '1946\n', '166\n', '1294\n', '2218\n', '846\n', '1... | c12f47fc3b11047ecc62c6fc3bcdff0a |
__inputs__ = ['6\n', '10\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 83b0a705814bebbb42ed2e980209fdf5 |
__inputs__ = ['4 3\n7 2\n3 3\n0 2\n3 1\n4 2\n0 1\n8 1\n4 4\n30 2\n30 12\n2 12\n2 2\n15 2\n30 8\n13 14\n2 8\n8 5\n13 5\n21 7\n21 9\n18 15\n11 15\n6 10\n6 8\n8 5\n10 12\n5 9\n15 6\n20 10\n18 12\n3 3\n5 5\n10 3\n10 10\n20 8\n10 15\n10 8\n4 4\n-98 99\n-99 -104\n99 -98\n99 97\n-99 99\n-98 -98\n99 -99\n96 99\n0 0\n', '4 3\n7... | 155d2ce29cf38256922da37b77e59eab |
__inputs__ = ['4 3\n7 2\n3 3\n0 2\n3 1\n4 2\n0 1\n8 1\n4 4\n30 2\n30 12\n2 12\n2 2\n15 2\n30 8\n13 14\n2 8\n8 5\n13 5\n21 7\n21 9\n18 15\n11 15\n6 10\n6 8\n8 5\n10 12\n5 9\n15 6\n20 10\n18 12\n3 3\n5 5\n10 3\n10 10\n20 8\n10 15\n10 8\n4 4\n-98 99\n-99 -99\n99 -98\n99 97\n-99 99\n-98 -98\n99 -99\n96 99\n0 0\n']
for __in... | 9309a155ef4ed92d6c47647a100d6761 |
__inputs__ = ['6\n6 3\n3 2 7 1 4 8\n4 3\n2 1 5 6\n4 12\n0 0 0 0\n2 1\n1 1\n6 10\n2 0 0 5 9 4\n6 5\n5 3 8 6 3 2\n', '1\n6 3\n9090 9090 7 1 4 8\n', '1\n6 3\n909 909 7 1 4 8\n', '1\n4 1\n4 3 2 1\n', '1\n4 2\n2 2 2 2\n', '1\n6 3\n1 1 1 1 1 1\n', '1\n6 1\n6 5 4 3 2 1\n', '1\n2 1\n1000000000 1000000000\n', '1\n4 1000\n2 3 5 ... | b52de5a3df5274cf250a343bcf52311e |
__inputs__ = ['6\n6 3\n3 2 7 1 4 8\n4 3\n2 1 5 6\n4 12\n0 0 0 0\n2 1\n1 1\n6 10\n2 0 0 5 9 4\n6 5\n5 3 8 6 3 2\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| e711a9c23d1964412e3dfad5b24301f8 |
__inputs__ = ['5 5 3\n*.***\n.****\n..***\n*.***\n.**.*\n', '5 5 1\n.....\n.....\n.*..*\n*.*..\n....*\n', '10 10 40\n**********\n**********\n**********\n**********\n**********\n**********\n**********\n**********\n**********\n**********\n', '10 10 6\n.*..**.**.\n**********\n****.*****\n**.***....\n***.******\n****.**..*... | 72586be2c6bda5cecfc07eb24197aae7 |
__inputs__ = ['5 6 1\n....*.\n...***\n....*.\n..*...\n.***..\n', '7 7 2\n...*...\n.......\n...*...\n*.***.*\n...*...\n.......\n...*...\n', '5 6 2\n....*.\n...***\n....*.\n..*...\n.***..\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run... | 7bbb5e2e8581c0c770fb3c990fc16f52 |
__inputs__ = ['01\naaaaaa\n', '001\nkokokokotlin\n', '010\nojwprcaaaaaaaaaab\n', '010\ngvmorcaaaaaaaaaab\n', '010\nugkircaaaaaaaaaab\n', '01\nzbrronwaofovklkopelo\n', '010\nugkirca`aaaaaaaab\n', '01\nzbrronwaofovklkopeln\n', '01\naabaaa\n', '010\ngvmarcaaaaaaaoaab\n', '010\nnjwprcaaaaaaaaaab\n', '010\nugkarca`aaaiaaaab... | 54284a35d1a39dcf34b31b48f985397b |
__inputs__ = ['01\naaaaaa\n', '001\nkokokokotlin\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 693544f5ffa675b5482e64a2819b01d8 |
__inputs__ = ['8\n))((())(\n', '3\n(()\n', '1\n(\n', '4\n))((\n', '51\n))((((((((()))(())()(()(()())()(()(())(())()())))))\n', '4\n()()\n', '4\n)()(\n', '10\n(())())()(\n', '10\n))))((((()\n', '10\n())(((()))\n', '11\n)(())(((())\n', '10\n)()()()()(\n', '50\n()())()))()())((())))(((((()))(((()))((((()(()))))\n', '50\n)... | c08542b7fe4d09d360b91550b8a66ac9 |
__inputs__ = ['8\n))((())(\n', '3\n(()\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 934c5ef4e55a323696da16cb9491801d |
__inputs__ = ['2 1 2 2\n', '4 7 7 4\n', '20 0 7 22\n', '80 100 83 97\n', '80 100 77 103\n', '55000 60000 55003 60100\n', '100000 100000 100000 99999\n', '100000 99999 100000 100000\n', '0 100000 100000 99999\n', '0 100000 99999 100000\n', '0 90000 89999 89999\n', '0 1 0 2\n', '0 1 1 0\n', '0 1 1 1\n', '0 1 1 2\n', '0 1... | fcf8355f070e3b7ce42978dba4545cee |
__inputs__ = ['2 1 2 2\n', '4 7 7 4\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 4b726d7aed056929b74792c3fdaaa5c8 |
__inputs__ = ['1\n3 1\n1 2 3\n4 5 6\n4\n', '1\n3 1\n1 4 3\n4 5 6\n4\n', '1\n6 1\n1 4 3\n4 5 6\n1\n', '1\n6 1\n0 4 3\n4 5 6\n1\n', '1\n3 1\n1 2 1\n4 5 6\n4\n', '1\n10 1\n1 4 4\n4 2 12\n1\n', '1\n10 1\n1 4 4\n4 2 12\n0\n', '1\n10 1\n1 4 4\n4 2 13\n0\n', '1\n3 1\n1 4 3\n4 10 6\n4\n', '1\n6 1\n0 8 6\n2 5 6\n1\n', '1\n10 1\... | 3e4027faf2245e261e0157d3b30ddceb |
__inputs__ = ['1\n3 1\n1 2 3\n4 5 6\n4\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| e44db2faa878090e497ad435db5bcb4b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.