You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
275 B
15 lines
275 B
4 years ago
|
#!/usr/bin/env python3
|
||
|
|
||
|
from sys import argv
|
||
|
|
||
|
b = [int(x.replace("F", "0").replace("B", "1").replace("L", "0").replace("R", "1"), 2) for x in open(argv[1])]
|
||
|
|
||
|
ok2 = 0
|
||
|
for x in range(min(b), max(b)+1):
|
||
|
if x not in b:
|
||
|
ok2 = x
|
||
|
break
|
||
|
|
||
|
print(max(b))
|
||
|
print(ok2)
|