test stringlengths 184 51.6M | hash stringlengths 32 32 |
|---|---|
__inputs__ = ['5 3\n10 14 19 34 33\n', '9 14\n1 3 5 110 24 21 34 5 3\n', '9 73\n67597 52981 5828 66249 75177 64141 40773 79105 16076\n', '5 3\n10 4 19 34 33\n', '9 14\n1 3 5 110 24 21 34 2 3\n', '9 73\n67597 52981 5828 18 75177 64141 40773 79105 16076\n', '5 1\n10 4 19 34 33\n', '9 14\n1 3 5 111 24 21 34 2 3\n', '9 73\... | 8fe620b8bce8885001671572d8e9dc8e |
__inputs__ = ['5 3\n10 14 19 34 33\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 8ee8ebc2cdf35401fef2de9d6a0be556 |
__inputs__ = ['cupofcoffee\ncupofhottea\n', 'abcde\nbcdea\n', 'apple\napple\n', 'vgxgpuamkxkszhkbpphykinkezplvfjaqmopodotkrjzrimlvumuarenexcfycebeurgvjyospdhvuyfvtvnrdyluacvrayggwnpnzijdifyervjaoalcgxovldqfzaorahdigyojknviaztpcmxlvovafhjphvshyfiqqtqbxjjmqngqjhwkcexecmdkmzakbzrkjwqdyuxdvoossjoatryxmbwxbwexnagmaygzyfnzpq... | cf89c231b20e3395898f5b3e3836ee01 |
__inputs__ = ['cupofcoffee\ncupofhottea\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| a1dc21e58f5a0b014250c08c426c649a |
__inputs__ = ['0 1\n3 1\n', '2 2\n-1 -3\n3 10\n', '2 3\n4 3\n1 2\n', '2 3\n4 2\n1 2\n', '2 3\n1 2\n1 2\n', '2 3\n1 2\n2 3\n', '1 3\n1 2\n2 3\n', '1 31\n0 8\n1 6\n', '1 1\n3 2\n', '2 1\n-1 0\n3 10\n', '1 0\n-1 1\n3 8\n', '1 31\n0 9\n1 6\n', '2 1\n-2 0\n3 10\n', '2 2\n-1 -2\n3 13\n', '2 3\n1 2\n0 4\n', '2 3\n2 7\n4 3\n',... | 719ca40252573a791ded31706d8f3dfe |
__inputs__ = ['1 1\n3 1\n', '2 1\n-1 -3\n3 10\n', '2 3\n3 3\n1 2\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 6e16d436b0c6a41042fadd5ae9a4cb91 |
__inputs__ = ['7 8 2\n3 7\n7 6\n1 2\n4 5\n1 3\n5 6\n4 6\n2 3\na 1 4 3 8 5 2\nb 4 4 4 6 7 1\na 3 4 3 8 5 2\nb 6 4 4 6 7 1\n', '10 20 10\n1 10\n5 10\n2 9\n2 6\n9 6\n3 9\n7 1\n10 5\n7 8\n8 7\n2 3\n9 6\n1 6\n5 3\n4 3\n3 7\n8 2\n6 4\n2 3\n4 1\nTjOMmYPRUY 7 3 1 3 9\nj 6 2 11 15\nBanBSrUA 4 2 19 20\ncSWZxzR 8 1 8\nzVoRlNgt 10... | 269bc0240077cc7dd696a8963988f2c1 |
__inputs__ = ['4 4 3\n1 3\n1 2\n2 3\n3 4\nArtem 1 1 4\nDmitry 1 1 2\nEdvard 4 2 1 3\nArtem 2 0\nDmitry 1 0\nEdvard 4 4 1 2 3 4\n', '2 1 2\n1 2\nDmitry 1 1 1\nNatalia 2 0\nNatalia 1 1 1\nDmitry 2 0\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8'... | 432ac4e4b8cfa72c0f6f5560f3d4e6d7 |
__inputs__ = ['1 1\n', '2 1\n', '3 2\n', '5 3\n', '5 5\n', '5 31\n', '11994 11995\n', '99999 3123\n', '100000 1000000000\n', '100000 1\n', '100000 13\n', '100000 53228\n', '87532 32150\n', '30 99999999\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='... | a0451dbcd915fd393959e20365e04967 |
__inputs__ = ['1 1\n', '2 1\n', '3 2\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| b3cd4cd707be61f8d6a266e2994c4bce |
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(... | e37c79918d675e61da0dbd3276d304a2 |
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(... | 042b295a9ad4439fbebbdfe004d17918 |
__inputs__ = ['10\n1 2 3 4 5 4 3 2 1 6\n', '3\n524125987 923264237 374288891\n', '5\n585325539 365329221 412106895 291882089 564718673\n', '20\n452405440 586588704 509061481 552472140 16115810 148658854 66743034 628305150 677780684 519361360 208050516 401554301 954478790 346543678 387546138 832279893 641889899 80960260... | ed10b79e2943b24e64b2a3947144ef92 |
__inputs__ = ['10\n1 2 3 4 5 4 3 2 1 6\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 7d49dda8028f2eea5ce41f0941741225 |
__inputs__ = ['2 1\n2 2\n0 0\n', '1 1\n2 0\n0 0\n', '3 1\n3 1\n0 0\n', '4 1\n1 1\n0 0\n', '3 0\n0 0\n0 0\n', '3 1\n0 0\n0 0\n', '4 1\n2 2\n0 0\n', '2 1\n2 3\n0 0\n', '1 1\n3 0\n0 0\n', '1 1\n4 0\n0 0\n', '1 2\n4 0\n0 0\n', '1 1\n1 2\n0 0\n', '2 1\n3 2\n0 0\n', '4 2\n2 2\n0 0\n', '1 1\n6 0\n0 0\n', '2 2\n4 0\n0 0\n', '1... | 3fd0f0eee29021377fe1ceaeb20f72be |
__inputs__ = ['1 1\n2 2\n0 0\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| a0dc5b01fcf3d5fe34af4cb0d4a46c64 |
__inputs__ = ['3 17 4\n', '1 2 1\n', '1 1 1\n', '1 5 6\n', '1 1000000000 1\n', '1000 0 1000\n', '859 453892 543\n', '1000 1000000000 1000\n', '1000 500500000 1000\n', '1000 500500001 1000\n', '1000 500499999 1000\n', '634 87973 214\n', '432 10000 241\n', '111 111111111 111\n', '20 43 3\n', '111 111111111 011\n', '619 1... | 4d20a29a160daf089bcc94f15a8ceca8 |
__inputs__ = ['3 17 4\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 888456e52f33531d9f6c3a625b082d4e |
__inputs__ = ['5 5 10 5 4\n', '12 4 12 4 1\n', '15 1 100 0 0\n', '1 1 1 0 0\n', '1000 999 1000 1000 998\n', '1000 2 2 5 1\n', '1000 1 1 1000 0\n', '737 41 74 12 11\n', '1000 1000 1000 0 999\n', '765 12 105 5 7\n', '15 2 2 1000 0\n', '1000 1 1000 1000 0\n', '20 3 7 1 2\n', '1000 500 500 1000 499\n', '1 1000 1000 1000 0\... | f024e71c144a0397a5e2a34a76f3a7fa |
__inputs__ = ['5 5 10 5 4\n', '12 4 12 4 1\n', '15 1 100 0 0\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 558c66312c9e66750e8e0907c561f0dc |
__inputs__ = ['2\n3 1\n0011\n', '6\n10 8 9 11 13 5\n010010011101\n', '1\n1\n01\n', '1\n1000000\n01\n', '2\n1 1000000\n0011\n', '2\n1000000000 1\n0101\n', '2\n1000000000 999999999\n0011\n', '10\n24 53 10 99 83 9 15 62 33 47\n00100000000111111111\n', '2\n1100000000 999999999\n0011\n', '2\n1 1001000\n0011\n', '10\n24 53 1... | 22e0b101a1dc813027de3509f9cd7e91 |
__inputs__ = ['2\n3 1\n0011\n', '6\n10 8 9 11 13 5\n010010011101\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 3df9ad9a59db87e1b29b078bc4ef96e9 |
__inputs__ = ['5\n7\n135\n', '5\n8\n135\n', '5\n5\n135\n', '5\n4\n135\n', '5\n4\n218\n', '5\n2\n218\n', '5\n2\n143\n', '5\n2\n167\n', '5\n2\n89\n', '5\n3\n89\n', '5\n1\n89\n', '5\n1\n155\n', '5\n2\n155\n', '5\n4\n155\n', '5\n4\n233\n', '5\n2\n233\n', '5\n2\n351\n', '5\n2\n181\n', '5\n3\n181\n', '5\n10\n127\n', '5\n14\n... | aee07c39d255ad4aa407b77bf8999fd4 |
__inputs__ = ['5\n7\n127\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 4fd8cbc4781888277d0174dd2450928d |
__inputs__ = ['10 3\n2 5 8\n', '10 3\n3 5 7\n', '100001 1\n1\n', '110001 1\n1\n', '10 1\n2 2 8\n', '3 1\n2 2 12\n', '1 1\n1 3 12\n', '10 3\n2 5 6 8 10\n', '10 1\n1 4 8\n', '8 1\n2 2 7\n', '10 1\n3 0 8\n', '17 2\n2 2 12\n', '7 1\n2 3 12\n', '100001 1\n2\n', '110001 1\n2\n', '12 1\n2 0 29\n', '010001 1\n2\n', '18 2\n2 2 ... | 210be78a1bc590a3f57d51fe3773a0c6 |
__inputs__ = ['10 3\n2 5 7\n', '100000 1\n1\n', '10 5\n2 5 6 8 10\n', '3 2\n1 3\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| aa45bbc154a231079eba31dac0e309ca |
__inputs__ = ['100001 50000\n', '5 10\n', '0 2\n', '100001 27098\n', '5 7\n', '101001 27098\n', '6 7\n', '101000 27098\n', '3 7\n', '101000 9586\n', '3 10\n', '101000 14296\n', '2 10\n', '101000 4853\n', '101000 3325\n', '101001 3325\n', '101001 365\n', '101011 365\n', '101011 172\n', '101011 164\n', '101011 129\n', '1... | 8e49229a10ce39c99a48441904ca3144 |
__inputs__ = ['3 2\n', '100000 50000\n', '10 10\n', '2 2\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| f7e6f9f4834de89e1e559751baaf26aa |
__inputs__ = ['5 8\n.#.#..#.\n.....#..\n.#.#..#.\n#.#....#\n.....#..\n', '5 5\n..#..\n..#..\n#####\n..#..\n..#..\n', '5 9\n........#\n#........\n..##.#...\n.......#.\n....#.#.#\n', '9 5\n.....\n#....\n..#..\n.....\n.#..#\n...#.\n.#...\n....#\n.....\n', '10 10\n..........\n..........\n..........\n..........\n.#.......#\... | 7c527e79e0ce5e974dda2b641a95e3a5 |
__inputs__ = ['5 8\n.#.#..#.\n.....#..\n.#.#..#.\n#.#....#\n.....#..\n', '5 5\n..#..\n..#..\n#####\n..#..\n..#..\n', '5 9\n........#\n#........\n..##.#...\n.......#.\n....#.#.#\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()... | b78674b72c53aa8a0d9534552faebd76 |
__inputs__ = ['2 1 3 6\n', '3 1 3 6\n', '3 0 3 6\n', '3 0 3 12\n', '4 0 1 0\n', '6 0 1 0\n', '6 1 1 0\n', '0 11 -2 -1\n', '0 11 -2 -2\n', '0 11 -2 0\n', '0 11 -2 1\n', '0 11 -3 1\n', '0 17 -3 1\n', '0 17 -3 0\n', '0 17 -2 0\n', '-1 16 -1 0\n', '-14 0 -1 1\n', '0 1 0 22\n', '0 1 1 22\n', '0 0 1 23\n', '0 0 1 43\n', '0 0... | f7bc29dc36a352ecb2bb27925dfb664a |
__inputs__ = ['2 1 3 4\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 7977fceb5d1e9e50e440cac631e6beec |
__inputs__ = ['3\n3 3 3\n', '4\n1 1 1 1\n', '2\n0 2\n', '35\n21 26 18 4 28 2 15 13 16 25 6 32 11 5 31 17 9 3 24 33 14 27 29 1 20 4 12 7 10 30 34 8 19 23 22\n', '2\n2 2\n', '4\n4 4 3 3\n', '8\n3 8 8 4 8 3 4 3\n', '5\n5 4 3 2 1\n', '10\n3 10 3 3 3 10 10 3 3 3\n', '9\n4 7 8 4 1 9 5 6 2\n', '10\n3 7 1 2 6 5 4 10 9 8\n', '1... | b7911dc2a7151c99e7b88a864d9e5ff3 |
__inputs__ = ['3\n3 3 3\n', '4\n1 1 1 1\n', '2\n0 2\n', '35\n21 26 18 4 28 2 15 13 16 25 6 32 11 5 31 17 9 3 24 33 14 27 29 1 20 4 12 7 10 30 34 8 19 23 22\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTIN... | d7e2585d04511fcf84abafe1298d8bec |
__inputs__ = ['3 1 5\n3 2 5\n2 4 2\n1 2\n', '4 2 11\n2 4 6 6\n6 4 2 1\n1 2\n2 3\n', '10 5 100\n70 67 8 64 28 82 18 61 82 7\n596434 595982 237932 275698 361351 850374 936914 877996 789231 331012\n1 7\n2 4\n3 6\n5 7\n1 5\n', '10 5 100\n64 90 3 94 96 97 52 54 82 31\n796554 444893 214351 43810 684158 555762 686198 339093 3... | 1df25c58b81de85ffcf0771f99e955f4 |
__inputs__ = ['3 1 5\n3 2 5\n2 4 2\n1 2\n', '4 2 11\n2 4 6 6\n6 4 2 1\n1 2\n2 3\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 4715eea261c9899274f9351983ff9fe4 |
__inputs__ = ['9 13\n1 2\n1 3\n2 9\n3 4\n3 5\n3 6\n4 9\n5 8\n6 7\n6 8\n7 9\n8 9\n9 1\n', '9 13\n1 2\n1 3\n1 9\n1 4\n3 5\n5 6\n4 9\n5 7\n6 7\n8 8\n7 9\n5 9\n9 1\n', '9 1\n1 1\n1 3\n1 9\n1 4\n3 5\n5 6\n4 9\n5 7\n6 7\n6 8\n7 9\n5 9\n9 1\n', '9 10\n1 2\n1 3\n2 9\n1 4\n3 5\n4 6\n3 9\n5 7\n6 7\n6 8\n7 9\n5 9\n9 1\n', '9 10\n... | 0b7329c939b5425ec75fd89dfded0153 |
__inputs__ = ['9 13\n1 2\n1 3\n2 9\n3 4\n3 5\n3 6\n4 9\n5 7\n6 7\n6 8\n7 9\n8 9\n9 1\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| c36d3c6135e24e5ede79eeb9572ad7e4 |
__inputs__ = ['{a, b, c}\n', '{b, a, b, a}\n', '{}\n', '{a, a, c, b, b, b, c, c, c, c}\n', '{a, c, b, b}\n', '{a, b}\n', '{a}\n', '{b, a, b, a, b, c, c, b, c, b}\n', '{e, g, c, e}\n', '{a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a,... | 49ffceceba79c55ab1f8d4d03e073fec |
__inputs__ = ['{a, b, c}\n', '{b, a, b, a}\n', '{}\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| ae93ce9eecf70c8c277bbd3f6665a293 |
__inputs__ = ['4\nabc\nabcdef\naA\nabAZ\naaa\na\nwhat\nnone\n', '4\nacb\nabcdef\naA\nabAZ\naaa\na\nwhat\nnone\n', '4\nacb\nabcdef\nAa\nabZA\naaa\n`\nwhat\nnone\n', '4\naca\nebcdaf\naA\nAbZa\n`aa\n`\nswha\nnomf\n', '4\nac`\nebcdae\naA\nAbZa\n`aa\n_\nsvha\nnome\n', '4\nac`\nebcdae\naA\nAbZ`\n`aa\n_\nsvha\nemon\n', '4\n`c... | 795b2f802c44b3f8eecffbb0a89158dc |
__inputs__ = ['4\nabc\nabcdef\naA\nabAZ\naaa\na\nwhat\nnone\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 50443767c9f7da0dbc8891d8c0869636 |
__inputs__ = ['1\n', '25\n', '2\n', '4115\n', '9894\n', '7969\n', '6560\n', '4\n', '3\n', '5\n', '19\n', '20\n', '9880\n', '9879\n', '7770\n', '7769\n', '2925\n', '220\n', '219\n', '3046\n', '7590\n', '1014\n', '7142\n', '9999\n', '10000\n', '139\n', '27\n', '8333\n', '493\n', '5943\n', '10001\n', '1802\n', '374\n', '2... | 4e5cb8e759bbfec3fee6920a448c4e80 |
__inputs__ = ['1\n', '25\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| eae1cae5894f6ce2441cff4bce6fcc5b |
__inputs__ = ['3\n2 0\n3 1\n1 3\n4 2\n0 4\n5 5\n', '3\n0 0\n1 1\n5 2\n2 3\n3 4\n4 5\n', '2\n2 2\n3 3\n0 0\n1 1\n', '5\n0 0\n7 3\n2 2\n4 8\n1 6\n8 5\n6 9\n5 4\n9 1\n3 7\n', '5\n0 0\n1 1\n5 5\n6 6\n7 7\n2 2\n3 3\n4 4\n8 8\n9 9\n', '2\n2 2\n3 5\n0 0\n1 1\n', '5\n0 0\n7 3\n2 2\n4 8\n1 6\n8 5\n6 9\n5 4\n9 1\n2 7\n', '5\n0 0... | 6779f239154596585de3c14e7cdc9e58 |
__inputs__ = ['3\n2 0\n3 1\n1 3\n4 2\n0 4\n5 5\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 3ef77466635a4c82fd30d5e4a4fd7f81 |
__inputs__ = ['4\n15 15 50\n15 15 18\n43 88 200\n2013 2013 2013\n', '4\n15 15 50\n15 15 18\n43 88 200\n2013 1560 2013\n', '4\n2 15 50\n15 15 18\n43 88 200\n2013 1560 2013\n', '4\n2 25 50\n15 15 28\n43 88 200\n2013 1798 2013\n', '4\n2 25 50\n15 12 28\n43 88 200\n2013 1798 2013\n', '4\n2 25 50\n15 12 28\n43 88 200\n2715 ... | 0d6e82b5ba4b795bf3e0a72797af76fb |
__inputs__ = ['4\n15 15 50\n15 15 18\n43 88 200\n2013 2013 2013\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| f326711b320efac5e381e0253a7b994a |
__inputs__ = ['2\ntako 2\nyaki 1\n0\ntako yaki\n', '2\ntako 3\nyaji 1\n-1\noakt yaki\n', '2\ntako 1\nyaij 1\n-2\noajt yaki\n', '2\ntako 1\njiay 0\n-2\nouja yakg\n', '2\npaks 1\naxii -1\n-3\nokua hx`j\n', '2\npaks 0\naxii -1\n-1\nnkua hx`j\n', '2\ntako 4\nyaji 1\n0\ntbko yaki\n', '2\ntbko 6\nyaji 1\n-1\noajs yaki\n', '2... | 928175d0972d888410e931284be40310 |
__inputs__ = ['2\ntako 2\nyaki 1\n1\ntako yaki\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 37bc194b0b2ad9b0a3abe8edfd2f7045 |
__inputs__ = ['2\n6\n1 2\n3 4 5\n', '3\n487060\n3831 161856\n845957 794650 976977\n83847 50566 691206 498447\n698377 156232 59015 382455 626960\n', '3\n8\n1 6\n14 13 15\n4 2 11 9\n12 5 3 7 10\n', '1\n1000000\n', '3\n1000000\n999999 999998\n999997 999996 999995\n999994 999993 999992 999991\n999990 999989 999988 999987 9... | 4626c0518e128bbcf6484245f23e5609 |
__inputs__ = ['2\n6\n1 2\n3 4 5\n', '3\n487060\n3831 161856\n845957 794650 976977\n83847 50566 691206 498447\n698377 156232 59015 382455 626960\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 5d078921a067f8cccedccb88c7ad9f27 |
__inputs__ = ['3 3\nS.o\n.o.\no.T\n', '3 4\nS...\n.oo.\n...T\n', '4 3\n.S.\n.o.\n.o.\n.T.\n', '10 10\n.o...o..o.\n....o.....\n....oo.oo.\n..oooo..o.\n....oo....\n..o..o....\no..o....So\no....T....\n....o.....\n........oo\n', '2 2\nST\n..\n', '2 2\nS.\nT.\n', '2 2\nS.\n.T\n', '2 2\nSo\noT\n', '100 100\n.................... | ed6dee13e00defc7972d1d0e277179ef |
__inputs__ = ['3 3\nS.o\n.o.\no.T\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 72b6d7d9fd1efad566fbb953b6a84f24 |
__inputs__ = ['2\n2\n5 10\n4\n15 10 7 13\n', '2\n2\n5 5\n4\n15 10 7 13\n', '2\n2\n5 10\n4\n29 10 7 13\n', '2\n2\n5 5\n4\n15 10 12 13\n', '2\n2\n5 10\n4\n29 0 7 13\n', '2\n2\n5 5\n4\n27 10 12 13\n', '2\n2\n2 5\n4\n27 10 12 13\n', '2\n2\n2 5\n4\n27 10 11 13\n', '2\n2\n9 10\n4\n29 0 4 17\n', '2\n2\n2 5\n4\n27 8 11 13\n', ... | 982456c3fcf7c29fbc5c2267dfd0b0c5 |
__inputs__ = ['2\n2\n5 10\n4\n15 10 7 13\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 515432591b4901132b2f787f0292ab07 |
__inputs__ = ['3\n3 4 1\n5 2 1\n3 4 3\n', '3\n3 4 1\n5 2 2\n3 4 3\n', '3\n3 4 1\n5 0 2\n3 4 3\n', '3\n3 0 1\n5 0 2\n1 4 3\n', '3\n3 0 1\n7 0 2\n1 4 3\n', '3\n3 1 1\n7 0 2\n1 4 3\n', '3\n0 1 1\n7 0 2\n1 4 3\n', '3\n0 1 1\n0 0 2\n1 4 3\n', '3\n0 1 0\n0 0 2\n1 4 4\n', '3\n0 2 0\n0 1 2\n1 4 4\n', '3\n3 4 1\n5 2 1\n4 4 3\n'... | 41bd41a882d5f082fc6b80c58efdd88b |
__inputs__ = ['3\n3 4 1\n5 2 1\n3 4 3\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 57e5648e954951ccbd690b07703bb40f |
__inputs__ = ['2\n4 11\n2 6 14 18\n0 3\n4 5\n11 15\n3 5\n10 13\n16 16\n1 4\n8 12\n17 19\n7 13\n14 19\n4 12\n-9 -16 12 3\n-20 -18\n-14 -13\n-10 -7\n-3 -1\n0 4\n6 11\n7 9\n8 10\n13 15\n14 18\n16 17\n18 19\n', '2\n4 11\n2 6 14 18\n0 3\n4 5\n11 15\n3 5\n10 13\n16 16\n1 4\n8 12\n17 19\n7 13\n14 19\n4 12\n-9 -16 12 3\n-20 -1... | cb5c25d9747c5e8aa5094dbc97733053 |
__inputs__ = ['2\n4 11\n2 6 14 18\n0 3\n4 5\n11 15\n3 5\n10 13\n16 16\n1 4\n8 12\n17 19\n7 13\n14 19\n4 12\n-9 -16 12 3\n-20 -18\n-14 -13\n-10 -7\n-3 -1\n0 4\n6 11\n7 9\n8 10\n13 15\n14 18\n16 17\n18 19\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding=... | 29bf8ec833659713c14bbc834288ca15 |
__inputs__ = ['5 1 4\n12 6 11 9 1\n', '3 1 2\n1 2 3\n', '1 1 1\n1\n', '1 1 1000000000\n1000000000\n', '1 1 1000000000\n999999999\n', '10 1 100000000\n999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999\n', '1 2 1000000000\n1000000000\n', '1 1 1000000010\n999999999\n', '10... | 283491548c382ad2b8406d1fe1dc7d99 |
__inputs__ = ['5 1 4\n12 6 11 9 1\n', '3 1 2\n1 2 3\n', '1 1 1\n1\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 3b0ed6c5f3fbfdba13277531dbbac3c7 |
__inputs__ = ['1 1\n-16\n', '5 3\n-10 10 -18 10 -10\n', '4 2\n7 -10 -10 10\n', '4 2\n7 -6 -10 12\n', '4 2\n7 -6 -10 20\n', '4 2\n9 -1 -10 20\n', '4 2\n13 -1 -10 20\n', '4 2\n3 -1 -10 20\n', '4 3\n3 -1 -10 20\n', '4 3\n3 -1 -1 20\n', '10 5\n5 -4 -5 -8 -4 0 2 -4 0 7\n', '4 4\n9 -1 -10 20\n', '4 3\n3 -1 -1 27\n', '4 2\n1 ... | d984db88210f3e9017cffa455d97005c |
__inputs__ = ['10 5\n5 -4 -5 -8 -4 7 2 -4 0 7\n', '1 1\n-10\n', '5 3\n-10 10 -10 10 -10\n', '4 2\n10 -10 -10 10\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 76ce8f8e67ae534cd9aad966a0aa7ae4 |
__inputs__ = ['5\n0 0 0 0 0\n', '2\n10 2\n', '20\n10 5 3 1 3 7 7 6 8 3 6 2 9 10 5 2 10 9 10 4\n', '10\n8 8 2 2 2 2 10 10 10 8\n', '5\n1 2 3 1 1\n', '20\n10 6 1 9 10 10 7 0 10 5 9 1 5 7 4 9 3 9 7 2\n', '20\n7 7 7 7 7 7 10 10 10 10 23 21 23 20 22 23 22 23 95 97\n', '7\n1000000000 -1000000000 1000000000 -1000000000 100000... | 22fd7f3cf1f7c7b5ccf0aa5572778c64 |
__inputs__ = ['5\n2 1 1 1 1\n', '5\n3 2 -1 2 11\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 3642545898abf668f10a8af1a9b27c29 |
__inputs__ = ['6\n2\n1 3\n3\n1 2 3\n4\n6 2 3 9\n4\n6 8 4 5\n7\n1 2 4 6 7 7 3\n8\n8 6 5 1 2 2 3 6\n', '6\n2\n1 3\n3\n1 2 3\n4\n2 2 3 9\n4\n6 8 4 5\n7\n1 2 4 6 7 7 3\n8\n8 6 5 1 2 2 3 6\n', '6\n2\n1 3\n3\n1 2 3\n4\n2 2 3 14\n4\n6 8 4 5\n7\n1 2 4 6 7 7 3\n8\n8 6 5 1 2 4 3 6\n', '6\n2\n1 3\n3\n1 2 6\n4\n6 2 3 9\n4\n6 8 4 5... | d5affa7e1f3fb9348de96a620633b6f5 |
__inputs__ = ['6\n2\n1 3\n3\n1 2 3\n4\n6 2 3 9\n4\n6 8 4 5\n7\n1 2 4 6 7 7 3\n8\n8 6 5 1 2 2 3 6\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 3ced094febc119fa54f81550548acb9c |
__inputs__ = ['5\n1\n1 1 10 10\n2\n10 5 2 10 1 1 2 5\n2\n10 5 1 10 5 1 1 1\n2\n1 1 1 1 1 1 1 1\n1\n10000 10000 10000 10000\n', '1\n2\n11 1 11 1 5 2 5 2\n', '1\n2\n1 1 3 3 5 5 10 10\n', '1\n2\n1 11 1 11 5 2 5 2\n', '1\n2\n3 3 4 4 4 4 6 6\n', '1\n2\n3 3 4 4 4 4 6 4\n', '5\n1\n1 1 2 10\n2\n10 5 2 10 1 1 2 5\n2\n10 5 1 10 ... | c12049f2e57fd6471cc77e213b9b6e44 |
__inputs__ = ['5\n1\n1 1 10 10\n2\n10 5 2 10 1 1 2 5\n2\n10 5 1 10 5 1 1 1\n2\n1 1 1 1 1 1 1 1\n1\n10000 10000 10000 10000\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| a25be306e87eb2c11d3f4bc39f647e5e |
__inputs__ = ['11\n10\n', '1\n01\n', '000\n101\n', '1101\n1111\n', '11000001\n00000001\n', '01\n10\n', '0000\n1110\n', '010101\n101010\n', '0\n1\n', '1\n1\n', '0\n0\n', '1\n0\n', '100\n11111\n', '1000000000000000000000000000000000000011111111000000000000\n0111111111100000000000111111111000000000000000111111110001\n', '... | b1c6dd715f82330055a19bb36645a5e0 |
__inputs__ = ['11\n10\n', '1\n01\n', '000\n101\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 70a9e2143ddacfcf73f3f6fb7fae48dc |
__inputs__ = ['1 1\n', '2 2\n', '100000 3\n', '2344 5\n', '999 10\n', '6 1\n', '43 4\n', '3333 3\n', '4444 4\n', '100000 10\n', '3134 9\n', '9 9\n', '32 9\n', '33333 9\n', '99999 1\n', '99999 9\n', '99999 7\n', '4234 4\n', '66666 6\n', '66666 9\n', '67676 7\n', '7777 7\n', '7656 2\n', '2 8\n', '2 10\n', '2 4\n', '8 1\n... | 196058279fe2a9291f6f80149d028923 |
__inputs__ = ['1 1\n', '2 2\n', '1 1\n', '2 2\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 55f1785376b105f4882749bc0267e148 |
__inputs__ = ['4 4\n1 3 3\n2 3 1\n2 4 5\n3 4 2\n5\n4 5 6\n', '4 4\n1 2 3\n2 3 1\n2 4 5\n3 4 2\n5\n4 5 7\n', '4 4\n1 3 4\n2 3 1\n2 4 5\n3 4 2\n5\n4 5 6\n', '4 4\n1 3 4\n2 3 0\n2 4 5\n3 4 2\n5\n4 5 6\n', '4 4\n1 3 4\n2 3 1\n2 2 10\n3 4 1\n5\n4 5 6\n', '4 4\n1 2 3\n2 3 1\n3 4 5\n3 4 2\n5\n4 5 6\n', '4 4\n1 3 4\n2 3 1\n2 4... | ec5a28bb907bdf24a1d9e1fa7c4c2a5d |
__inputs__ = ['4 4\n1 2 3\n2 3 1\n2 4 5\n3 4 2\n5\n4 5 6\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 3553fd23cccb218487e5ac249c44d5ee |
__inputs__ = ['5 4\n9 14 6 2 11\n8 4 7 20\n', '5 1\n2 4 6 8 10\n5\n', '1 4\n10\n20 30 40 50\n', '27 9\n72 105 100 105 110 103 32 109 101 115 115 97 103 101 115 32 105 110 32 116 101 115 116 99 97 115 101\n83 110 101 97 107 32 49 48 48\n', '3 10\n107 117 110\n71 114 101 101 110 71 114 97 112 101\n', '7 4\n116 111 117 11... | 8e34d8bd0743f00ab5ef4910d65b4a8e |
__inputs__ = ['5 4\n9 14 6 2 11\n8 4 7 20\n', '5 1\n2 4 6 8 10\n5\n', '1 4\n10\n20 30 40 50\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| ba20128fc3f799934f5c2a9dc5bd5581 |
__inputs__ = ['9\n1 3 6 13 15 18 19 29 31\n10\n4\n1 8\n7 3\n6 7\n8 5\n', '9\n1 3 6 13 15 18 19 29 31\n10\n2\n1 8\n7 3\n6 7\n8 5\n', '9\n1 6 6 13 23 18 19 29 31\n10\n3\n1 8\n7 3\n6 7\n8 10\n', '9\n1 3 6 13 23 18 19 29 31\n10\n2\n1 8\n7 5\n6 7\n8 5\n', '9\n1 3 6 13 23 18 19 29 31\n10\n2\n1 9\n7 3\n6 7\n8 10\n', '9\n1 3 6... | f01e3ffaaeaf5b344f64b75b18a85b35 |
__inputs__ = ['9\n1 3 6 13 15 18 19 29 31\n10\n4\n1 8\n7 3\n6 7\n8 5\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 91c6fd305e2f7b8496ea7ebb50c836c5 |
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(... | c1289b48d418bc10cda67de03f8ef046 |
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(... | ab5961290d2f611504464eed8f9f1c77 |
__inputs__ = ['93 10\n6 47 6 89 21 91 51 72 32 48 54 89 36 12 25 38 58 62 54 16 5 52 52 85 67 33 81 72 6 42 91 16 29 78 56 62 75 48 69 12 89 34 27 15 7 80 14 57 29 6 80 46 64 94 83 96 1 42 11 41 15 26 17 36 44 11 68 73 93 45 73 35 91 14 84 48 7 8 63 84 59 68 87 26 91 10 54 41 74 71 74 62 24\n', '15 6\n1 6 6 5 2 10 4 4 ... | 46fd15d1503e463220421e570e99bbab |
__inputs__ = ['5 3\n5 5 7 3 1\n', '4 2\n1 2 3 4\n', '2 3\n1 2\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 18463bac4179108e7c915fecc1a4acd4 |
__inputs__ = ['2 7 10\n5 6\n', '1 5 10\n7\n', '3 10 10\n5 7 7\n', '1 1 1\n1\n', '2 951637 951638\n44069 951637\n', '50 100 129\n55 130 91 19 116 3 63 52 104 76 75 27 151 99 149 147 39 148 84 9 132 49 40 112 124 141 144 93 36 32 146 74 48 38 150 55 94 32 107 69 77 81 33 57 62 98 78 127 154 126\n', '100 1000 1083\n992 61... | 235c8619ef0bbf6befa6d427ff07139f |
__inputs__ = ['2 7 10\n5 6\n', '1 5 10\n7\n', '3 10 10\n5 7 7\n', '1 1 1\n1\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 33f4cbfe19bb60bec487bf8857d63c81 |
__inputs__ = ['3\n0 983 173\n983 0 810\n173 810 0\n3\n3 2 567\n2 3 767\n1 2 763\n', '5\n0 954 1255 266 751\n954 0 1677 688 1173\n1255 1677 0 989 504\n266 688 989 0 485\n751 1173 504 485 0\n5\n5 2 837\n3 4 692\n3 5 756\n3 1 151\n2 5 262\n', '4\n0 537 1064 656\n537 0 527 119\n1064 527 0 408\n656 119 408 0\n4\n1 4 123\n1 ... | ec73f4add70c8e288c56d6a0c981b8fb |
__inputs__ = ['2\n0 5\n5 0\n1\n1 2 3\n', '3\n0 4 5\n4 0 9\n5 9 0\n2\n2 3 8\n1 2 1\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 49a211c4ba36495e7650974889b2c885 |
__inputs__ = ['5\n2 2 3 4 6\n', '4\n2 4 6 8\n', '3\n2 6 9\n', '15\n10 10 10 10 10 10 21 21 21 21 21 21 21 21 21\n', '12\n10 10 14 14 14 14 14 14 14 14 21 21\n', '5\n10 10 14 21 21\n', '9\n10 10 10 10 10 14 14 21 21\n', '9\n10 10 10 10 10 10 10 10 21\n', '13\n10 10 10 15 15 15 15 15 15 15 15 21 21\n', '15\n10 10 10 10 1... | 27d36e89736c165e3845daeff025f9b0 |
__inputs__ = ['5\n2 2 3 4 6\n', '4\n2 4 6 8\n', '3\n2 6 9\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 48ffa14f3e2b5794716003762758637b |
__inputs__ = ['2\n3 3\n3 6 9\n3 3\n6 4 11\n', '1\n10 1\n1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000\n', '1\n20 2\n536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 ... | c464c3cb431e2c82d71a4ed844ad3002 |
__inputs__ = ['2\n3 3\n3 6 9\n3 3\n6 4 11\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| 2ab039bc4c462378b14a75dce7cc4e99 |
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(... | 1ceda01cd8c35a2749e2fa983bdccfb1 |
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(... | 401dbe9d772c509cc11e81a0d23d1f1a |
__inputs__ = ['6\n1 2 3 1 1 3\n', '6\n1 2 3 1 0 3\n', '6\n2 2 3 1 0 3\n', '6\n2 2 3 2 0 3\n', '6\n4 2 3 2 0 3\n', '6\n4 2 3 2 0 4\n', '6\n4 4 3 2 0 4\n', '6\n7 4 3 2 0 4\n', '6\n7 4 3 2 1 4\n', '6\n7 4 3 2 2 4\n', '6\n7 0 3 2 2 4\n', '6\n7 -1 3 2 2 4\n', '6\n6 -1 3 2 2 4\n', '6\n6 -1 1 2 2 4\n', '6\n6 -1 1 1 2 4\n', '6... | c0db8a2938123092dc3d3ccbe2ba5424 |
__inputs__ = ['6\n1 2 3 1 2 3\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| a5f1c16ccca611537fc7fcdaeec2bd7c |
__inputs__ = ['2\n0 1\n1 1\n', '4\n0 1\n1 2\n1 1\n0 2\n', '4\n0 1\n1 1\n0 1\n0 2\n', '4\n7 1\n4 2\n8 2\n1 8\n', '2\n0 8\n0 5\n', '3\n7 9\n5 8\n8 2\n', '1\n0 8\n', '5\n8 10\n7 9\n5 6\n5 2\n10 7\n', '7\n0 2\n0 3\n0 2\n0 1\n0 10\n1 10\n0 5\n', '6\n0 1\n1 1\n2 1\n1 1\n2 1\n4 1\n', '4\n0 1\n1 1\n0 1\n2 1\n', '6\n0 1\n1 1\n2... | 59c7f5dc3d53f869e0f76c3d348403f9 |
__inputs__ = ['2\n0 1\n1 1\n', '4\n0 1\n1 2\n1 1\n0 2\n', '4\n0 1\n1 1\n0 1\n0 2\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL___")
| de681ab4852e6418ea5d1326b8a61f94 |
__inputs__ = ['1\n5\n0 0\n0 1\n0 2\n0 3\n12\n0 0\n1 1\n2 0\n3 1\n4 1\n5 1\n6 2\n7 2\n8 2\n9 3\n10 3\n10\n0 2\n1 2\n2 2\n3 2\n2 1\n5 1\n6 1\n7 1\n8 1\n0\n', '1\n5\n0 0\n0 1\n0 2\n0 3\n12\n0 0\n1 0\n2 0\n3 1\n4 1\n5 1\n6 2\n7 2\n8 2\n9 3\n10 3\n10\n0 2\n1 3\n2 2\n3 2\n2 1\n5 1\n6 1\n7 1\n8 1\n0\n', '1\n5\n0 0\n0 0\n0 2\n... | 3a6d67460b05e2883f52ebb07f5fca40 |
__inputs__ = ['1\n5\n0 0\n0 1\n0 2\n0 3\n12\n0 0\n1 0\n2 0\n3 1\n4 1\n5 1\n6 2\n7 2\n8 2\n9 3\n10 3\n10\n0 2\n1 2\n2 2\n3 2\n2 1\n5 1\n6 1\n7 1\n8 1\n0\n']
for __inp__ in __inputs__:
import io
sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8')
__run_prog__()
print("___SENTINEL__... | cbf08b22a5b41427691a7688fca7cc24 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.