content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
CHUNK_SIZE = 16 CHUNK_SIZE_PIXELS = 256 RATTLE_DELAY = 10 RATTLE_RANGE = 3
chunk_size = 16 chunk_size_pixels = 256 rattle_delay = 10 rattle_range = 3
def solution(string, markers): string = string.split('\n') result = '' for line in string: for character in line: if character not in markers: result += character else: result = result[:-1] break result += '\n' return result[:-1] #Alternative solution def solution(string, markers): lines = string.split('\n') for index, line in enumerate(lines): for marker in markers: if line.find(marker) != -1: line = line[:line.find(marker)] lines[index] = line.rstrip(' ') return '\n'.join(lines)
def solution(string, markers): string = string.split('\n') result = '' for line in string: for character in line: if character not in markers: result += character else: result = result[:-1] break result += '\n' return result[:-1] def solution(string, markers): lines = string.split('\n') for (index, line) in enumerate(lines): for marker in markers: if line.find(marker) != -1: line = line[:line.find(marker)] lines[index] = line.rstrip(' ') return '\n'.join(lines)
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' errno.py Error Code Define Copyright: All Rights Reserved 2019-2019 History: 1 2019-07-14 Liu Yu ([email protected]) Initial Version ''' SUCCESS = 'SUCC' ERROR_SUCCESS = SUCCESS FAIL = 'FAIL' ERROR = FAIL ERROR_INVALID = 'INVALID' ERROR_UNSUPPORT = 'UNSUPPORT'
""" errno.py Error Code Define Copyright: All Rights Reserved 2019-2019 History: 1 2019-07-14 Liu Yu ([email protected]) Initial Version """ success = 'SUCC' error_success = SUCCESS fail = 'FAIL' error = FAIL error_invalid = 'INVALID' error_unsupport = 'UNSUPPORT'
# Write a Python program to add leading zeroes to a string String = 'hello' print(String.rjust(9, '0'))
string = 'hello' print(String.rjust(9, '0'))
class InputMode: def __init__(self): pass def GetTitle(self): return "" def TitleHighlighted(self): return True def GetHelpText(self): return None def OnMouse(self, event): pass def OnKeyDown(self, event): pass def OnKeyUp(self, event): pass def OnModeChange(self): return True def GetTools(self, t_list, p): pass def OnRender(self): pass def GetProperties(self, p_list): pass
class Inputmode: def __init__(self): pass def get_title(self): return '' def title_highlighted(self): return True def get_help_text(self): return None def on_mouse(self, event): pass def on_key_down(self, event): pass def on_key_up(self, event): pass def on_mode_change(self): return True def get_tools(self, t_list, p): pass def on_render(self): pass def get_properties(self, p_list): pass
src = Split(''' hal_test.c ''') component = aos_component('hal_test', src) component.add_cflags('-Wall') component.add_cflags('-Werror')
src = split('\n hal_test.c\n') component = aos_component('hal_test', src) component.add_cflags('-Wall') component.add_cflags('-Werror')
class resizable_array: def __init__(self,arraysize): self.arraysize = arraysize self.array = [None for i in range(self.arraysize)] self.temp =1 def __insert(self,value): for i in range(len(self.array)): if self.array[i] == None: self.array[i] = value break #print(self.array) #return self.array def insert_at_end(self, value): if None not in self.array : self.newsize= self.temp+len(self.array) self.newarray = [None for i in range(self.newsize)] for i in range(len(self.array)): self.newarray[i]=self.array[i] # temp contains value of i i_temp=i self.newarray[i_temp+1]=value self.array = self.newarray self.newarray = None #print(self.array) #return self.array else: self.__insert(value) def printarray(self): return self.array def insert_at_first(self, value): self.create_new_size = len(self.array)+1 self.create_new_size = ['insert' for i in range(self.create_new_size)] self.create_new_size[0] = value n = len(self.array) for i in range(1,n+1): self.create_new_size[i] = self.array[i-1] self.array = self.create_new_size self.create_new_size = None #print(self.array) #return self.array def delete_at_end(self): if len(self.array) == 0: print("Array is empty") else: self.newsize = len(self.array)-1 self.newarray = [None for i in range(self.newsize)] for i in range(len(self.array)-1): self.newarray[i] = self.array[i] self.array=self.newarray #print(self.array) #return(self.array) def delete_at_first(self): if len(self.array) == 0: print('Array is empty!') else: if len(self.array)==1: self.array =[] else: self.create_new_size = len(self.array) - 1 self.newarray = ['insert' for i in range(self.create_new_size)] n = len(self.newarray) for i in range(0,n): self.newarray[i] = self.array[i+1] self.array = self.newarray self.newarray = None #print(self.array) #return self.array def insert_at_middle(self, insertafter, insertedvalue): self.create_new_size = len(self.array) + 1 self.newarray = [None for i in range(self.create_new_size)] #3 n = len(self.array)-1 #2 if self.array[n] == insertafter: self.insert_at_end(insertedvalue) elif insertafter in self.array: for i in range(0, n): if self.array[i] == insertafter: self.newarray[i] = self.array[i] self.newarray[i + 1] = insertedvalue i = i + 2 break else: self.newarray[i] = self.array[i] for j in range(i , len(self.newarray)): self.newarray[j] = self.array[j - 1] self.array = self.newarray self.newarray = None #print(self.array) #return self.array else: print("value does not exists in Array after which you want to insert new value!") def shrink(self,value): self.create_new_size = len(self.array)-1 self.newarray = [None for i in range(self.create_new_size)] flag=False if len(self.array)==0: print("Array is empty!") else: for i in range(len(self.array)): try: if self.array[i]!=value and flag == False: self.newarray[i]=self.array[i] elif flag == True or self.array[i]==value: self.newarray[i]=self.array[i+1] flag = True else: flag=True except: pass self.array=self.newarray self.newarray=None #print(self.array) #return self.array def maximum_value(self): max=self.array[0] for i in range(len(self.array)): for j in range(len(self.array)): if max<self.array[j]: max = self.array[j] print("maximum value in array is: {}".format( max)) return max def minimum_value(self): min=self.array[0] for i in range(len(self.array)): for j in range(len(self.array)): if min>self.array[j]: min = self.array[j] print("minimum value in array is: {}".format(min)) return min ob1= resizable_array(1) print("\n---------Initial Array---------") print(ob1.printarray()) print("\n---------Insert at End---------") ob1.insert_at_end(5) ob1.insert_at_end(6) ob1.insert_at_end(7) ob1.insert_at_end(7.5) print(ob1.printarray()) print('\n---------Insert at First---------') ob1.insert_at_first(4) ob1.insert_at_first(3) ob1.insert_at_first(2) ob1.insert_at_first(1) ob1.insert_at_first(0.5) print(ob1.printarray()) print('\n---------Delete at First---------') ob1.delete_at_first() print(ob1.printarray()) print("\n---------Delete at End---------") ob1.delete_at_end() print(ob1.printarray()) print("\n---------Insert at Middle--------- ") ob1.insert_at_middle(5, 5.5) ob1.insert_at_middle(6, 6.5) ob1.insert_at_middle(7, 7.5) print(ob1.printarray()) ob1.insert_at_middle(8, 88) print("\n---------Shrink--------- ") ob1.shrink(5.5) ob1.shrink(6.5) ob1.shrink(7.5) print(ob1.printarray()) print("\n---------Maximum Value--------- ") ob1.maximum_value() print("\n---------Minimum Value--------- ") ob1.minimum_value()
class Resizable_Array: def __init__(self, arraysize): self.arraysize = arraysize self.array = [None for i in range(self.arraysize)] self.temp = 1 def __insert(self, value): for i in range(len(self.array)): if self.array[i] == None: self.array[i] = value break def insert_at_end(self, value): if None not in self.array: self.newsize = self.temp + len(self.array) self.newarray = [None for i in range(self.newsize)] for i in range(len(self.array)): self.newarray[i] = self.array[i] i_temp = i self.newarray[i_temp + 1] = value self.array = self.newarray self.newarray = None else: self.__insert(value) def printarray(self): return self.array def insert_at_first(self, value): self.create_new_size = len(self.array) + 1 self.create_new_size = ['insert' for i in range(self.create_new_size)] self.create_new_size[0] = value n = len(self.array) for i in range(1, n + 1): self.create_new_size[i] = self.array[i - 1] self.array = self.create_new_size self.create_new_size = None def delete_at_end(self): if len(self.array) == 0: print('Array is empty') else: self.newsize = len(self.array) - 1 self.newarray = [None for i in range(self.newsize)] for i in range(len(self.array) - 1): self.newarray[i] = self.array[i] self.array = self.newarray def delete_at_first(self): if len(self.array) == 0: print('Array is empty!') elif len(self.array) == 1: self.array = [] else: self.create_new_size = len(self.array) - 1 self.newarray = ['insert' for i in range(self.create_new_size)] n = len(self.newarray) for i in range(0, n): self.newarray[i] = self.array[i + 1] self.array = self.newarray self.newarray = None def insert_at_middle(self, insertafter, insertedvalue): self.create_new_size = len(self.array) + 1 self.newarray = [None for i in range(self.create_new_size)] n = len(self.array) - 1 if self.array[n] == insertafter: self.insert_at_end(insertedvalue) elif insertafter in self.array: for i in range(0, n): if self.array[i] == insertafter: self.newarray[i] = self.array[i] self.newarray[i + 1] = insertedvalue i = i + 2 break else: self.newarray[i] = self.array[i] for j in range(i, len(self.newarray)): self.newarray[j] = self.array[j - 1] self.array = self.newarray self.newarray = None else: print('value does not exists in Array after which you want to insert new value!') def shrink(self, value): self.create_new_size = len(self.array) - 1 self.newarray = [None for i in range(self.create_new_size)] flag = False if len(self.array) == 0: print('Array is empty!') else: for i in range(len(self.array)): try: if self.array[i] != value and flag == False: self.newarray[i] = self.array[i] elif flag == True or self.array[i] == value: self.newarray[i] = self.array[i + 1] flag = True else: flag = True except: pass self.array = self.newarray self.newarray = None def maximum_value(self): max = self.array[0] for i in range(len(self.array)): for j in range(len(self.array)): if max < self.array[j]: max = self.array[j] print('maximum value in array is: {}'.format(max)) return max def minimum_value(self): min = self.array[0] for i in range(len(self.array)): for j in range(len(self.array)): if min > self.array[j]: min = self.array[j] print('minimum value in array is: {}'.format(min)) return min ob1 = resizable_array(1) print('\n---------Initial Array---------') print(ob1.printarray()) print('\n---------Insert at End---------') ob1.insert_at_end(5) ob1.insert_at_end(6) ob1.insert_at_end(7) ob1.insert_at_end(7.5) print(ob1.printarray()) print('\n---------Insert at First---------') ob1.insert_at_first(4) ob1.insert_at_first(3) ob1.insert_at_first(2) ob1.insert_at_first(1) ob1.insert_at_first(0.5) print(ob1.printarray()) print('\n---------Delete at First---------') ob1.delete_at_first() print(ob1.printarray()) print('\n---------Delete at End---------') ob1.delete_at_end() print(ob1.printarray()) print('\n---------Insert at Middle--------- ') ob1.insert_at_middle(5, 5.5) ob1.insert_at_middle(6, 6.5) ob1.insert_at_middle(7, 7.5) print(ob1.printarray()) ob1.insert_at_middle(8, 88) print('\n---------Shrink--------- ') ob1.shrink(5.5) ob1.shrink(6.5) ob1.shrink(7.5) print(ob1.printarray()) print('\n---------Maximum Value--------- ') ob1.maximum_value() print('\n---------Minimum Value--------- ') ob1.minimum_value()
qt=int(input()) for i in range(qt): jogadores=input().split() nome1=str(jogadores[0]) escolha1=str(jogadores[1]) nome2 = str(jogadores[2]) escolha2 = str(jogadores[3]) numeros=input().split() numerosJ1=int(numeros[0]) numerosJ2=int(numeros[1]) if escolha1=="PAR" and escolha2=="IMPAR": if (numerosJ1+numerosJ2)%2==0: print(nome1) else: print(nome2) if escolha1 == "IMPAR" and escolha2 == "PAR": if (numerosJ1 + numerosJ2) % 2 == 0: print(nome2) else: print(nome1)
qt = int(input()) for i in range(qt): jogadores = input().split() nome1 = str(jogadores[0]) escolha1 = str(jogadores[1]) nome2 = str(jogadores[2]) escolha2 = str(jogadores[3]) numeros = input().split() numeros_j1 = int(numeros[0]) numeros_j2 = int(numeros[1]) if escolha1 == 'PAR' and escolha2 == 'IMPAR': if (numerosJ1 + numerosJ2) % 2 == 0: print(nome1) else: print(nome2) if escolha1 == 'IMPAR' and escolha2 == 'PAR': if (numerosJ1 + numerosJ2) % 2 == 0: print(nome2) else: print(nome1)
class VertexPaint: use_group_restrict = None use_normal = None use_spray = None
class Vertexpaint: use_group_restrict = None use_normal = None use_spray = None
@app.post('/login') def login(response: Response): ... token = manager.create_access_token( data=dict(sub=user.email) ) manager.set_cookie(response, token) return response
@app.post('/login') def login(response: Response): ... token = manager.create_access_token(data=dict(sub=user.email)) manager.set_cookie(response, token) return response
print("Pass statement in Python"); for i in range (1,11,1): if(i==3): i = i + 1; pass; else: print(i); i = i + 1;
print('Pass statement in Python') for i in range(1, 11, 1): if i == 3: i = i + 1 pass else: print(i) i = i + 1
# Runtime error N = int(input()) X = list(map(int, input().split())) # Memory problem tot = sum(X) visited = [False for k in range(N)] currentStar = 0 while True: if currentStar < 0 or currentStar > N-1: break else: visited[currentStar] = True if X[currentStar] >= 1: if X[currentStar] % 2 == 0: X[currentStar] -= 1 currentStar -= 1 else: X[currentStar] -= 1 currentStar += 1 tot -= 1 else: if X[currentStar] % 2 == 0: currentStar -= 1 else: currentStar += 1 print("{0} {1}".format(sum(visited), tot))
n = int(input()) x = list(map(int, input().split())) tot = sum(X) visited = [False for k in range(N)] current_star = 0 while True: if currentStar < 0 or currentStar > N - 1: break else: visited[currentStar] = True if X[currentStar] >= 1: if X[currentStar] % 2 == 0: X[currentStar] -= 1 current_star -= 1 else: X[currentStar] -= 1 current_star += 1 tot -= 1 elif X[currentStar] % 2 == 0: current_star -= 1 else: current_star += 1 print('{0} {1}'.format(sum(visited), tot))
n = int(input()) for i in range(n): dieta = list(input()) cafe = list(input()) almoco = list(input()) todos = cafe + almoco cheat = False for comido in todos: if comido in dieta: dieta.remove(comido) else: cheat = True if not cheat: print("".join(sorted(dieta))) else: print("CHEATER")
n = int(input()) for i in range(n): dieta = list(input()) cafe = list(input()) almoco = list(input()) todos = cafe + almoco cheat = False for comido in todos: if comido in dieta: dieta.remove(comido) else: cheat = True if not cheat: print(''.join(sorted(dieta))) else: print('CHEATER')
first_name = input("Enter you name") last_name = input("Enter you surname") past_year = input("MS program start year?") a = 2 + int(past_year) print(f"{first_name} {last_name} {past_year} you are graduate in {a}")
first_name = input('Enter you name') last_name = input('Enter you surname') past_year = input('MS program start year?') a = 2 + int(past_year) print(f'{first_name} {last_name} {past_year} you are graduate in {a}')
# -------------- # Code starts here class_1 = ['Geoffrey Hinton','Andrew Ng', 'Sebastian Raschka', 'Yoshua Bengio'] #print(class_1) class_2 = ['Hilary Mason', 'Carla Gentry', 'Corinna Cortes'] #print(class_2) new_class = class_1 + class_2 print(new_class) new_class.append('Peter Warden') print(new_class) new_class.remove('Carla Gentry') print(new_class) # Code ends here # -------------- # Code starts here courses = { "Math":65, "English":70, "History":80, "French":70, "Science":60 } print(courses['Math']) print(courses['English']) print(courses['History']) print(courses['French']) print(courses['Science']) total = courses['Math'] + courses['English'] + courses['History'] + courses['French'] + courses['Science'] print(total) percentage = (total / 500) * 100 print(percentage) # Code ends here # -------------- # Code starts here mathematics = { "Geoffrey Hinton":78, "Andrew Ng":95, "Sebastian Raschka":65, "Yoshua Benjio":50, "Hilary Mason":70, "Corinna Cortes":66, "Peter Warden":75 } topper = max(mathematics,key = mathematics.get) print(topper) # Code ends here # -------------- # Given string topper = 'andrew ng' # Code starts here topper = "andrew ng" topper = topper.split() first_name = topper[0] last_name = topper[1] full_name = last_name + " " + first_name certificate_name = full_name.upper() print(certificate_name) # Code ends here
class_1 = ['Geoffrey Hinton', 'Andrew Ng', 'Sebastian Raschka', 'Yoshua Bengio'] class_2 = ['Hilary Mason', 'Carla Gentry', 'Corinna Cortes'] new_class = class_1 + class_2 print(new_class) new_class.append('Peter Warden') print(new_class) new_class.remove('Carla Gentry') print(new_class) courses = {'Math': 65, 'English': 70, 'History': 80, 'French': 70, 'Science': 60} print(courses['Math']) print(courses['English']) print(courses['History']) print(courses['French']) print(courses['Science']) total = courses['Math'] + courses['English'] + courses['History'] + courses['French'] + courses['Science'] print(total) percentage = total / 500 * 100 print(percentage) mathematics = {'Geoffrey Hinton': 78, 'Andrew Ng': 95, 'Sebastian Raschka': 65, 'Yoshua Benjio': 50, 'Hilary Mason': 70, 'Corinna Cortes': 66, 'Peter Warden': 75} topper = max(mathematics, key=mathematics.get) print(topper) topper = 'andrew ng' topper = 'andrew ng' topper = topper.split() first_name = topper[0] last_name = topper[1] full_name = last_name + ' ' + first_name certificate_name = full_name.upper() print(certificate_name)
class Solution: def validateStackSequences(self, pushed: List[int], popped: List[int]) -> bool: if not pushed and not popped: return True aux = [] idx = 0 for _ in pushed: aux.append(_) while aux and aux[-1] == popped[idx]: aux.pop() idx += 1 return not aux
class Solution: def validate_stack_sequences(self, pushed: List[int], popped: List[int]) -> bool: if not pushed and (not popped): return True aux = [] idx = 0 for _ in pushed: aux.append(_) while aux and aux[-1] == popped[idx]: aux.pop() idx += 1 return not aux
widget = WidgetDefault() widget.border = "None" commonDefaults["GroupBoxWidget"] = widget def generateGroupBoxWidget(file, screen, box, parentName): name = box.getName() file.write(" %s = leGroupBoxWidget_New();" % (name)) generateBaseWidget(file, screen, box) writeSetStringAssetName(file, name, "String", box.getStringName()) file.write(" %s->fn->addChild(%s, (leWidget*)%s);" % (parentName, parentName, name)) file.writeNewLine() def generateGroupBoxAction(text, variables, owner, event, action): name = action.targetName if action.actionID == "SetString": val = getActionArgumentValue(action, "String") writeActionFunc(text, action, "setString", [val]) else: generateWidgetAction(text, variables, owner, event, action)
widget = widget_default() widget.border = 'None' commonDefaults['GroupBoxWidget'] = widget def generate_group_box_widget(file, screen, box, parentName): name = box.getName() file.write(' %s = leGroupBoxWidget_New();' % name) generate_base_widget(file, screen, box) write_set_string_asset_name(file, name, 'String', box.getStringName()) file.write(' %s->fn->addChild(%s, (leWidget*)%s);' % (parentName, parentName, name)) file.writeNewLine() def generate_group_box_action(text, variables, owner, event, action): name = action.targetName if action.actionID == 'SetString': val = get_action_argument_value(action, 'String') write_action_func(text, action, 'setString', [val]) else: generate_widget_action(text, variables, owner, event, action)
# Problem Statement Link: https://www.hackerrank.com/challenges/the-minion-game/problem def minion_game(w): s = k = 0 v = ['A', 'E', 'I', 'O', 'U'] for x in range( len(w) ): if w[x] in v: k += (len(w)-x) else: s += (len(w)-x) if s == k: print("Draw") else: if s > k: print("Stuart", s) else: print("Kevin", k) if __name__ == '__main__': s = input() minion_game(s)
def minion_game(w): s = k = 0 v = ['A', 'E', 'I', 'O', 'U'] for x in range(len(w)): if w[x] in v: k += len(w) - x else: s += len(w) - x if s == k: print('Draw') elif s > k: print('Stuart', s) else: print('Kevin', k) if __name__ == '__main__': s = input() minion_game(s)
a = 10 print(a)
a = 10 print(a)
def stations_level_over_threshold(stations, tol): #2B part 2 stationList = [] for station in stations: if station.typical_range_consistent() and station.latest_level != None: if station.relative_water_level() > tol: stationList.append((station, station.relative_water_level())) sortedList = sorted(stationList, key=lambda x: x[1], reverse=True) return sortedList def stations_highest_rel_level(stations, N): stationList = list() for station in stations: if station.typical_range_consistent() and station.latest_level != None: stationList.append((station, station.relative_water_level())) sortedList = sorted(stationList, key=lambda x: x[1], reverse=True) Nslice = sortedList[0:N] return Nslice
def stations_level_over_threshold(stations, tol): station_list = [] for station in stations: if station.typical_range_consistent() and station.latest_level != None: if station.relative_water_level() > tol: stationList.append((station, station.relative_water_level())) sorted_list = sorted(stationList, key=lambda x: x[1], reverse=True) return sortedList def stations_highest_rel_level(stations, N): station_list = list() for station in stations: if station.typical_range_consistent() and station.latest_level != None: stationList.append((station, station.relative_water_level())) sorted_list = sorted(stationList, key=lambda x: x[1], reverse=True) nslice = sortedList[0:N] return Nslice
lanches = ['X-Bacon','X-Tudo','X-Calabresa', 'CalaFrango','X-Salada','CalaFrango','X-Bacon','CalaFrango'] lanches_finais = [] print('Estamos sem CalaFrango') while 'CalaFrango' in lanches: lanches.remove('CalaFrango') while lanches: preparo = lanches.pop() print('Preparei seu lanche de {}'.format(preparo)) lanches_finais.append(preparo) print('\nOs lanches finais hoje foram:') for lanche in lanches_finais: print('\t{}'.format(lanche))
lanches = ['X-Bacon', 'X-Tudo', 'X-Calabresa', 'CalaFrango', 'X-Salada', 'CalaFrango', 'X-Bacon', 'CalaFrango'] lanches_finais = [] print('Estamos sem CalaFrango') while 'CalaFrango' in lanches: lanches.remove('CalaFrango') while lanches: preparo = lanches.pop() print('Preparei seu lanche de {}'.format(preparo)) lanches_finais.append(preparo) print('\nOs lanches finais hoje foram:') for lanche in lanches_finais: print('\t{}'.format(lanche))
# -*- coding: utf-8 -*- # list of system groups ordered descending by rights in application groups = ['wheel', 'sudo', 'users']
groups = ['wheel', 'sudo', 'users']
def escreva(frase): a = len(frase)+2 print('~'*(a+2)) print(f' {frase}') print('~' * (a + 2)) escreva('Gustavo Guanabara') escreva('Curso de Python no YouTube') escreva('CeV')
def escreva(frase): a = len(frase) + 2 print('~' * (a + 2)) print(f' {frase}') print('~' * (a + 2)) escreva('Gustavo Guanabara') escreva('Curso de Python no YouTube') escreva('CeV')
# Find the set of maximums and minimums in a series, # with some tolerance for multiple max or minimums # if some highest or lowest values in a series are # tolerance_threshold away def find_maxs_or_mins_in_series(series, kind, tolerance_threshold): isolated_globals = [] if kind == "max": global_max_or_min = series.max() else: global_max_or_min = series.min() for idx, val in series.items(): if val == global_max_or_min or abs(global_max_or_min - val ) < tolerance_threshold: isolated_globals.append(idx) return isolated_globals # Find the average distance between High and Low price in a set of candles def avg_candle_range(candles): return max((candles.df.High - candles.df.Low).mean(), 0.01) # Find mean in a list of int or floats def mean(ls): total = 0 for n in ls: total+=n return total/len(ls)
def find_maxs_or_mins_in_series(series, kind, tolerance_threshold): isolated_globals = [] if kind == 'max': global_max_or_min = series.max() else: global_max_or_min = series.min() for (idx, val) in series.items(): if val == global_max_or_min or abs(global_max_or_min - val) < tolerance_threshold: isolated_globals.append(idx) return isolated_globals def avg_candle_range(candles): return max((candles.df.High - candles.df.Low).mean(), 0.01) def mean(ls): total = 0 for n in ls: total += n return total / len(ls)
load("//cipd/internal:cipd_client.bzl", "cipd_client_deps") def cipd_deps(): cipd_client_deps()
load('//cipd/internal:cipd_client.bzl', 'cipd_client_deps') def cipd_deps(): cipd_client_deps()
class State: def __init__(self): self.pixel = None self.keyboard = None self.keyboard_layout = None pass def start(self): pass def end(self): pass def onTick(self): pass def onButtonPress(self): pass def onButtonRelease(self): pass
class State: def __init__(self): self.pixel = None self.keyboard = None self.keyboard_layout = None pass def start(self): pass def end(self): pass def on_tick(self): pass def on_button_press(self): pass def on_button_release(self): pass
def convert( s: str, numRows: int) -> str: print('hi') # Algorithm: # Output: Linearize the zig zagged string matrix # input: string and number of rows in which to make the string zag zag # Algorithm steps: # d and nd list /diagonal and nondiagonal lists #remove all prints if pasting in leetcode if numRows == 1: return s step = 1 pos = 1 lines = {} for c in s: if pos not in lines: print(pos, 'im pos', 'and im step',step) lines[pos] = c print(lines, 'when pos not in lines') else: print(pos, 'im pos', 'and im step',step) lines[pos] += c print(lines, 'when pos in lines'), pos += step if pos == 1 or pos == numRows: step *= -1 sol = "" for i in range(1, numRows + 1): try: sol += lines[i] print('im sol', sol) except: return sol return sol s1 = "PAYPALISHIRING" #14 numRows1 = 3 # Output: "PAHNAPLSIIGYIR" #7 columns s2 = "PAYPALISHIRING" #14 numRows2 = 4 print(convert(s2,numRows2)) # Output: "PINALSIGYAHRPI" #7 columns
def convert(s: str, numRows: int) -> str: print('hi') if numRows == 1: return s step = 1 pos = 1 lines = {} for c in s: if pos not in lines: print(pos, 'im pos', 'and im step', step) lines[pos] = c print(lines, 'when pos not in lines') else: print(pos, 'im pos', 'and im step', step) lines[pos] += c (print(lines, 'when pos in lines'),) pos += step if pos == 1 or pos == numRows: step *= -1 sol = '' for i in range(1, numRows + 1): try: sol += lines[i] print('im sol', sol) except: return sol return sol s1 = 'PAYPALISHIRING' num_rows1 = 3 s2 = 'PAYPALISHIRING' num_rows2 = 4 print(convert(s2, numRows2))
class Solution: def reconstructQueue(self, people: list) -> list: if not people: return [] def func(x): return -x[0], x[1] people.sort(key=func) new_people = [people[0]] for i in people[1:]: new_people.insert(i[1], i) return new_people
class Solution: def reconstruct_queue(self, people: list) -> list: if not people: return [] def func(x): return (-x[0], x[1]) people.sort(key=func) new_people = [people[0]] for i in people[1:]: new_people.insert(i[1], i) return new_people
class Post(): def __init__(self, userIden, content, timestamp, image=None, score='0', replies=None): self.userIden = userIden self.content = content self.timestamp = timestamp self.image = image self.score = score self.replies = [] if not replies else replies
class Post: def __init__(self, userIden, content, timestamp, image=None, score='0', replies=None): self.userIden = userIden self.content = content self.timestamp = timestamp self.image = image self.score = score self.replies = [] if not replies else replies
def radix_sort(alist, base=10): if alist == []: return def key_factory(digit, base): def key(alist, index): return ((alist[index]//(base**digit)) % base) return key largest = max(alist) exp = 0 while base**exp <= largest: alist = counting_sort(alist, base - 1, key_factory(exp, base)) exp = exp + 1 return alist def counting_sort(arr, exp1): n = len(arr) # The output array elements that will have sorted arr output = [0] * (n) # initialize count array as 0 count = [0] * (10) # Store count of occurrences in count[] for i in range(0, n): index = (arr[i]/exp1) count[ (index)%10 ] += 1 # Change count[i] so that count[i] now contains actual # position of this digit in output array for i in range(1,10): count[i] += count[i-1] # Build the output array i = n-1 while i>=0: index = (arr[i]/exp1) output[ count[ (index)%10 ] - 1] = arr[i] count[ (index)%10 ] -= 1 i -= 1 # Copying the output array to arr[], # so that arr now contains sorted numbers i = 0 for i in range(0,len(arr)): arr[i] = output[i] # def counting_sort(alist, largest, key): # c = [0]*(largest + 1) # for i in range(len(alist)): # c[key(alist, i)] = c[key(alist, i)] + 1 # # Find the last index for each element # c[0] = c[0] - 1 # to decrement each element for zero-based indexing # for i in range(1, largest + 1): # c[i] = c[i] + c[i - 1] # result = [None]*len(alist) # for i in range(len(alist) - 1, -1, -1): # result[c[key(alist, i)]] = alist[i] # c[key(alist, i)] = c[key(alist, i)] - 1 # return result
def radix_sort(alist, base=10): if alist == []: return def key_factory(digit, base): def key(alist, index): return alist[index] // base ** digit % base return key largest = max(alist) exp = 0 while base ** exp <= largest: alist = counting_sort(alist, base - 1, key_factory(exp, base)) exp = exp + 1 return alist def counting_sort(arr, exp1): n = len(arr) output = [0] * n count = [0] * 10 for i in range(0, n): index = arr[i] / exp1 count[index % 10] += 1 for i in range(1, 10): count[i] += count[i - 1] i = n - 1 while i >= 0: index = arr[i] / exp1 output[count[index % 10] - 1] = arr[i] count[index % 10] -= 1 i -= 1 i = 0 for i in range(0, len(arr)): arr[i] = output[i]
N, *A = map(int, open(0).read().split()) result = 0 for i in range(2, 1000): t = 0 for a in A: if a % i == 0: t += 1 result = max(result, t) print(result)
(n, *a) = map(int, open(0).read().split()) result = 0 for i in range(2, 1000): t = 0 for a in A: if a % i == 0: t += 1 result = max(result, t) print(result)
#{ #Driver Code Starts #Initial Template for Python 3 # } Driver Code Ends #User function Template for python3 # Function to calculate average def calc_average(nums): # Your code here mini = min(nums) maxi = max(nums) n = len(nums) s = sum(nums)-mini-maxi s = s//(n-2) return s #{ #Driver Code Starts. # Driver Code def main(): # Testcase input testcases = int(input()) # Looping through testcases while(testcases > 0): size_arr = int(input()) a = input().split() arr = list() for i in range(0, size_arr, 1): arr.append(int(a[i])) print (calc_average(arr)) testcases -= 1 if __name__ == '__main__': main() #} Driver Code Ends
def calc_average(nums): mini = min(nums) maxi = max(nums) n = len(nums) s = sum(nums) - mini - maxi s = s // (n - 2) return s def main(): testcases = int(input()) while testcases > 0: size_arr = int(input()) a = input().split() arr = list() for i in range(0, size_arr, 1): arr.append(int(a[i])) print(calc_average(arr)) testcases -= 1 if __name__ == '__main__': main()
# in file: models/db_custom.py db.define_table('company', Field('name', notnull = True, unique = True), format = '%(name)s') db.define_table( 'contact', Field('name', notnull = True), Field('company', 'reference company'), Field('picture', 'upload'), Field('email', requires = IS_EMAIL()), Field('phone_number', requires = IS_MATCH('[\d\-\(\) ]+')), Field('address'), format = '%(name)s' ) db.define_table( 'logs', Field('body', 'text', notnull = True), Field('posted_on', 'datetime'), Field('contact', 'reference contact') )
db.define_table('company', field('name', notnull=True, unique=True), format='%(name)s') db.define_table('contact', field('name', notnull=True), field('company', 'reference company'), field('picture', 'upload'), field('email', requires=is_email()), field('phone_number', requires=is_match('[\\d\\-\\(\\) ]+')), field('address'), format='%(name)s') db.define_table('logs', field('body', 'text', notnull=True), field('posted_on', 'datetime'), field('contact', 'reference contact'))
def main(): i = 0 while True: print(i) i += 1 if i > 5: break j = 10 while j < 100: print(j) j += 10 while 1: print(j + i) break while 0.1: print(j + i) break while 0: print("This never executes") while 0.0: print("This never executes") while None: print("This never executes") while False: print("This never executes") while "": print("This never executes") while "hi": print("This executes") break if __name__ == '__main__': main()
def main(): i = 0 while True: print(i) i += 1 if i > 5: break j = 10 while j < 100: print(j) j += 10 while 1: print(j + i) break while 0.1: print(j + i) break while 0: print('This never executes') while 0.0: print('This never executes') while None: print('This never executes') while False: print('This never executes') while '': print('This never executes') while 'hi': print('This executes') break if __name__ == '__main__': main()
''' Synchronization phenomena in networked dynamics ''' def kuramoto(G, k: float, w: Callable): ''' Kuramoto lattice k: coupling gain w: intrinsic frequency ''' phase = gds.node_gds(G) w_vec = np.array([w(x) for x in phase.X]) phase.set_evolution(dydt=lambda t, y: w_vec + k * phase.div(np.sin(phase.grad()))) amplitude = phase.project(GraphDomain.nodes, lambda t, y: np.sin(y)) return phase, amplitude
""" Synchronization phenomena in networked dynamics """ def kuramoto(G, k: float, w: Callable): """ Kuramoto lattice k: coupling gain w: intrinsic frequency """ phase = gds.node_gds(G) w_vec = np.array([w(x) for x in phase.X]) phase.set_evolution(dydt=lambda t, y: w_vec + k * phase.div(np.sin(phase.grad()))) amplitude = phase.project(GraphDomain.nodes, lambda t, y: np.sin(y)) return (phase, amplitude)
def Markov1_3D_BC_taper_init(particle, fieldset, time): # Initialize random velocity magnitudes in the isopycnal plane u_iso_prime_abs = ParcelsRandom.normalvariate(0, math.sqrt(fieldset.nusquared)) v_iso_prime_abs = ParcelsRandom.normalvariate(0, math.sqrt(fieldset.nusquared)) # (double) derivatives in density field are assumed available # Computation of taper function Sx = - drhodx / drhodz Sy = - drhody / drhodz Sabs = math.sqrt(Sx**2 + Sy**2) # Tapering based on Danabasoglu and McWilliams, J. Clim. 1995 # Tapering is discrete outside of a given range, to prevent # it from having its own decay timescale if Sabs < fieldset.Sc - 3. * fieldset.Sd: taper1 = 1. elif Sabs > fieldset.Sc + 3. * fieldset.Sd: taper1 = 0. else: taper1 = 0.5 * (1 + math.tanh((fieldset.Sc - Sabs)/fieldset.Sd)) # Near boundaries, drop to 0 if fieldset.boundaryMask[particle] < 0.95: taper2 = 0. else: taper2 = 1. # Compute the gradient vector, which is perpendicular to the local isoneutral grad = [drhodx, drhody, drhodz] # Compute u in the isopycnal plane (arbitrary direction) # by ensuring dot(u_iso, grad) = 0 u_iso = [-(drhody+drhodz)/drhodx, 1, 1] u_iso_norm = math.sqrt(u_iso[0]**2 + u_iso[1]**2 + u_iso[2]**2) u_iso_normed = [u_iso[0]/u_iso_norm, u_iso[1]/u_iso_norm, u_iso[2]/u_iso_norm] # Fix v_iso by computing cross(u_iso, grad) v_iso = [grad[1]*u_iso[2] - grad[2]*u_iso[1], grad[2]*u_iso[0] - grad[0]*u_iso[2], grad[0]*u_iso[1] - grad[1]*u_iso[0]] v_iso_norm = math.sqrt(v_iso[0]**2 + v_iso[1]**2 + v_iso[2]**2) v_iso_normed = [v_iso[0]/v_iso_norm, v_iso[1]/v_iso_norm, v_iso[2]/v_iso_norm] # Compute the initial isopycnal velocity vector, which is a linear combination # of u_iso and v_iso vel_init = [u_iso_prime_abs * u_iso_normed[0] + v_iso_prime_abs * v_iso_normed[0], u_iso_prime_abs * u_iso_normed[1] + v_iso_prime_abs * v_iso_normed[1], u_iso_prime_abs * u_iso_normed[2] + v_iso_prime_abs * v_iso_normed[2]] particle.u_prime = taper1 * taper2 * vel_init[0] particle.v_prime = taper1 * taper2 * vel_init[1] particle.w_prime = taper1 * taper2 * vel_init[2]
def markov1_3_d_bc_taper_init(particle, fieldset, time): u_iso_prime_abs = ParcelsRandom.normalvariate(0, math.sqrt(fieldset.nusquared)) v_iso_prime_abs = ParcelsRandom.normalvariate(0, math.sqrt(fieldset.nusquared)) sx = -drhodx / drhodz sy = -drhody / drhodz sabs = math.sqrt(Sx ** 2 + Sy ** 2) if Sabs < fieldset.Sc - 3.0 * fieldset.Sd: taper1 = 1.0 elif Sabs > fieldset.Sc + 3.0 * fieldset.Sd: taper1 = 0.0 else: taper1 = 0.5 * (1 + math.tanh((fieldset.Sc - Sabs) / fieldset.Sd)) if fieldset.boundaryMask[particle] < 0.95: taper2 = 0.0 else: taper2 = 1.0 grad = [drhodx, drhody, drhodz] u_iso = [-(drhody + drhodz) / drhodx, 1, 1] u_iso_norm = math.sqrt(u_iso[0] ** 2 + u_iso[1] ** 2 + u_iso[2] ** 2) u_iso_normed = [u_iso[0] / u_iso_norm, u_iso[1] / u_iso_norm, u_iso[2] / u_iso_norm] v_iso = [grad[1] * u_iso[2] - grad[2] * u_iso[1], grad[2] * u_iso[0] - grad[0] * u_iso[2], grad[0] * u_iso[1] - grad[1] * u_iso[0]] v_iso_norm = math.sqrt(v_iso[0] ** 2 + v_iso[1] ** 2 + v_iso[2] ** 2) v_iso_normed = [v_iso[0] / v_iso_norm, v_iso[1] / v_iso_norm, v_iso[2] / v_iso_norm] vel_init = [u_iso_prime_abs * u_iso_normed[0] + v_iso_prime_abs * v_iso_normed[0], u_iso_prime_abs * u_iso_normed[1] + v_iso_prime_abs * v_iso_normed[1], u_iso_prime_abs * u_iso_normed[2] + v_iso_prime_abs * v_iso_normed[2]] particle.u_prime = taper1 * taper2 * vel_init[0] particle.v_prime = taper1 * taper2 * vel_init[1] particle.w_prime = taper1 * taper2 * vel_init[2]
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def verticalTraversalRec(self, root, row, col, columns): if not root: return columns[col].append((row, root.val)) self.verticalTraversalRec(root.left, row+1, col-1, columns) self.verticalTraversalRec(root.right, row+1, col+1, columns) def verticalTraversal(self, root: TreeNode) -> List[List[int]]: columns = collections.defaultdict(list) if not root: return [] self.verticalTraversalRec(root, 0, 0, columns) # sort by column first, and then sort each column verticalOrder = [] for col in sorted(columns): nodes = sorted(columns[col]) verticalOrder.append([node[1] for node in nodes]) return verticalOrder # O(nlgn) solution # def verticalTraversal(self, root: TreeNode) -> List[List[int]]: # # list of nodes - (col, row, value) # nodes = [] # if not root: # return [] # def BFS(root): # queue = collections.deque([(root, 0, 0)]) # while queue: # node, row, col = queue.popleft() # if node: # nodes.append((col, row, node.val)) # queue.append((node.left, row+1, col-1)) # queue.append((node.right, row+1, col+1)) # BFS(root) # nodes.sort() # columns = collections.OrderedDict() # for col, row, val in nodes: # if col in columns: # columns[col].append(val) # else: # columns[col] = [val] # return list(columns.values())
class Solution: def vertical_traversal_rec(self, root, row, col, columns): if not root: return columns[col].append((row, root.val)) self.verticalTraversalRec(root.left, row + 1, col - 1, columns) self.verticalTraversalRec(root.right, row + 1, col + 1, columns) def vertical_traversal(self, root: TreeNode) -> List[List[int]]: columns = collections.defaultdict(list) if not root: return [] self.verticalTraversalRec(root, 0, 0, columns) vertical_order = [] for col in sorted(columns): nodes = sorted(columns[col]) verticalOrder.append([node[1] for node in nodes]) return verticalOrder
''' Author: Shuailin Chen Created Date: 2021-09-14 Last Modified: 2021-09-25 content: ''' _base_ = [ '../_base_/models/deeplabv3_r50a-d8.py', '../_base_/datasets/sn6_sar_pro.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_20k.py' ] model = dict( decode_head=dict(num_classes=2), auxiliary_head=dict(num_classes=2))
""" Author: Shuailin Chen Created Date: 2021-09-14 Last Modified: 2021-09-25 content: """ _base_ = ['../_base_/models/deeplabv3_r50a-d8.py', '../_base_/datasets/sn6_sar_pro.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_20k.py'] model = dict(decode_head=dict(num_classes=2), auxiliary_head=dict(num_classes=2))
# encoding=utf-8 d = dict(one=1, two=2) d1 = {'one': 1, "two": 2} d2 = dict() d2['one'] = 1 d2['two'] = 2 # [(key,value), (key, value)] my_dict = {}.setdefault().append(1) print(my_dict[1])
d = dict(one=1, two=2) d1 = {'one': 1, 'two': 2} d2 = dict() d2['one'] = 1 d2['two'] = 2 my_dict = {}.setdefault().append(1) print(my_dict[1])
@app.route('/home') def home(): return redirect(url_for('about', name='World')) @app.route('/about/<name>') def about(name): return f'Hello {name}'
@app.route('/home') def home(): return redirect(url_for('about', name='World')) @app.route('/about/<name>') def about(name): return f'Hello {name}'
def Naturals(n): yield n yield from Naturals(n+1) s = Naturals(1) print("Natural #s", next(s), next(s), next(s), next(s)) def sieve(s): n = next(s) yield n yield from sieve(i for i in s if i%n != 0) p = sieve(Naturals(2)) print("Prime #s", next(p), next(p), next(p), \ next(p), next(p), next(p), next(p), next(p)) def gensend(): item = yield yield item g = gensend() next(g) print ( g.send("hello"))
def naturals(n): yield n yield from naturals(n + 1) s = naturals(1) print('Natural #s', next(s), next(s), next(s), next(s)) def sieve(s): n = next(s) yield n yield from sieve((i for i in s if i % n != 0)) p = sieve(naturals(2)) print('Prime #s', next(p), next(p), next(p), next(p), next(p), next(p), next(p), next(p)) def gensend(): item = (yield) yield item g = gensend() next(g) print(g.send('hello'))
## ## parse argument ## ## written by @ciku370 ## def toxic(wibu_bau,bawang): shit = bawang.split(',') dan_buriq = 0 result = {} for i in wibu_bau: if i in shit: try: result.update({wibu_bau[dan_buriq]:wibu_bau[dan_buriq+1]}) except IndexError: continue dan_buriq += 1 return result
def toxic(wibu_bau, bawang): shit = bawang.split(',') dan_buriq = 0 result = {} for i in wibu_bau: if i in shit: try: result.update({wibu_bau[dan_buriq]: wibu_bau[dan_buriq + 1]}) except IndexError: continue dan_buriq += 1 return result
for linha in range(5): for coluna in range(3): if (linha == 0 and coluna == 0) or (linha == 4 and coluna == 0): print(' ', end='') elif linha == 0 or linha == 4 or coluna == 0: print('*', end='') else: print(' ', end='') print()
for linha in range(5): for coluna in range(3): if linha == 0 and coluna == 0 or (linha == 4 and coluna == 0): print(' ', end='') elif linha == 0 or linha == 4 or coluna == 0: print('*', end='') else: print(' ', end='') print()
IV = bytearray.fromhex("391e95a15847cfd95ecee8f7fe7efd66") CT = bytearray.fromhex("8473dcb86bc12c6b6087619c00b6657e") # Hashes from the description of challenge ORIGINAL_MESSAGE = bytearray.fromhex( "464952455f4e554b45535f4d454c4121") # FIRE_NUKES_MELA! ALTERED_MESSAGE = bytearray.fromhex( "53454e445f4e554445535f4d454c4121") # SEND_NUDES_MELA! ALTERED_IV = bytearray() # XOR for i in range(16): ALTERED_IV.append(ALTERED_MESSAGE[i] ^ ORIGINAL_MESSAGE[i] ^ IV[i]) print(f'Flag: flag{{{ALTERED_IV.hex()},{CT.hex()}}}')
iv = bytearray.fromhex('391e95a15847cfd95ecee8f7fe7efd66') ct = bytearray.fromhex('8473dcb86bc12c6b6087619c00b6657e') original_message = bytearray.fromhex('464952455f4e554b45535f4d454c4121') altered_message = bytearray.fromhex('53454e445f4e554445535f4d454c4121') altered_iv = bytearray() for i in range(16): ALTERED_IV.append(ALTERED_MESSAGE[i] ^ ORIGINAL_MESSAGE[i] ^ IV[i]) print(f'Flag: flag{{{ALTERED_IV.hex()},{CT.hex()}}}')
#Check String '''To check if a certain phrase or character is present in a string, we can use the keyword in.''' #Check if "free" is present in the following text: txt = "The best things in life are free!" print("free" in txt) txt = "Hello buddie owo!" if "owo" in txt: print("Yes, 'owo' is present.") ''' Terminal: True Yes, 'owo' is present. ''' #Learn more about If statements in our Python If...Else chapter: https://www.w3schools.com/python/python_conditions.asp #https://www.w3schools.com/python/python_strings.asp
"""To check if a certain phrase or character is present in a string, we can use the keyword in.""" txt = 'The best things in life are free!' print('free' in txt) txt = 'Hello buddie owo!' if 'owo' in txt: print("Yes, 'owo' is present.") "\nTerminal:\nTrue\nYes, 'owo' is present.\n"
testes = int(input()) casos = [] for x in range(testes): casos_ = input().split() casos.append(casos_) for x in range(testes): a = int(casos[x][0]) b = int(casos[x][1]) print(a+b)
testes = int(input()) casos = [] for x in range(testes): casos_ = input().split() casos.append(casos_) for x in range(testes): a = int(casos[x][0]) b = int(casos[x][1]) print(a + b)
# led-control WS2812B LED Controller Server # Copyright 2021 jackw01. Released under the MIT License (see LICENSE for details). default = { 0: { 'name': 'Sunset Light', 'mode': 0, 'colors': [ [ 0.11311430089613972, 1, 1 ], [ 0.9936081381405101, 0.6497928024431981, 1 ], [ 0.9222222222222223, 0.9460097254004577, 1 ], [ 0.7439005234662223, 0.7002515180395283, 1 ], [ 0.6175635842715993, 0.6474992244615467, 1 ] ] }, 10: { 'name': 'Sunset Dark', 'mode': 0, 'colors': [ [ 0.11311430089613972, 1, 1 ], [ 0.0083333333333333, 0.8332790409753081, 1 ], [ 0.9222222222222223, 0.8539212428101706, 0.7776361353257123 ], [ 0.8833333333333333, 0.8974992244615467, 0.2942011216107537 ] ] }, 20: { 'name': 'Miami', 'mode': 0, 'colors': [ [ 0.973575367647059, 0.792691647597254, 1 ], [ 0.935202205882353, 0.8132866132723112, 1 ], [ 0.8012408088235294, 0.6622568649885584, 0.992876838235294 ], [ 0.59375, 0.6027602974828375, 1 ], [ 0.5480238970588235, 0.9482980549199085, 1 ], [ 0.5022977941176471, 0.9460097254004577, 1 ] ] }, 90: { 'name': 'Spectrum', 'mode': 0, 'colors': [ [ 0, 1, 1 ], [ 1, 1, 1 ] ] }, 30: { 'name': 'Lemonbars', 'mode': 0, 'colors': [ [ 1, 0.9989988558352403, 1 ], [ 0.7807904411764706, 0.9989988558352403, 1 ], [ 0.5985753676470589, 0.9979987139601192, 1 ] ], }, 40: { 'name': 'Viridis', 'mode': 0, 'colors': [ [ 0.7663143382352942, 0.9989988558352403, 0.6528033088235294 ], [ 0.6029411764705882, 0.9989988558352403, 1 ], [ 0.4028033088235295, 0.5249570938215103, 1 ], [ 0.12339154411764706, 0.9989988558352403, 1 ] ], }, 150: { 'name': 'Fire', 'mode': 0, 'colors': [ [ 0, 0.9989988558352403, 1 ], [ 0.04549632352941176, 0.9989988558352403, 1 ], [ 0.11, 0.9989988558352403, 1 ], [ 0.08639705882352941, 0.667, 1 ], [ 0, 0, 1 ] ] }, 160: { 'name': 'Golden Hour', 'mode': 0, 'colors': [ [ 0.09122242647058823, 0.9960014330660517, 1 ], [ 0.1484375, 0.9960014330660517, 1 ], [ 0.13947610294117646, 0.4311355835240275, 0.6178768382352942 ] ], }, 170: { 'name': 'Ocean', 'mode': 0, 'colors': [ [ 0.6190257352941176, 0.9969995733712004, 1 ], [ 0.5659466911764706, 0.9989988558352403, 1 ], [ 0.4834558823529411, 0.746925057208238, 1 ] ], }, 190: { 'name': 'Sky Blue', 'mode': 0, 'colors': [ [ 0.5824908088235294, 0.8762614416475973, 1 ], [ 0.5808823529411765, 0.8132866132723112, 1 ], [ 0.5659466911764706, 0.5821653318077803, 1 ] ], }, 200: { 'name': 'Purple', 'mode': 0, 'colors': [ [ 0.7456341911764706, 0.9969995733712004, 1 ], [ 0.6541819852941176, 0.9979987139601192, 1 ], [ 0.68359375, 0.5913186498855835, 1 ] ], }, 210: { 'name': 'Hot Pink', 'mode': 0, 'colors': [ [ 0.979549632352941, 0.9989988558352403, 1 ], [ 0.9338235294117647, 0.8727831807780321, 1 ], [ 0.9542738970588235, 0.7240417620137299, 1 ] ], }, }
default = {0: {'name': 'Sunset Light', 'mode': 0, 'colors': [[0.11311430089613972, 1, 1], [0.9936081381405101, 0.6497928024431981, 1], [0.9222222222222223, 0.9460097254004577, 1], [0.7439005234662223, 0.7002515180395283, 1], [0.6175635842715993, 0.6474992244615467, 1]]}, 10: {'name': 'Sunset Dark', 'mode': 0, 'colors': [[0.11311430089613972, 1, 1], [0.0083333333333333, 0.8332790409753081, 1], [0.9222222222222223, 0.8539212428101706, 0.7776361353257123], [0.8833333333333333, 0.8974992244615467, 0.2942011216107537]]}, 20: {'name': 'Miami', 'mode': 0, 'colors': [[0.973575367647059, 0.792691647597254, 1], [0.935202205882353, 0.8132866132723112, 1], [0.8012408088235294, 0.6622568649885584, 0.992876838235294], [0.59375, 0.6027602974828375, 1], [0.5480238970588235, 0.9482980549199085, 1], [0.5022977941176471, 0.9460097254004577, 1]]}, 90: {'name': 'Spectrum', 'mode': 0, 'colors': [[0, 1, 1], [1, 1, 1]]}, 30: {'name': 'Lemonbars', 'mode': 0, 'colors': [[1, 0.9989988558352403, 1], [0.7807904411764706, 0.9989988558352403, 1], [0.5985753676470589, 0.9979987139601192, 1]]}, 40: {'name': 'Viridis', 'mode': 0, 'colors': [[0.7663143382352942, 0.9989988558352403, 0.6528033088235294], [0.6029411764705882, 0.9989988558352403, 1], [0.4028033088235295, 0.5249570938215103, 1], [0.12339154411764706, 0.9989988558352403, 1]]}, 150: {'name': 'Fire', 'mode': 0, 'colors': [[0, 0.9989988558352403, 1], [0.04549632352941176, 0.9989988558352403, 1], [0.11, 0.9989988558352403, 1], [0.08639705882352941, 0.667, 1], [0, 0, 1]]}, 160: {'name': 'Golden Hour', 'mode': 0, 'colors': [[0.09122242647058823, 0.9960014330660517, 1], [0.1484375, 0.9960014330660517, 1], [0.13947610294117646, 0.4311355835240275, 0.6178768382352942]]}, 170: {'name': 'Ocean', 'mode': 0, 'colors': [[0.6190257352941176, 0.9969995733712004, 1], [0.5659466911764706, 0.9989988558352403, 1], [0.4834558823529411, 0.746925057208238, 1]]}, 190: {'name': 'Sky Blue', 'mode': 0, 'colors': [[0.5824908088235294, 0.8762614416475973, 1], [0.5808823529411765, 0.8132866132723112, 1], [0.5659466911764706, 0.5821653318077803, 1]]}, 200: {'name': 'Purple', 'mode': 0, 'colors': [[0.7456341911764706, 0.9969995733712004, 1], [0.6541819852941176, 0.9979987139601192, 1], [0.68359375, 0.5913186498855835, 1]]}, 210: {'name': 'Hot Pink', 'mode': 0, 'colors': [[0.979549632352941, 0.9989988558352403, 1], [0.9338235294117647, 0.8727831807780321, 1], [0.9542738970588235, 0.7240417620137299, 1]]}}
class Solution: def myAtoi(self, s: str) -> int: s = s.strip(' ') s = s.rstrip('.') lens = len(s) if (not s) or s[0].isalpha() or (lens == 1 and not s[0].isdecimal()): return 0 string, i = '', 0 if s[0] in {'-', '+'}: i = 1 string += s[0] while i < lens: char = s[i] if char.isdecimal(): string += char else: break i += 1 if (not string) or (len(string) == 1 and not string[0].isdecimal()): return 0 sol, mini, maxi = int(string), -2147483648, 2147483647 if sol < mini: return mini elif sol > maxi: return maxi else: return sol
class Solution: def my_atoi(self, s: str) -> int: s = s.strip(' ') s = s.rstrip('.') lens = len(s) if not s or s[0].isalpha() or (lens == 1 and (not s[0].isdecimal())): return 0 (string, i) = ('', 0) if s[0] in {'-', '+'}: i = 1 string += s[0] while i < lens: char = s[i] if char.isdecimal(): string += char else: break i += 1 if not string or (len(string) == 1 and (not string[0].isdecimal())): return 0 (sol, mini, maxi) = (int(string), -2147483648, 2147483647) if sol < mini: return mini elif sol > maxi: return maxi else: return sol
while(True): try: n,k=map(int,input().split()) text=input() except EOFError: break p=0 for i in range(1,n): if text[0:i]==text[n-i:n]: p=i #print(p) s=text+text[p:]*(k-1) print(s)
while True: try: (n, k) = map(int, input().split()) text = input() except EOFError: break p = 0 for i in range(1, n): if text[0:i] == text[n - i:n]: p = i s = text + text[p:] * (k - 1) print(s)
class ExileError(Exception): pass class SCardError(ExileError): pass class YKOATHError(ExileError): pass
class Exileerror(Exception): pass class Scarderror(ExileError): pass class Ykoatherror(ExileError): pass
class Team: def __init__(self, client): self.client = client async def info(self): result = await self.client.api_call('GET', 'team.info') return result['team']
class Team: def __init__(self, client): self.client = client async def info(self): result = await self.client.api_call('GET', 'team.info') return result['team']
def chunk_string(string, chunk_size=450): # Limit = 462, cutting off at 450 to be safe. string_chunks = [] while len(string) != 0: current_chunk = string[0:chunk_size] string_chunks.append(current_chunk) string = string[len(current_chunk):] return string_chunks
def chunk_string(string, chunk_size=450): string_chunks = [] while len(string) != 0: current_chunk = string[0:chunk_size] string_chunks.append(current_chunk) string = string[len(current_chunk):] return string_chunks
def maiusculas(frase): palavra = '' for letra in frase: if ord(letra) >= 65 and ord(letra) <= 90: palavra += letra return palavra def maiusculas2(frase): palavra = '' for letra in frase: if letra.isupper(): palavra += letra return palavra
def maiusculas(frase): palavra = '' for letra in frase: if ord(letra) >= 65 and ord(letra) <= 90: palavra += letra return palavra def maiusculas2(frase): palavra = '' for letra in frase: if letra.isupper(): palavra += letra return palavra
# SQRT(X) LEETCODE SOLUTION: # creating a class. class Solution(object): # creating a function to solve the problem. def mySqrt(self, x): # declaring a variable to track the output. i = 0 # creating a while-loop to run while the output variable squared is less than or equal to the desired value. while i * i <= x: # incrementing the output variable's value. i += 1 # returning the value of the output variable with modifications. return i - 1
class Solution(object): def my_sqrt(self, x): i = 0 while i * i <= x: i += 1 return i - 1
with open("input_blocks.txt") as file: content = file.read() for idx, block in enumerate(content.strip().split("---\n")): with open(f"blocks/{idx+1}.txt", "w") as file: print(block.rstrip(), file=file)
with open('input_blocks.txt') as file: content = file.read() for (idx, block) in enumerate(content.strip().split('---\n')): with open(f'blocks/{idx + 1}.txt', 'w') as file: print(block.rstrip(), file=file)
# Defining a Function def iterPower(base, exp): # Making an Iterative Call result = 1 while exp > 0: result *= base exp -= 1 return result
def iter_power(base, exp): result = 1 while exp > 0: result *= base exp -= 1 return result
class Solution: def isSolvable(self, words, result) -> bool: for word in words: if len(word) > len(result): return False words = [word[::-1] for word in words] result = result[::-1] c2i = [-1] * 26 i2c = [False] * 10 def dfs(idx, digit, s): if digit == len(result): return s == 0 if idx == len(words): if c2i[ord(result[digit]) - ord('A')] != -1: if s % 10 == c2i[ord(result[digit]) - ord('A')]: return dfs(0, digit + 1, s // 10) elif not i2c[s % 10]: if digit == len(result) - 1 and s % 10 == 0: return False c2i[ord(result[digit]) - ord('A')] = s % 10 i2c[s % 10] = True if dfs(0, digit + 1, s // 10): return True c2i[ord(result[digit]) - ord('A')] = -1 i2c[s % 10] = False return False if digit >= len(words[idx]): return dfs(idx + 1, digit, s) if c2i[ord(words[idx][digit]) - ord('A')] != -1: if digit == len(words[idx]) - 1 and len(words[idx]) > 1 and c2i[ord(words[idx][digit]) - ord('A')] == 0: return False return dfs(idx + 1, digit, s + c2i[ord(words[idx][digit]) - ord('A')]) for i in range(10): if i2c[i]: continue if i == 0 and digit == len(words[idx]) - 1 and len(words[idx]) > 1: continue c2i[ord(words[idx][digit]) - ord('A')] = i i2c[i] = True if dfs(idx + 1, digit, s + i): return True c2i[ord(words[idx][digit]) - ord('A')] = -1 i2c[i] = False return False return dfs(0, 0, 0)
class Solution: def is_solvable(self, words, result) -> bool: for word in words: if len(word) > len(result): return False words = [word[::-1] for word in words] result = result[::-1] c2i = [-1] * 26 i2c = [False] * 10 def dfs(idx, digit, s): if digit == len(result): return s == 0 if idx == len(words): if c2i[ord(result[digit]) - ord('A')] != -1: if s % 10 == c2i[ord(result[digit]) - ord('A')]: return dfs(0, digit + 1, s // 10) elif not i2c[s % 10]: if digit == len(result) - 1 and s % 10 == 0: return False c2i[ord(result[digit]) - ord('A')] = s % 10 i2c[s % 10] = True if dfs(0, digit + 1, s // 10): return True c2i[ord(result[digit]) - ord('A')] = -1 i2c[s % 10] = False return False if digit >= len(words[idx]): return dfs(idx + 1, digit, s) if c2i[ord(words[idx][digit]) - ord('A')] != -1: if digit == len(words[idx]) - 1 and len(words[idx]) > 1 and (c2i[ord(words[idx][digit]) - ord('A')] == 0): return False return dfs(idx + 1, digit, s + c2i[ord(words[idx][digit]) - ord('A')]) for i in range(10): if i2c[i]: continue if i == 0 and digit == len(words[idx]) - 1 and (len(words[idx]) > 1): continue c2i[ord(words[idx][digit]) - ord('A')] = i i2c[i] = True if dfs(idx + 1, digit, s + i): return True c2i[ord(words[idx][digit]) - ord('A')] = -1 i2c[i] = False return False return dfs(0, 0, 0)
def findMin(l): min = -1 for i in l: print (i) if i<min: min = i print("the lowest value is: ",min) l=[12,0,15,-30,-24,40] findMin(l)
def find_min(l): min = -1 for i in l: print(i) if i < min: min = i print('the lowest value is: ', min) l = [12, 0, 15, -30, -24, 40] find_min(l)
{ "targets": [ { "target_name": "towerdef", "sources": [ "./cpp/towerdef_Main.cpp", "./cpp/towerdef.cpp", "./cpp/towerdef_Map.cpp", "./cpp/towerdef_PathMap.cpp", "./cpp/towerdef_Structure.cpp", "./cpp/towerdef_oneTileStruct.cpp", "./cpp/towerdef_Struct_Wall.cpp", "./cpp/Grid.cpp", "./cpp/GameMap.cpp", "./cpp/PointList.cpp" ], "include_dirs" : [ "<!(node -e \"require('nan')\")" ] } ] }
{'targets': [{'target_name': 'towerdef', 'sources': ['./cpp/towerdef_Main.cpp', './cpp/towerdef.cpp', './cpp/towerdef_Map.cpp', './cpp/towerdef_PathMap.cpp', './cpp/towerdef_Structure.cpp', './cpp/towerdef_oneTileStruct.cpp', './cpp/towerdef_Struct_Wall.cpp', './cpp/Grid.cpp', './cpp/GameMap.cpp', './cpp/PointList.cpp'], 'include_dirs': ['<!(node -e "require(\'nan\')")']}]}
def main(): T = int(input()) case_id = 1 while case_id <= T: num = int(input()) if num == 0: print("Case #{case_id}: INSOMNIA".format(case_id=case_id)) case_id += 1 continue all_nums = [] res = 0 cur_num = num while len(all_nums) != 10: cur_num_str = str(cur_num) for digit in cur_num_str: if digit not in all_nums: all_nums.append(digit) #print(cur_num, all_nums) cur_num += num res = cur_num-num print("Case #{case_id}: {res}".format(case_id=case_id, res=res)) case_id += 1 return if __name__ == "__main__": main()
def main(): t = int(input()) case_id = 1 while case_id <= T: num = int(input()) if num == 0: print('Case #{case_id}: INSOMNIA'.format(case_id=case_id)) case_id += 1 continue all_nums = [] res = 0 cur_num = num while len(all_nums) != 10: cur_num_str = str(cur_num) for digit in cur_num_str: if digit not in all_nums: all_nums.append(digit) cur_num += num res = cur_num - num print('Case #{case_id}: {res}'.format(case_id=case_id, res=res)) case_id += 1 return if __name__ == '__main__': main()
#POO 2 - POLIFORMISMO # class Coche(): def desplazamiento(self): print("Me desplazo utilizando cuatro ruedas") class Moto(): def desplazamiento(self): print("Me Desplazo utilizando dos Ruedas") class Camion(): def desplazamiento(self): print("Me Desplazo utilizando seis Ruedas") #Polimorfismo def desplazamientovehiculo(vehiculo): vehiculo.desplazamiento() mivehiculo=Camion() desplazamientovehiculo(mivehiculo)
class Coche: def desplazamiento(self): print('Me desplazo utilizando cuatro ruedas') class Moto: def desplazamiento(self): print('Me Desplazo utilizando dos Ruedas') class Camion: def desplazamiento(self): print('Me Desplazo utilizando seis Ruedas') def desplazamientovehiculo(vehiculo): vehiculo.desplazamiento() mivehiculo = camion() desplazamientovehiculo(mivehiculo)
a=int(input('Enter first number:')) b=int(input('Enter second number:')) a=a+b b=a-b a=a-b print('After swaping first number is=',a) print('After swaping second number is=',b)
a = int(input('Enter first number:')) b = int(input('Enter second number:')) a = a + b b = a - b a = a - b print('After swaping first number is=', a) print('After swaping second number is=', b)
# automatically generated by the FlatBuffers compiler, do not modify # namespace: papi class Side(object): Sell = -1 None_ = 0 Buy = 1
class Side(object): sell = -1 none_ = 0 buy = 1
class DriverTarget: bone_target = None data_path = None id = None id_type = None transform_space = None transform_type = None
class Drivertarget: bone_target = None data_path = None id = None id_type = None transform_space = None transform_type = None
N = int(input()) road_ends = [] barns_list = [] for x in range(0, N): barns_list.append(x) for x in range(0, N): road_ends.append(-1) for x in range(0, N-1): temp_list = input().split() road_ends[int(temp_list[1])-1] = int(temp_list[0])-1 for x in range(0, N): wasthere = [] for y in range(0, N): wasthere.append(False) index = x while wasthere[index] == False and road_ends[index] != -1: wasthere[index] = True index = road_ends[index] wasthere[index] = True if False not in wasthere: print(x+1) exit() print(-1)
n = int(input()) road_ends = [] barns_list = [] for x in range(0, N): barns_list.append(x) for x in range(0, N): road_ends.append(-1) for x in range(0, N - 1): temp_list = input().split() road_ends[int(temp_list[1]) - 1] = int(temp_list[0]) - 1 for x in range(0, N): wasthere = [] for y in range(0, N): wasthere.append(False) index = x while wasthere[index] == False and road_ends[index] != -1: wasthere[index] = True index = road_ends[index] wasthere[index] = True if False not in wasthere: print(x + 1) exit() print(-1)
def grade(arg, key): if "flag{1_h4v3_4_br41n}".lower() == key.lower(): return True, "You are not insane!" else: return False, "..."
def grade(arg, key): if 'flag{1_h4v3_4_br41n}'.lower() == key.lower(): return (True, 'You are not insane!') else: return (False, '...')
def selection_form(data, target, name, radio=False): body = '' for i in data: body += '<input value="{0}" name="{1}" type="{2}"> {0}</br>'.format(i, name, 'radio' if radio else 'checkbox') body += '</br><input type="submit" value="Submit">' return '<form method="post" action="{0}">{1}</form>'.format(target, body) def text_form(data, target): req_body = '' body = '' for param, required in data.items(): text = '{0}{1}</br><input name="{0}" type="text" class="input-xxlarge"></br>'.format(param, ' (required)' if required else '') if required: req_body += text else: body += text body += '</br><input type="submit" value="Submit">' return '<form method="post" action="{0}">{1}{2}</form>'.format(target, req_body, body) def show_error(message): body = '' for line in message.split('\n'): if line != '': body += '{0}</br>'.format(line) return '<div class="alert alert-danger">{0}</div>'.format(body)
def selection_form(data, target, name, radio=False): body = '' for i in data: body += '<input value="{0}" name="{1}" type="{2}"> {0}</br>'.format(i, name, 'radio' if radio else 'checkbox') body += '</br><input type="submit" value="Submit">' return '<form method="post" action="{0}">{1}</form>'.format(target, body) def text_form(data, target): req_body = '' body = '' for (param, required) in data.items(): text = '{0}{1}</br><input name="{0}" type="text" class="input-xxlarge"></br>'.format(param, ' (required)' if required else '') if required: req_body += text else: body += text body += '</br><input type="submit" value="Submit">' return '<form method="post" action="{0}">{1}{2}</form>'.format(target, req_body, body) def show_error(message): body = '' for line in message.split('\n'): if line != '': body += '{0}</br>'.format(line) return '<div class="alert alert-danger">{0}</div>'.format(body)
def resolve(): ''' code here ''' N = int(input()) As = [int(item) for item in input().split()] Bs = [int(item) for item in input().split()] Ds = [a - b for a, b in zip(As, Bs)] cnt_minus = 0 total_minus = 0 minus_list = [] cnt_plus_to_drow = 0 plus_list = [] for item in Ds: if item < 0: cnt_minus += 1 total_minus += item else: plus_list.append(item) plus_list.sort() if sum(plus_list) >= abs(total_minus): for item in plus_list[::-1]: if total_minus >= 0: break total_minus += item cnt_plus_to_drow += 1 print(cnt_minus + cnt_plus_to_drow) else: print(-1) if __name__ == "__main__": resolve()
def resolve(): """ code here """ n = int(input()) as = [int(item) for item in input().split()] bs = [int(item) for item in input().split()] ds = [a - b for (a, b) in zip(As, Bs)] cnt_minus = 0 total_minus = 0 minus_list = [] cnt_plus_to_drow = 0 plus_list = [] for item in Ds: if item < 0: cnt_minus += 1 total_minus += item else: plus_list.append(item) plus_list.sort() if sum(plus_list) >= abs(total_minus): for item in plus_list[::-1]: if total_minus >= 0: break total_minus += item cnt_plus_to_drow += 1 print(cnt_minus + cnt_plus_to_drow) else: print(-1) if __name__ == '__main__': resolve()
# We your solution for 1.4 here! def is_prime(x): t=1 while t<x: if x%t==0: if t!=1 and t!=x: return False t=t+1 return True print(is_prime(5191))
def is_prime(x): t = 1 while t < x: if x % t == 0: if t != 1 and t != x: return False t = t + 1 return True print(is_prime(5191))
{ "targets": [ { "target_name": "knit_decoder", "sources": ["src/main.cpp", "src/context.hpp", "src/worker.hpp"], "include_dirs" : [ "<!(node -e \"require('nan')\")" ], "cflags_cc!": ["-fno-rtti", "-fno-exceptions"], "cflags!": ["-fno-exceptions", "-Wall", "-std=c++11"], "xcode_settings": { "OTHER_CPLUSPLUSFLAGS" : ["-std=c++11","-stdlib=libc++"], "OTHER_LDFLAGS": ["-stdlib=libc++"], "GCC_ENABLE_CPP_EXCEPTIONS": "YES" }, "conditions": [ ['OS=="mac"', { "include_dirs": [ "/usr/local/include" ], "libraries" : [ "-lavcodec", "-lavformat", "-lswscale", "-lavutil" ] }], ['OS=="linux"', { "include_dirs": [ "/usr/local/include" ], "libraries" : [ "-lavcodec", "-lavformat", "-lswscale", "-lavutil", ] }], ['OS=="win"', { "include_dirs": [ "$(LIBAV_PATH)include" ], "libraries" : [ "-l$(LIBAV_PATH)avcodec", "-l$(LIBAV_PATH)avformat", "-l$(LIBAV_PATH)swscale", "-l$(LIBAV_PATH)avutil" ] }] ], } ] }
{'targets': [{'target_name': 'knit_decoder', 'sources': ['src/main.cpp', 'src/context.hpp', 'src/worker.hpp'], 'include_dirs': ['<!(node -e "require(\'nan\')")'], 'cflags_cc!': ['-fno-rtti', '-fno-exceptions'], 'cflags!': ['-fno-exceptions', '-Wall', '-std=c++11'], 'xcode_settings': {'OTHER_CPLUSPLUSFLAGS': ['-std=c++11', '-stdlib=libc++'], 'OTHER_LDFLAGS': ['-stdlib=libc++'], 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'}, 'conditions': [['OS=="mac"', {'include_dirs': ['/usr/local/include'], 'libraries': ['-lavcodec', '-lavformat', '-lswscale', '-lavutil']}], ['OS=="linux"', {'include_dirs': ['/usr/local/include'], 'libraries': ['-lavcodec', '-lavformat', '-lswscale', '-lavutil']}], ['OS=="win"', {'include_dirs': ['$(LIBAV_PATH)include'], 'libraries': ['-l$(LIBAV_PATH)avcodec', '-l$(LIBAV_PATH)avformat', '-l$(LIBAV_PATH)swscale', '-l$(LIBAV_PATH)avutil']}]]}]}
class Properties: def __init__(self, client): self.client = client def search(self, params={}): url = '/properties' property_params = {'property': params} return self.client.request('GET', url, property_params)
class Properties: def __init__(self, client): self.client = client def search(self, params={}): url = '/properties' property_params = {'property': params} return self.client.request('GET', url, property_params)
class Solution: def longestPalindrome(self, s: str) -> int: total = 0 for i in collections.Counter(list(s)).values(): total += i // 2 * 2 if i % 2 == 1 and total % 2 == 0: total += 1 return total
class Solution: def longest_palindrome(self, s: str) -> int: total = 0 for i in collections.Counter(list(s)).values(): total += i // 2 * 2 if i % 2 == 1 and total % 2 == 0: total += 1 return total
def build_question_context(rendered_block, form): question = rendered_block["question"] context = { "block": rendered_block, "form": { "errors": form.errors, "question_errors": form.question_errors, "mapped_errors": form.map_errors(), "answer_errors": {}, "fields": {}, }, } answer_ids = [] for answer in question["answers"]: answer_ids.append(answer["id"]) if answer["type"] in ("Checkbox", "Radio"): for option in answer["options"]: if "detail_answer" in option: answer_ids.append(option["detail_answer"]["id"]) for answer_id in answer_ids: context["form"]["answer_errors"][answer_id] = form.answer_errors(answer_id) if answer_id in form: context["form"]["fields"][answer_id] = form[answer_id] return context
def build_question_context(rendered_block, form): question = rendered_block['question'] context = {'block': rendered_block, 'form': {'errors': form.errors, 'question_errors': form.question_errors, 'mapped_errors': form.map_errors(), 'answer_errors': {}, 'fields': {}}} answer_ids = [] for answer in question['answers']: answer_ids.append(answer['id']) if answer['type'] in ('Checkbox', 'Radio'): for option in answer['options']: if 'detail_answer' in option: answer_ids.append(option['detail_answer']['id']) for answer_id in answer_ids: context['form']['answer_errors'][answer_id] = form.answer_errors(answer_id) if answer_id in form: context['form']['fields'][answer_id] = form[answer_id] return context
class Product: def __init__(self, id, isOwner, name, description, main_img): self.id = id self.isOwner = isOwner self.name = name self.description = description self.main_img = main_img self.images = [] self.stock = {} self.price = {} def add_image(self, image): self.images.append(image) def add_stock(self, store_id, stock): self.stock[store_id] = stock def add_price(self, store_id, price): self.price[store_id] = price class Product_shop: def __init__(self, id, name, description, main_img, price): self.id = id self.name = name self.description = description self.main_img = main_img self.price = price
class Product: def __init__(self, id, isOwner, name, description, main_img): self.id = id self.isOwner = isOwner self.name = name self.description = description self.main_img = main_img self.images = [] self.stock = {} self.price = {} def add_image(self, image): self.images.append(image) def add_stock(self, store_id, stock): self.stock[store_id] = stock def add_price(self, store_id, price): self.price[store_id] = price class Product_Shop: def __init__(self, id, name, description, main_img, price): self.id = id self.name = name self.description = description self.main_img = main_img self.price = price
# File: difference_of_squares.py # Purpose: To find th difference of squares of first n numbers # Programmer: Amal Shehu # Course: Exercism # Date: Saturday 3rd September 2016, 01:50 PM def sum_of_squares(number): return sum([i**2 for i in range(1, number+1)]) def square_of_sum(number): return sum(range(1, number+1)) ** 2 def difference(number): return square_of_sum(number) - sum_of_squares(number)
def sum_of_squares(number): return sum([i ** 2 for i in range(1, number + 1)]) def square_of_sum(number): return sum(range(1, number + 1)) ** 2 def difference(number): return square_of_sum(number) - sum_of_squares(number)
class InvalidOperationError(BaseException): pass class Node(): def __init__(self, value, next = None): self.value = value self.next = next class AnimalShelter(): def __init__(self): self.front = None self.rear = None def __str__(self): # FRONT -> { a } -> { b } -> { c } -> { d } REAR if self.front == None: return "NULL" output = 'FRONT -> ' front = self.front rear = self.rear while front: output += f'{front.value} -> ' front = front.next output += 'REAR' return output def enqueue(self, animal): animal = animal.lower() node = Node(animal) if self.is_empty(): self.front = self.rear = node else: self.rear.next = node self.rear = self.rear.next def dequeue(self, pref): pref = pref.lower() if self.is_empty(): raise InvalidOperationError("Method not allowed on empty collection") if pref == "cat" or pref == 'dog': node = self.front self.front = self.front.next return node.value else: return "null" def is_empty(self): if self.front == None: return True else: return False # if __name__ == "__main__": # a = AnimalShelter() # a.enqueue("dog") # a.enqueue("cat") # a.dequeue("cat") # print(a)
class Invalidoperationerror(BaseException): pass class Node: def __init__(self, value, next=None): self.value = value self.next = next class Animalshelter: def __init__(self): self.front = None self.rear = None def __str__(self): if self.front == None: return 'NULL' output = 'FRONT -> ' front = self.front rear = self.rear while front: output += f'{front.value} -> ' front = front.next output += 'REAR' return output def enqueue(self, animal): animal = animal.lower() node = node(animal) if self.is_empty(): self.front = self.rear = node else: self.rear.next = node self.rear = self.rear.next def dequeue(self, pref): pref = pref.lower() if self.is_empty(): raise invalid_operation_error('Method not allowed on empty collection') if pref == 'cat' or pref == 'dog': node = self.front self.front = self.front.next return node.value else: return 'null' def is_empty(self): if self.front == None: return True else: return False
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # If-else-if flow control. marks = 84 if 80 < marks and 100 >= marks: print("A") elif 60 < marks and 80 >= marks: print("B") elif 50 < marks and 60 >= marks: print("C") elif 35 < marks and 50 >= marks: print("S") else: print("F") # Iteration/loop flow control. my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] for num in my_list: print(num) for num in my_list: if num % 2 == 0: print(f'Even number: {num}') # Even numbers. else: print(f'Odd number: {num}') # Odd numbers. list_sum = 0 for num in my_list: list_sum += num print(list_sum) my_string = "Hello World" for text in my_string: print(text) for _ in range(10): # _, if variable has no issue. print("Cool!") # Tuple un-packing. tup = (1, 2, 3, 4) for num in tup: print(num) my_list = [(1, 2), (3, 4), (5, 6), (7, 8), (9, 10)] print(f'Tuple length: {len(my_list)}') for item in my_list: print(item) # OR for a, b in my_list: # Tuple unpacking. print(f'First: {a}, Second: {b}') # Iterate through dictionaries. my_dict = {'k1': 1, 'k2': 2, 'k3': 3} for item in my_dict: print(item) # By default iterate through keys only. for item in my_dict.items(): print(item) # Now its tuple list that iterate. for key, value in my_dict.items(): print(f'Key: {key}, Value: {value}') # Tuple unpacking on dictionary. else: print("End") # Iteration/loop with 'while' loops. x = 0 while x < 5: print(f'Value of x is {x}') x += 1 else: print("X is not less than five") # break, continue and pass for item in range(5): pass # Just a placeholder , do nothing. # break and continue work just like with Java.
marks = 84 if 80 < marks and 100 >= marks: print('A') elif 60 < marks and 80 >= marks: print('B') elif 50 < marks and 60 >= marks: print('C') elif 35 < marks and 50 >= marks: print('S') else: print('F') my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] for num in my_list: print(num) for num in my_list: if num % 2 == 0: print(f'Even number: {num}') else: print(f'Odd number: {num}') list_sum = 0 for num in my_list: list_sum += num print(list_sum) my_string = 'Hello World' for text in my_string: print(text) for _ in range(10): print('Cool!') tup = (1, 2, 3, 4) for num in tup: print(num) my_list = [(1, 2), (3, 4), (5, 6), (7, 8), (9, 10)] print(f'Tuple length: {len(my_list)}') for item in my_list: print(item) for (a, b) in my_list: print(f'First: {a}, Second: {b}') my_dict = {'k1': 1, 'k2': 2, 'k3': 3} for item in my_dict: print(item) for item in my_dict.items(): print(item) for (key, value) in my_dict.items(): print(f'Key: {key}, Value: {value}') else: print('End') x = 0 while x < 5: print(f'Value of x is {x}') x += 1 else: print('X is not less than five') for item in range(5): pass
symbol748 = {} def _update(code_748, code_gbk, numchars): for i in range(numchars): symbol748[code_748 + i] = code_gbk + i _update(0x8EFF, 0x8E8F, 1) # 8EFF -> 8E8F _update(0x94FF, 0x94DA, 1) # 94FF -> 94DA _update(0x95FF, 0x95F1, 1) # 95FF -> 95F1 _update(0x9680, 0xB17E, 1) # 9680 -> B17E _update(0x9681, 0xB47E, 1) # 9681 -> B47E _update(0x9682, 0xB57E, 1) # 9682 -> B57E _update(0x9683, 0xB261, 1) # 9683 -> B261 _update(0xA081, 0x8940, 3) # A081-A083 -> 8940-8942 _update(0xA089, 0xA2A0, 1) # A089 -> A2A0 _update(0xA08A, 0x8943, 4) # A08A-A08D -> 8943-8946 _update(0xA0A1, 0xA1A0, 1) # A0A1 -> A1A0 _update(0xA0A2, 0xA3A2, 2) # A0A2-A0A3 -> A3A2-A3A3 _update(0xA0A4, 0xA1E7, 1) # A0A4 -> A1E7 _update(0xA0A5, 0xA3A5, 3) # A0A5-A0A7 -> A3A5-A3A7 _update(0xA0A8, 0xA39F, 2) # A0A8-A0A9 -> A39F-A3A0 _update(0xA0AA, 0xAAB3, 1) # A0AA -> AAB3 _update(0xA0AB, 0xA3AB, 1) # A0AB -> A3AB _update(0xA0AC, 0xA29F, 1) # A0AC -> A29F _update(0xA0AD, 0xA3AD, 13) # A0AD-A0B9 -> A3AD-A3B9 _update(0xA0BA, 0xA69F, 2) # A0BA-A0BB -> A69F-A6A0 _update(0xA0BC, 0xA3BC, 31) # A0BC-A0DA -> A3BC-A3DA _update(0xA0DB, 0xA49F, 1) # A0DB -> A49F _update(0xA0DC, 0xA3DC, 1) # A0DC -> A3DC _update(0xA0DD, 0xA4A0, 1) # A0DD -> A4A0 _update(0xA0DE, 0xA3DE, 29) # A0DE-A0FA -> A3DE-A3FA _update(0xA0FB, 0xA59F, 1) # A0FB -> A59F _update(0xA0FC, 0xA3FC, 1) # A0FC -> A3FC _update(0xA0FD, 0xA5A0, 1) # A0FD -> A5A0 _update(0xA0FE, 0xA3FE, 1) # A0FE -> A3FE _update(0xA100, 0x8240, 11) # A100-A10A -> 8240-824E _update(0xA10B, 0xB14B, 22) # A10B-A120 -> B14B-B160 _update(0xA121, 0xA140, 32) # A121-A15F -> A140-A17E _update(0xA160, 0xA180, 31) # A160-A17E -> A180-A19E _update(0xA180, 0xB180, 23) # A180-A196 -> B180-B196 _update(0xA200, 0xB240, 33) # A200-A220 -> B240-B260 _update(0xA221, 0xA240, 63) # A221-A25F -> A240-A27E _update(0xA260, 0xA280, 31) # A260-A27E -> A280-A29E _update(0xA280, 0xB280, 33) # A280-A2A0 -> B280-B2A0 _update(0xA2FF, 0xA2EF, 1) # A2FF -> A2EF _update(0xA300, 0xB340, 31) # A300-A31E -> B340-B35E _update(0xA321, 0xA340, 63) # A321-A35F -> A340-A37E _update(0xA360, 0xA380, 31) # A360-A37E -> A380-A39E _update(0xA380, 0xB380, 19) # A380-A392 -> B380-B392 _update(0xA393, 0xA1AD, 1) # A393 -> A1AD _update(0xA394, 0xB394, 13) # A394-A3A0 -> B394-B3A0 _update(0xA421, 0xA440, 63) # A421-A45F -> A440-A47E _update(0xA460, 0xA480, 31) # A460-A47E -> A480-A49E _update(0xA480, 0xB480, 33) # A480-A4A0 -> B480-B4A0 _update(0xA521, 0xA540, 63) # A521-A55F -> A540-A57E _update(0xA560, 0x97F2, 2) # A560-A561 -> 97F2-97F3 _update(0xA56F, 0xA58F, 5) # A56F-A573 -> A58F-A593 _update(0xA578, 0xA598, 7) # A578-A57E -> A598-A59E _update(0xA580, 0xB580, 33) # A580-A5A0 -> B580-B5A0 _update(0xA621, 0xA640, 56) # A621-A658 -> A640-A677 _update(0xA660, 0xA680, 14) # A660-A66D -> A680-A68D _update(0xA680, 0xB680, 31) # A680-A69E -> B680-B69E _update(0xA780, 0xB780, 32) # A780-A79F -> B780-B79F # A7A0 (no matches) _update(0xA7FF, 0xB7A0, 1) # A7FF -> B7A0 _update(0xA880, 0xB880, 30) # A880-A89D -> B880-B89D _update(0xA89F, 0xB89F, 2) # A89F-A8A0 -> B89F-B8A0 _update(0xA980, 0xB980, 30) # A980-A99D -> B980-B99D _update(0xA9FF, 0xB9A0, 1) # A9FF -> B9A0 _update(0xAA80, 0xBA80, 2) # AA80-AA81 -> BA80-BA81
symbol748 = {} def _update(code_748, code_gbk, numchars): for i in range(numchars): symbol748[code_748 + i] = code_gbk + i _update(36607, 36495, 1) _update(38143, 38106, 1) _update(38399, 38385, 1) _update(38528, 45438, 1) _update(38529, 46206, 1) _update(38530, 46462, 1) _update(38531, 45665, 1) _update(41089, 35136, 3) _update(41097, 41632, 1) _update(41098, 35139, 4) _update(41121, 41376, 1) _update(41122, 41890, 2) _update(41124, 41447, 1) _update(41125, 41893, 3) _update(41128, 41887, 2) _update(41130, 43699, 1) _update(41131, 41899, 1) _update(41132, 41631, 1) _update(41133, 41901, 13) _update(41146, 42655, 2) _update(41148, 41916, 31) _update(41179, 42143, 1) _update(41180, 41948, 1) _update(41181, 42144, 1) _update(41182, 41950, 29) _update(41211, 42399, 1) _update(41212, 41980, 1) _update(41213, 42400, 1) _update(41214, 41982, 1) _update(41216, 33344, 11) _update(41227, 45387, 22) _update(41249, 41280, 32) _update(41312, 41344, 31) _update(41344, 45440, 23) _update(41472, 45632, 33) _update(41505, 41536, 63) _update(41568, 41600, 31) _update(41600, 45696, 33) _update(41727, 41711, 1) _update(41728, 45888, 31) _update(41761, 41792, 63) _update(41824, 41856, 31) _update(41856, 45952, 19) _update(41875, 41389, 1) _update(41876, 45972, 13) _update(42017, 42048, 63) _update(42080, 42112, 31) _update(42112, 46208, 33) _update(42273, 42304, 63) _update(42336, 38898, 2) _update(42351, 42383, 5) _update(42360, 42392, 7) _update(42368, 46464, 33) _update(42529, 42560, 56) _update(42592, 42624, 14) _update(42624, 46720, 31) _update(42880, 46976, 32) _update(43007, 47008, 1) _update(43136, 47232, 30) _update(43167, 47263, 2) _update(43392, 47488, 30) _update(43519, 47520, 1) _update(43648, 47744, 2)
# The method below seems to yield correct result but will end in TLE for large cases. # def candy(ratings) -> int: # n = len(ratings) # candies = [0]*n # while True: # changed = False # for i in range(1, n): # if ratings[i-1] < ratings[i] and candies[i-1] >= candies[i]: # candies[i] = candies[i-1] + 1 # changed = True # elif ratings[i-1] > ratings[i] and candies[i-1] <= candies[i]: # candies[i-1] = candies[i] + 1 # changed = True # iterations += 1 # if not changed: # break # return sum(candies) + n # Operating on a full list could end up having too long a list to handle, # def candy(ratings) -> int: n = len(ratings) last_one = 1 num_candies = 1 # last index i where a[i-1] <= a[i], such that plus 1 shouldn't propage through i. last_le = 0 # last index where a[idx-1] > a[idx] and a[idx - 1] - a[idx] > 1 # make it a list and append element like [diff, i] # because adding 1, especially multiple time might accumulate the diff and end up propagating through a big_diff point. last_big_diff = [] for i in range(1, n): if ratings[i] > ratings[i-1]: num_candies += (last_one + 1) last_one += 1 last_le = i elif ratings[i] == ratings[i-1]: num_candies += 1 last_one = 1 last_le = i elif ratings[i] < ratings[i-1] and last_one == 1: index_big_diff = 0 while len(last_big_diff) and last_big_diff[-1][0] == 1: del last_big_diff[-1] if len(last_big_diff) != 0: index_big_diff = last_big_diff[-1][1] last_big_diff[-1][0] -= 1 num_candies += (i - max(last_le, index_big_diff) + 1) last_one = 1 else: num_candies += 1 last_big_diff.append([last_one - 1,i]) last_one = 1 return num_candies def candy_1(ratings) -> int: n = len(ratings) candies = [1]*n for i in range(1, n): if ratings[i] > ratings[i-1]: candies[i] = candies[i-1] + 1 for i in reversed(range(1,n)): if ratings[i-1] > ratings[i] and candies[i-1] <= candies[i]: candies[i-1] = candies[i] + 1 return sum(candies) if __name__ == "__main__": print(candy_1([1,6,10,8,7,3,2]))
def candy(ratings) -> int: n = len(ratings) last_one = 1 num_candies = 1 last_le = 0 last_big_diff = [] for i in range(1, n): if ratings[i] > ratings[i - 1]: num_candies += last_one + 1 last_one += 1 last_le = i elif ratings[i] == ratings[i - 1]: num_candies += 1 last_one = 1 last_le = i elif ratings[i] < ratings[i - 1] and last_one == 1: index_big_diff = 0 while len(last_big_diff) and last_big_diff[-1][0] == 1: del last_big_diff[-1] if len(last_big_diff) != 0: index_big_diff = last_big_diff[-1][1] last_big_diff[-1][0] -= 1 num_candies += i - max(last_le, index_big_diff) + 1 last_one = 1 else: num_candies += 1 last_big_diff.append([last_one - 1, i]) last_one = 1 return num_candies def candy_1(ratings) -> int: n = len(ratings) candies = [1] * n for i in range(1, n): if ratings[i] > ratings[i - 1]: candies[i] = candies[i - 1] + 1 for i in reversed(range(1, n)): if ratings[i - 1] > ratings[i] and candies[i - 1] <= candies[i]: candies[i - 1] = candies[i] + 1 return sum(candies) if __name__ == '__main__': print(candy_1([1, 6, 10, 8, 7, 3, 2]))
def InsertionSort(array): for i in range(1,len(array)): current = array[i] j = i-1 while(j >= 0 and current < array[j]): array[j+1] = array[j] j -= 1 array[j+1] = current array = [32,33,1,0,23,98,-19,15,7,-52,76] print("Before sort: ") print(*array,sep=', ') print("After sort: ") InsertionSort(array) print(*array,sep=', ')
def insertion_sort(array): for i in range(1, len(array)): current = array[i] j = i - 1 while j >= 0 and current < array[j]: array[j + 1] = array[j] j -= 1 array[j + 1] = current array = [32, 33, 1, 0, 23, 98, -19, 15, 7, -52, 76] print('Before sort: ') print(*array, sep=', ') print('After sort: ') insertion_sort(array) print(*array, sep=', ')
HTTP_OK = 200 HTTP_UNAUTHORIZED = 401 HTTP_FOUND = 302 HTTP_BAD_REQUEST = 400 HTTP_NOT_FOUND = 404 HTTP_SERVICE_UNAVAILABLE = 503
http_ok = 200 http_unauthorized = 401 http_found = 302 http_bad_request = 400 http_not_found = 404 http_service_unavailable = 503
x=int(input("enter x1")) y=int(input("enter x2")) c=x*y print(c)
x = int(input('enter x1')) y = int(input('enter x2')) c = x * y print(c)
coordinates_E0E1E1 = ((126, 112), (126, 114), (126, 115), (126, 130), (126, 131), (127, 113), (127, 115), (127, 131), (128, 92), (128, 115), (128, 116), (128, 121), (128, 131), (129, 92), (129, 116), (129, 118), (129, 119), (129, 131), (130, 92), (130, 117), (130, 122), (130, 131), (131, 87), (131, 89), (131, 90), (131, 92), (131, 118), (131, 120), (131, 122), (131, 131), (132, 88), (132, 91), (132, 118), (132, 120), (132, 122), (132, 130), (133, 89), (133, 91), (133, 108), (133, 118), (133, 119), (133, 120), (133, 122), (133, 130), (134, 91), (134, 107), (134, 109), (134, 119), (134, 122), (134, 129), (134, 130), (134, 138), (135, 90), (135, 106), (135, 108), (135, 110), (135, 119), (135, 121), (135, 123), (135, 129), (135, 130), (135, 137), (136, 91), (136, 92), (136, 101), (136, 103), (136, 104), (136, 107), (136, 108), (136, 109), (136, 111), (136, 119), (136, 121), (136, 123), (136, 128), (136, 129), (136, 137), (137, 91), (137, 92), (137, 102), (137, 105), (137, 106), (137, 107), (137, 108), (137, 109), (137, 110), (137, 112), (137, 119), (137, 121), (137, 122), (137, 123), (137, 127), (137, 128), (137, 136), (138, 91), (138, 92), (138, 103), (138, 106), (138, 107), (138, 113), (138, 119), (138, 121), (138, 122), (138, 123), (138, 125), (138, 126), (138, 128), (138, 135), (139, 90), (139, 92), (139, 104), (139, 108), (139, 109), (139, 110), (139, 111), (139, 114), (139, 115), (139, 116), (139, 117), (139, 119), (139, 120), (139, 121), (139, 122), (139, 123), (139, 124), (139, 128), (139, 134), (140, 89), (140, 91), (140, 93), (140, 105), (140, 106), (140, 112), (140, 116), (140, 119), (140, 120), (140, 121), (140, 122), (140, 123), (140, 124), (140, 125), (140, 126), (140, 127), (140, 128), (140, 129), (140, 130), (140, 131), (140, 134), (141, 87), (141, 89), (141, 90), (141, 94), (141, 113), (141, 115), (141, 116), (141, 117), (141, 118), (141, 119), (141, 120), (141, 121), (141, 122), (141, 123), (141, 124), (141, 125), (141, 126), (141, 127), (141, 128), (141, 133), (142, 86), (142, 91), (142, 92), (142, 93), (142, 95), (142, 114), (142, 116), (142, 117), (142, 118), (142, 119), (142, 120), (142, 121), (142, 122), (142, 123), (142, 124), (142, 125), (142, 126), (142, 127), (142, 128), (142, 129), (142, 130), (142, 131), (142, 132), (142, 134), (143, 94), (143, 97), (143, 114), (143, 116), (143, 117), (143, 118), (143, 119), (143, 120), (143, 121), (143, 122), (143, 123), (143, 124), (143, 125), (143, 126), (143, 127), (143, 128), (143, 129), (143, 130), (143, 131), (143, 132), (143, 134), (143, 139), (144, 96), (144, 99), (144, 114), (144, 116), (144, 117), (144, 118), (144, 119), (144, 120), (144, 121), (144, 122), (144, 123), (144, 124), (144, 125), (144, 126), (144, 127), (144, 128), (144, 129), (144, 130), (144, 131), (144, 132), (144, 133), (144, 134), (144, 137), (145, 98), (145, 100), (145, 113), (145, 115), (145, 116), (145, 117), (145, 118), (145, 119), (145, 120), (145, 121), (145, 122), (145, 123), (145, 124), (145, 125), (145, 126), (145, 127), (145, 128), (145, 129), (145, 130), (145, 131), (145, 132), (145, 133), (145, 134), (145, 136), (146, 112), (146, 114), (146, 115), (146, 116), (146, 117), (146, 118), (146, 119), (146, 120), (146, 121), (146, 122), (146, 123), (146, 124), (146, 125), (146, 126), (146, 127), (146, 128), (146, 129), (146, 130), (146, 131), (146, 132), (146, 133), (146, 135), (147, 112), (147, 114), (147, 115), (147, 116), (147, 117), (147, 118), (147, 119), (147, 120), (147, 121), (147, 122), (147, 123), (147, 127), (147, 128), (147, 129), (147, 130), (147, 131), (147, 132), (147, 133), (147, 135), (148, 113), (148, 116), (148, 117), (148, 118), (148, 119), (148, 120), (148, 121), (148, 122), (148, 123), (148, 124), (148, 125), (148, 128), (148, 129), (148, 130), (148, 131), (148, 132), (148, 133), (148, 135), (149, 114), (149, 116), (149, 117), (149, 118), (149, 119), (149, 120), (149, 121), (149, 123), (149, 127), (149, 129), (149, 130), (149, 131), (149, 132), (149, 133), (149, 134), (149, 136), (150, 93), (150, 116), (150, 118), (150, 119), (150, 120), (150, 122), (150, 128), (150, 130), (150, 131), (150, 132), (150, 133), (150, 134), (150, 135), (150, 137), (151, 94), (151, 116), (151, 118), (151, 119), (151, 120), (151, 122), (151, 128), (151, 131), (151, 132), (151, 133), (151, 134), (151, 136), (152, 95), (152, 117), (152, 119), (152, 120), (152, 122), (152, 130), (152, 132), (152, 133), (152, 135), (153, 96), (153, 98), (153, 99), (153, 105), (153, 117), (153, 119), (153, 120), (153, 121), (153, 123), (153, 131), (153, 134), (154, 103), (154, 105), (154, 117), (154, 119), (154, 120), (154, 121), (154, 122), (154, 123), (154, 124), (154, 131), (154, 134), (155, 104), (155, 105), (155, 117), (155, 119), (155, 120), (155, 121), (155, 122), (155, 123), (155, 126), (155, 131), (155, 132), (155, 134), (156, 104), (156, 105), (156, 116), (156, 118), (156, 119), (156, 122), (156, 123), (156, 124), (156, 126), (156, 131), (156, 135), (157, 104), (157, 106), (157, 115), (157, 117), (157, 118), (157, 120), (157, 122), (157, 123), (157, 125), (157, 131), (157, 133), (157, 136), (158, 104), (158, 106), (158, 114), (158, 116), (158, 117), (158, 119), (158, 122), (158, 124), (158, 130), (158, 132), (159, 104), (159, 106), (159, 112), (159, 115), (159, 116), (159, 118), (159, 122), (159, 123), (159, 130), (159, 131), (160, 105), (160, 111), (160, 114), (160, 115), (160, 117), (160, 123), (160, 129), (160, 130), (161, 105), (161, 107), (161, 108), (161, 109), (161, 110), (161, 112), (161, 113), (161, 114), (161, 116), (161, 123), (161, 129), (161, 130), (162, 113), (162, 114), (162, 123), (162, 129), (163, 112), (163, 115), (163, 128), (163, 129), (164, 113), (164, 114), (164, 122), (164, 128), (165, 128), (166, 127), ) coordinates_E1E1E1 = ((79, 113), (80, 113), (80, 114), (80, 129), (81, 113), (81, 115), (81, 129), (82, 112), (82, 113), (82, 115), (82, 129), (83, 112), (83, 114), (83, 116), (83, 128), (83, 129), (84, 110), (84, 113), (84, 114), (84, 115), (84, 117), (84, 128), (84, 129), (85, 108), (85, 115), (85, 116), (85, 128), (85, 129), (86, 101), (86, 103), (86, 110), (86, 111), (86, 114), (86, 118), (86, 129), (86, 141), (86, 142), (87, 101), (87, 104), (87, 105), (87, 106), (87, 107), (87, 110), (87, 119), (87, 127), (87, 129), (87, 141), (87, 142), (88, 101), (88, 103), (88, 108), (88, 110), (88, 117), (88, 121), (88, 126), (88, 129), (89, 101), (89, 102), (89, 109), (89, 110), (89, 118), (89, 122), (89, 123), (89, 124), (89, 127), (89, 129), (90, 101), (90, 110), (90, 119), (90, 121), (90, 126), (90, 127), (90, 128), (90, 130), (90, 139), (91, 100), (91, 120), (91, 122), (91, 123), (91, 124), (91, 125), (91, 126), (91, 127), (91, 128), (91, 129), (91, 131), (91, 138), (91, 139), (92, 99), (92, 121), (92, 123), (92, 124), (92, 125), (92, 126), (92, 127), (92, 128), (92, 129), (92, 130), (92, 133), (92, 135), (92, 136), (92, 138), (93, 98), (93, 121), (93, 123), (93, 124), (93, 125), (93, 126), (93, 127), (93, 128), (93, 129), (93, 130), (93, 131), (93, 134), (93, 138), (94, 97), (94, 121), (94, 123), (94, 124), (94, 125), (94, 126), (94, 127), (94, 128), (94, 129), (94, 130), (94, 131), (94, 132), (94, 133), (94, 135), (94, 136), (94, 138), (95, 95), (95, 96), (95, 121), (95, 123), (95, 124), (95, 125), (95, 126), (95, 127), (95, 128), (95, 129), (95, 130), (95, 131), (95, 132), (95, 133), (95, 134), (95, 135), (95, 139), (96, 94), (96, 95), (96, 107), (96, 121), (96, 123), (96, 124), (96, 125), (96, 126), (96, 127), (96, 128), (96, 129), (96, 130), (96, 131), (96, 132), (96, 133), (96, 134), (96, 137), (96, 139), (97, 105), (97, 108), (97, 109), (97, 110), (97, 121), (97, 123), (97, 124), (97, 125), (97, 126), (97, 127), (97, 128), (97, 129), (97, 130), (97, 131), (97, 132), (97, 133), (97, 135), (98, 104), (98, 107), (98, 113), (98, 121), (98, 123), (98, 124), (98, 125), (98, 126), (98, 127), (98, 128), (98, 129), (98, 130), (98, 131), (98, 132), (98, 134), (99, 103), (99, 105), (99, 110), (99, 111), (99, 113), (99, 120), (99, 122), (99, 123), (99, 124), (99, 125), (99, 126), (99, 127), (99, 128), (99, 129), (99, 130), (99, 131), (99, 133), (100, 102), (100, 106), (100, 107), (100, 108), (100, 109), (100, 110), (100, 111), (100, 113), (100, 120), (100, 122), (100, 123), (100, 124), (100, 127), (100, 128), (100, 129), (100, 130), (100, 131), (100, 133), (101, 101), (101, 103), (101, 104), (101, 110), (101, 112), (101, 113), (101, 119), (101, 121), (101, 122), (101, 125), (101, 126), (101, 127), (101, 128), (101, 129), (101, 130), (101, 131), (101, 133), (102, 100), (102, 102), (102, 110), (102, 112), (102, 113), (102, 115), (102, 118), (102, 120), (102, 121), (102, 122), (102, 124), (102, 128), (102, 129), (102, 130), (102, 131), (102, 133), (102, 140), (102, 141), (103, 99), (103, 100), (103, 110), (103, 112), (103, 113), (103, 116), (103, 117), (103, 119), (103, 120), (103, 122), (103, 128), (103, 130), (103, 131), (103, 133), (103, 140), (104, 93), (104, 95), (104, 96), (104, 98), (104, 110), (104, 112), (104, 113), (104, 114), (104, 115), (104, 118), (104, 119), (104, 120), (104, 122), (104, 128), (104, 130), (104, 131), (104, 133), (104, 138), (104, 139), (105, 93), (105, 97), (105, 110), (105, 112), (105, 113), (105, 114), (105, 115), (105, 116), (105, 117), (105, 118), (105, 123), (105, 127), (105, 131), (105, 133), (105, 137), (105, 139), (106, 93), (106, 96), (106, 110), (106, 113), (106, 114), (106, 115), (106, 116), (106, 117), (106, 120), (106, 121), (106, 122), (106, 123), (106, 124), (106, 125), (106, 128), (106, 129), (106, 133), (106, 138), (107, 93), (107, 95), (107, 110), (107, 114), (107, 115), (107, 118), (107, 124), (107, 126), (107, 131), (107, 133), (107, 138), (108, 84), (108, 93), (108, 94), (108, 113), (108, 115), (108, 117), (108, 124), (108, 125), (108, 133), (108, 138), (109, 84), (109, 85), (109, 93), (109, 114), (109, 116), (109, 124), (109, 125), (109, 132), (109, 133), (110, 84), (110, 86), (110, 93), (110, 114), (110, 115), (110, 125), (110, 132), (110, 133), (111, 86), (111, 93), (111, 114), (111, 123), (111, 125), (111, 133), (112, 87), (112, 113), (112, 122), (112, 125), (112, 133), (113, 87), (113, 88), (113, 112), (113, 122), (113, 125), (113, 133), (114, 88), (114, 89), (114, 93), (114, 94), (114, 111), (114, 122), (114, 125), (115, 89), (115, 90), (115, 93), (115, 98), (115, 107), (115, 111), (115, 121), (115, 122), (115, 123), (115, 134), (116, 89), (116, 91), (116, 94), (116, 95), (116, 96), (116, 98), (116, 106), (116, 109), (116, 111), (116, 121), (116, 123), (116, 125), (116, 135), (117, 90), (117, 92), (117, 93), (117, 98), (117, 106), (117, 108), (117, 111), (117, 121), (117, 123), (118, 91), (118, 98), (118, 106), (118, 109), (118, 112), (118, 121), (118, 123), (119, 106), (119, 108), (119, 121), (120, 107), ) coordinates_781286 = ((103, 126), (104, 125), ) coordinates_DCF8A4 = ((109, 161), (110, 161), (111, 160), (111, 161), (112, 160), (113, 159), (114, 159), (115, 158), (116, 157), ) coordinates_DBF8A4 = ((133, 157), (134, 158), (141, 161), (142, 161), (143, 161), (144, 161), ) coordinates_60CC60 = ((83, 155), (83, 156), (83, 160), (84, 155), (84, 157), (84, 163), (85, 154), (85, 156), (85, 160), (85, 161), (85, 164), (86, 153), (86, 155), (86, 156), (86, 157), (86, 158), (86, 160), (86, 161), (86, 162), (86, 165), (87, 152), (87, 154), (87, 155), (87, 156), (87, 157), (87, 158), (87, 159), (87, 160), (87, 161), (87, 162), (87, 163), (87, 166), (88, 151), (88, 153), (88, 154), (88, 155), (88, 156), (88, 157), (88, 158), (88, 159), (88, 160), (88, 161), (88, 162), (88, 163), (88, 164), (89, 150), (89, 152), (89, 153), (89, 154), (89, 155), (89, 156), (89, 157), (89, 158), (89, 159), (89, 160), (89, 161), (89, 162), (89, 163), (89, 164), (89, 165), (89, 167), (90, 150), (90, 152), (90, 153), (90, 154), (90, 155), (90, 156), (90, 157), (90, 158), (90, 159), (90, 160), (90, 161), (90, 162), (90, 163), (90, 164), (90, 165), (90, 166), (90, 168), (91, 149), (91, 151), (91, 152), (91, 153), (91, 154), (91, 155), (91, 156), (91, 157), (91, 158), (91, 159), (91, 160), (91, 161), (91, 162), (91, 163), (91, 164), (91, 165), (91, 166), (91, 167), (91, 169), (92, 149), (92, 151), (92, 152), (92, 153), (92, 154), (92, 155), (92, 156), (92, 157), (92, 158), (92, 159), (92, 160), (92, 161), (92, 162), (92, 163), (92, 164), (92, 165), (92, 166), (92, 167), (92, 169), (93, 149), (93, 151), (93, 152), (93, 153), (93, 154), (93, 155), (93, 156), (93, 157), (93, 158), (93, 159), (93, 160), (93, 161), (93, 162), (93, 163), (93, 164), (93, 165), (93, 166), (93, 167), (93, 168), (93, 170), (94, 149), (94, 151), (94, 152), (94, 153), (94, 154), (94, 155), (94, 156), (94, 157), (94, 158), (94, 159), (94, 160), (94, 161), (94, 162), (94, 163), (94, 164), (94, 165), (94, 166), (94, 167), (94, 168), (94, 170), (95, 149), (95, 150), (95, 151), (95, 152), (95, 153), (95, 154), (95, 155), (95, 156), (95, 157), (95, 158), (95, 159), (95, 160), (95, 161), (95, 162), (95, 163), (95, 164), (95, 165), (95, 166), (95, 167), (95, 168), (95, 169), (95, 171), (96, 148), (96, 150), (96, 151), (96, 152), (96, 153), (96, 154), (96, 155), (96, 156), (96, 157), (96, 158), (96, 159), (96, 160), (96, 161), (96, 162), (96, 163), (96, 164), (96, 165), (96, 166), (96, 167), (96, 168), (96, 169), (96, 171), (97, 150), (97, 151), (97, 152), (97, 153), (97, 154), (97, 155), (97, 156), (97, 157), (97, 158), (97, 159), (97, 160), (97, 161), (97, 162), (97, 163), (97, 164), (97, 165), (97, 166), (97, 167), (97, 168), (97, 169), (97, 170), (97, 172), (98, 147), (98, 149), (98, 150), (98, 151), (98, 152), (98, 153), (98, 154), (98, 155), (98, 156), (98, 157), (98, 158), (98, 159), (98, 160), (98, 161), (98, 162), (98, 163), (98, 164), (98, 165), (98, 166), (98, 167), (98, 168), (98, 169), (98, 170), (98, 172), (99, 147), (99, 149), (99, 150), (99, 151), (99, 152), (99, 153), (99, 154), (99, 155), (99, 156), (99, 157), (99, 158), (99, 159), (99, 160), (99, 161), (99, 162), (99, 163), (99, 164), (99, 165), (99, 166), (99, 167), (99, 168), (99, 169), (99, 170), (99, 171), (99, 173), (100, 146), (100, 147), (100, 148), (100, 149), (100, 150), (100, 151), (100, 152), (100, 153), (100, 154), (100, 155), (100, 156), (100, 157), (100, 158), (100, 159), (100, 160), (100, 161), (100, 162), (100, 163), (100, 164), (100, 165), (100, 166), (100, 167), (100, 168), (100, 169), (100, 170), (100, 171), (100, 173), (101, 146), (101, 148), (101, 149), (101, 150), (101, 151), (101, 152), (101, 153), (101, 154), (101, 155), (101, 156), (101, 157), (101, 158), (101, 159), (101, 160), (101, 161), (101, 162), (101, 163), (101, 164), (101, 165), (101, 166), (101, 167), (101, 168), (101, 169), (101, 170), (101, 171), (101, 173), (102, 146), (102, 148), (102, 149), (102, 150), (102, 151), (102, 152), (102, 153), (102, 154), (102, 155), (102, 156), (102, 157), (102, 158), (102, 159), (102, 160), (102, 161), (102, 162), (102, 163), (102, 164), (102, 165), (102, 166), (102, 167), (102, 168), (102, 169), (102, 170), (102, 171), (102, 173), (103, 145), (103, 147), (103, 148), (103, 149), (103, 150), (103, 151), (103, 152), (103, 153), (103, 154), (103, 155), (103, 156), (103, 157), (103, 158), (103, 159), (103, 160), (103, 161), (103, 162), (103, 163), (103, 164), (103, 165), (103, 166), (103, 167), (103, 168), (103, 169), (103, 170), (103, 171), (103, 173), (104, 145), (104, 147), (104, 148), (104, 149), (104, 150), (104, 151), (104, 152), (104, 153), (104, 154), (104, 155), (104, 156), (104, 157), (104, 158), (104, 159), (104, 160), (104, 161), (104, 162), (104, 163), (104, 164), (104, 165), (104, 166), (104, 167), (104, 168), (104, 169), (104, 170), (104, 171), (104, 173), (105, 145), (105, 147), (105, 148), (105, 149), (105, 150), (105, 151), (105, 152), (105, 153), (105, 154), (105, 155), (105, 156), (105, 157), (105, 158), (105, 159), (105, 160), (105, 163), (105, 164), (105, 165), (105, 166), (105, 167), (105, 168), (105, 169), (105, 170), (105, 171), (105, 173), (106, 145), (106, 147), (106, 148), (106, 149), (106, 150), (106, 151), (106, 152), (106, 153), (106, 154), (106, 155), (106, 156), (106, 157), (106, 158), (106, 159), (106, 162), (106, 163), (106, 164), (106, 165), (106, 166), (106, 167), (106, 168), (106, 169), (106, 170), (106, 171), (106, 173), (107, 144), (107, 146), (107, 147), (107, 148), (107, 149), (107, 150), (107, 151), (107, 152), (107, 153), (107, 154), (107, 155), (107, 156), (107, 157), (107, 158), (107, 160), (107, 163), (107, 165), (107, 166), (107, 167), (107, 168), (107, 169), (107, 170), (107, 171), (107, 173), (108, 144), (108, 146), (108, 147), (108, 148), (108, 149), (108, 151), (108, 152), (108, 153), (108, 154), (108, 155), (108, 156), (108, 157), (108, 159), (108, 163), (108, 165), (108, 166), (108, 167), (108, 168), (108, 169), (108, 170), (108, 171), (108, 173), (109, 144), (109, 146), (109, 147), (109, 148), (109, 150), (109, 151), (109, 152), (109, 153), (109, 154), (109, 155), (109, 156), (109, 157), (109, 159), (109, 163), (109, 165), (109, 166), (109, 167), (109, 168), (109, 169), (109, 170), (109, 172), (110, 144), (110, 146), (110, 147), (110, 148), (110, 152), (110, 153), (110, 154), (110, 155), (110, 156), (110, 158), (110, 163), (110, 165), (110, 166), (110, 167), (110, 168), (110, 169), (110, 170), (110, 172), (111, 143), (111, 145), (111, 146), (111, 147), (111, 151), (111, 152), (111, 153), (111, 154), (111, 155), (111, 156), (111, 158), (111, 163), (111, 165), (111, 166), (111, 167), (111, 168), (111, 169), (111, 170), (111, 172), (112, 143), (112, 145), (112, 146), (112, 150), (112, 151), (112, 152), (112, 153), (112, 154), (112, 155), (112, 156), (112, 158), (112, 162), (112, 164), (112, 165), (112, 166), (112, 167), (112, 168), (112, 169), (112, 170), (112, 172), (113, 143), (113, 145), (113, 146), (113, 147), (113, 151), (113, 152), (113, 153), (113, 154), (113, 155), (113, 157), (113, 162), (113, 164), (113, 165), (113, 166), (113, 167), (113, 168), (113, 169), (113, 171), (114, 143), (114, 145), (114, 146), (114, 147), (114, 148), (114, 150), (114, 151), (114, 152), (114, 153), (114, 154), (114, 155), (114, 157), (114, 161), (114, 163), (114, 164), (114, 165), (114, 166), (114, 167), (114, 168), (114, 169), (114, 171), (115, 143), (115, 145), (115, 146), (115, 147), (115, 149), (115, 150), (115, 151), (115, 152), (115, 153), (115, 154), (115, 156), (115, 160), (115, 162), (115, 163), (115, 164), (115, 165), (115, 166), (115, 167), (115, 168), (115, 169), (115, 171), (116, 143), (116, 145), (116, 146), (116, 147), (116, 148), (116, 149), (116, 150), (116, 151), (116, 152), (116, 153), (116, 155), (116, 160), (116, 162), (116, 163), (116, 164), (116, 165), (116, 166), (116, 167), (116, 168), (116, 169), (116, 171), (117, 146), (117, 147), (117, 148), (117, 149), (117, 150), (117, 151), (117, 152), (117, 153), (117, 154), (117, 155), (117, 159), (117, 161), (117, 162), (117, 163), (117, 164), (117, 165), (117, 166), (117, 167), (117, 168), (117, 170), (118, 144), (118, 146), (118, 147), (118, 148), (118, 149), (118, 150), (118, 151), (118, 152), (118, 154), (118, 157), (118, 160), (118, 161), (118, 162), (118, 163), (118, 164), (118, 165), (118, 166), (118, 167), (118, 168), (118, 170), (119, 145), (119, 148), (119, 149), (119, 150), (119, 151), (119, 153), (119, 159), (119, 160), (119, 161), (119, 162), (119, 163), (119, 164), (119, 165), (119, 166), (119, 167), (119, 168), (119, 170), (120, 146), (120, 150), (120, 151), (120, 152), (120, 153), (120, 156), (120, 157), (120, 158), (120, 159), (120, 160), (120, 161), (120, 162), (120, 163), (120, 164), (120, 165), (120, 166), (120, 167), (120, 168), (120, 170), (121, 148), (121, 153), (121, 154), (121, 155), (121, 156), (121, 157), (121, 158), (121, 159), (121, 160), (121, 161), (121, 162), (121, 163), (121, 164), (121, 165), (121, 170), (122, 150), (122, 156), (122, 157), (122, 158), (122, 159), (122, 160), (122, 161), (122, 162), (122, 163), (122, 166), (122, 167), (123, 153), (123, 155), (123, 156), (124, 156), (124, 157), (124, 158), (124, 159), (124, 160), (124, 161), (124, 163), ) coordinates_5FCC60 = ((125, 153), (126, 152), (126, 154), (126, 155), (126, 156), (126, 157), (126, 158), (126, 159), (126, 160), (126, 161), (126, 163), (127, 150), (127, 164), (128, 149), (128, 152), (128, 153), (128, 154), (128, 155), (128, 156), (128, 157), (128, 158), (128, 159), (128, 160), (128, 161), (128, 162), (128, 165), (128, 166), (128, 167), (129, 147), (129, 150), (129, 151), (129, 152), (129, 153), (129, 154), (129, 155), (129, 156), (129, 157), (129, 158), (129, 159), (129, 160), (129, 161), (129, 162), (129, 163), (129, 164), (129, 169), (130, 145), (130, 149), (130, 150), (130, 151), (130, 152), (130, 153), (130, 154), (130, 155), (130, 156), (130, 157), (130, 158), (130, 159), (130, 160), (130, 161), (130, 162), (130, 163), (130, 164), (130, 165), (130, 166), (130, 167), (130, 169), (131, 144), (131, 147), (131, 148), (131, 149), (131, 150), (131, 151), (131, 152), (131, 153), (131, 154), (131, 155), (131, 156), (131, 157), (131, 158), (131, 159), (131, 160), (131, 161), (131, 162), (131, 163), (131, 164), (131, 165), (131, 166), (131, 167), (131, 168), (131, 170), (132, 144), (132, 146), (132, 147), (132, 148), (132, 149), (132, 150), (132, 151), (132, 152), (132, 153), (132, 154), (132, 155), (132, 156), (132, 157), (132, 158), (132, 159), (132, 160), (132, 161), (132, 162), (132, 163), (132, 164), (132, 165), (132, 166), (132, 167), (132, 168), (132, 170), (133, 144), (133, 146), (133, 147), (133, 148), (133, 149), (133, 150), (133, 151), (133, 152), (133, 153), (133, 154), (133, 155), (133, 156), (133, 157), (133, 158), (133, 159), (133, 160), (133, 161), (133, 162), (133, 163), (133, 164), (133, 165), (133, 166), (133, 167), (133, 168), (133, 169), (133, 171), (134, 144), (134, 146), (134, 147), (134, 148), (134, 149), (134, 150), (134, 151), (134, 152), (134, 153), (134, 154), (134, 155), (134, 156), (134, 157), (134, 158), (134, 159), (134, 160), (134, 161), (134, 162), (134, 163), (134, 164), (134, 165), (134, 166), (134, 167), (134, 168), (134, 169), (134, 171), (135, 144), (135, 146), (135, 147), (135, 148), (135, 149), (135, 150), (135, 151), (135, 152), (135, 153), (135, 154), (135, 155), (135, 156), (135, 157), (135, 158), (135, 159), (135, 160), (135, 161), (135, 162), (135, 163), (135, 164), (135, 165), (135, 166), (135, 167), (135, 168), (135, 169), (135, 171), (136, 144), (136, 146), (136, 147), (136, 148), (136, 149), (136, 150), (136, 151), (136, 152), (136, 153), (136, 154), (136, 155), (136, 156), (136, 157), (136, 158), (136, 159), (136, 160), (136, 161), (136, 162), (136, 163), (136, 164), (136, 165), (136, 166), (136, 167), (136, 168), (136, 169), (136, 171), (137, 145), (137, 147), (137, 148), (137, 149), (137, 150), (137, 151), (137, 152), (137, 153), (137, 154), (137, 155), (137, 156), (137, 157), (137, 158), (137, 159), (137, 160), (137, 161), (137, 162), (137, 163), (137, 164), (137, 165), (137, 166), (137, 167), (137, 168), (137, 169), (137, 171), (138, 145), (138, 147), (138, 148), (138, 149), (138, 150), (138, 151), (138, 152), (138, 153), (138, 154), (138, 155), (138, 156), (138, 157), (138, 158), (138, 159), (138, 160), (138, 161), (138, 162), (138, 163), (138, 164), (138, 165), (138, 166), (138, 167), (138, 168), (138, 169), (138, 171), (139, 145), (139, 147), (139, 148), (139, 149), (139, 150), (139, 151), (139, 152), (139, 153), (139, 154), (139, 155), (139, 156), (139, 157), (139, 158), (139, 159), (139, 160), (139, 161), (139, 162), (139, 163), (139, 164), (139, 165), (139, 166), (139, 167), (139, 168), (139, 169), (139, 171), (140, 145), (140, 147), (140, 148), (140, 149), (140, 150), (140, 151), (140, 152), (140, 153), (140, 154), (140, 155), (140, 156), (140, 157), (140, 158), (140, 159), (140, 160), (140, 161), (140, 162), (140, 163), (140, 164), (140, 165), (140, 166), (140, 167), (140, 168), (140, 169), (140, 170), (140, 172), (141, 145), (141, 147), (141, 148), (141, 149), (141, 150), (141, 151), (141, 152), (141, 153), (141, 154), (141, 155), (141, 156), (141, 157), (141, 158), (141, 159), (141, 160), (141, 161), (141, 162), (141, 163), (141, 164), (141, 165), (141, 166), (141, 167), (141, 168), (141, 169), (141, 170), (141, 172), (142, 145), (142, 147), (142, 148), (142, 149), (142, 150), (142, 151), (142, 152), (142, 153), (142, 154), (142, 155), (142, 156), (142, 157), (142, 158), (142, 159), (142, 160), (142, 161), (142, 162), (142, 163), (142, 164), (142, 165), (142, 166), (142, 167), (142, 168), (142, 169), (142, 170), (142, 172), (143, 146), (143, 148), (143, 149), (143, 150), (143, 151), (143, 152), (143, 153), (143, 154), (143, 155), (143, 156), (143, 157), (143, 158), (143, 159), (143, 160), (143, 161), (143, 162), (143, 163), (143, 164), (143, 165), (143, 166), (143, 167), (143, 168), (143, 169), (143, 170), (143, 172), (144, 146), (144, 148), (144, 149), (144, 150), (144, 151), (144, 152), (144, 153), (144, 154), (144, 155), (144, 156), (144, 157), (144, 158), (144, 159), (144, 160), (144, 161), (144, 162), (144, 163), (144, 164), (144, 165), (144, 166), (144, 167), (144, 168), (144, 169), (144, 170), (144, 172), (145, 146), (145, 148), (145, 149), (145, 150), (145, 151), (145, 152), (145, 153), (145, 154), (145, 155), (145, 156), (145, 157), (145, 158), (145, 159), (145, 160), (145, 161), (145, 162), (145, 163), (145, 164), (145, 165), (145, 166), (145, 167), (145, 168), (145, 169), (145, 170), (145, 172), (146, 146), (146, 148), (146, 149), (146, 150), (146, 151), (146, 152), (146, 153), (146, 154), (146, 155), (146, 156), (146, 157), (146, 158), (146, 159), (146, 160), (146, 161), (146, 162), (146, 163), (146, 164), (146, 165), (146, 166), (146, 167), (146, 168), (146, 169), (146, 170), (146, 172), (147, 146), (147, 148), (147, 149), (147, 150), (147, 151), (147, 152), (147, 153), (147, 154), (147, 155), (147, 156), (147, 157), (147, 158), (147, 159), (147, 160), (147, 161), (147, 162), (147, 163), (147, 164), (147, 165), (147, 166), (147, 167), (147, 168), (147, 169), (147, 170), (147, 172), (148, 146), (148, 148), (148, 149), (148, 150), (148, 151), (148, 152), (148, 153), (148, 154), (148, 155), (148, 156), (148, 157), (148, 158), (148, 159), (148, 160), (148, 161), (148, 162), (148, 163), (148, 164), (148, 165), (148, 166), (148, 167), (148, 168), (148, 169), (148, 170), (148, 172), (149, 146), (149, 148), (149, 149), (149, 150), (149, 151), (149, 152), (149, 153), (149, 154), (149, 155), (149, 156), (149, 157), (149, 158), (149, 159), (149, 160), (149, 161), (149, 162), (149, 163), (149, 164), (149, 165), (149, 166), (149, 167), (149, 168), (149, 169), (149, 171), (150, 146), (150, 148), (150, 149), (150, 150), (150, 151), (150, 152), (150, 153), (150, 154), (150, 155), (150, 156), (150, 157), (150, 158), (150, 159), (150, 160), (150, 161), (150, 162), (150, 163), (150, 164), (150, 165), (150, 166), (150, 167), (150, 168), (150, 170), (151, 146), (151, 148), (151, 149), (151, 150), (151, 151), (151, 152), (151, 153), (151, 154), (151, 155), (151, 156), (151, 157), (151, 158), (151, 159), (151, 160), (151, 161), (151, 162), (151, 163), (151, 164), (151, 165), (151, 166), (151, 167), (151, 169), (152, 146), (152, 148), (152, 149), (152, 150), (152, 151), (152, 152), (152, 153), (152, 154), (152, 155), (152, 156), (152, 157), (152, 158), (152, 159), (152, 160), (152, 161), (152, 162), (152, 163), (152, 164), (152, 165), (152, 166), (152, 168), (153, 146), (153, 148), (153, 149), (153, 150), (153, 151), (153, 152), (153, 153), (153, 154), (153, 155), (153, 156), (153, 157), (153, 158), (153, 159), (153, 160), (153, 161), (153, 162), (153, 163), (153, 164), (153, 165), (153, 167), (154, 148), (154, 150), (154, 151), (154, 152), (154, 153), (154, 154), (154, 155), (154, 156), (154, 157), (154, 158), (154, 159), (154, 160), (154, 161), (154, 162), (154, 163), (154, 164), (154, 165), (154, 167), (155, 148), (155, 150), (155, 151), (155, 152), (155, 153), (155, 154), (155, 155), (155, 156), (155, 157), (155, 158), (155, 159), (155, 160), (155, 161), (155, 162), (155, 163), (155, 164), (155, 165), (155, 167), (156, 148), (156, 150), (156, 151), (156, 152), (156, 153), (156, 154), (156, 155), (156, 156), (156, 157), (156, 158), (156, 159), (156, 160), (156, 161), (156, 162), (156, 163), (156, 164), (156, 165), (156, 167), (157, 148), (157, 150), (157, 151), (157, 152), (157, 153), (157, 154), (157, 155), (157, 156), (157, 157), (157, 158), (157, 159), (157, 160), (157, 161), (157, 162), (157, 163), (157, 164), (157, 165), (157, 167), (158, 150), (158, 151), (158, 152), (158, 153), (158, 154), (158, 155), (158, 156), (158, 157), (158, 158), (158, 159), (158, 160), (158, 161), (158, 162), (158, 163), (158, 164), (158, 165), (158, 167), (159, 148), (159, 151), (159, 152), (159, 153), (159, 154), (159, 155), (159, 156), (159, 157), (159, 158), (159, 159), (159, 160), (159, 161), (159, 162), (159, 163), (159, 164), (159, 166), (160, 149), (160, 152), (160, 153), (160, 154), (160, 155), (160, 156), (160, 157), (160, 158), (160, 159), (160, 160), (160, 161), (160, 162), (160, 163), (160, 165), (161, 151), (161, 153), (161, 154), (161, 155), (161, 156), (161, 159), (161, 160), (161, 161), (161, 164), (162, 152), (162, 154), (162, 155), (162, 158), (162, 163), (163, 153), (163, 156), (163, 159), (163, 161), (164, 155), (165, 154), ) coordinates_F4DEB3 = ((129, 79), (130, 79), (131, 79), (131, 82), (131, 85), (132, 80), (132, 83), (132, 85), (133, 80), (133, 83), (133, 84), (133, 86), (133, 94), (134, 81), (134, 82), (134, 86), (134, 87), (134, 97), (135, 87), (135, 88), (135, 94), (135, 97), (136, 94), (136, 97), (137, 88), (137, 89), (137, 94), (137, 97), (138, 87), (138, 89), (138, 94), (138, 97), (139, 86), (139, 88), (139, 95), (139, 97), (140, 84), (140, 95), (141, 84), (141, 96), (142, 81), (142, 84), (143, 81), (143, 84), (144, 81), (144, 83), (144, 84), (144, 85), (144, 88), (144, 90), (144, 91), (144, 92), (145, 82), (145, 87), (145, 88), (145, 89), (145, 91), (146, 83), (146, 85), (147, 85), ) coordinates_26408B = ((123, 90), (123, 92), (123, 93), (123, 94), (123, 95), (123, 96), (123, 97), (123, 98), (123, 99), (124, 88), (124, 99), (124, 100), (124, 101), (124, 102), (124, 103), (124, 104), (124, 105), (124, 107), (125, 87), (125, 90), (125, 91), (125, 93), (125, 94), (125, 95), (125, 96), (125, 97), (125, 98), (125, 99), (125, 107), (126, 86), (126, 88), (126, 89), (126, 90), (126, 91), (126, 94), (126, 95), (126, 96), (126, 97), (126, 98), (126, 99), (126, 100), (126, 101), (126, 102), (126, 103), (126, 104), (126, 105), (126, 107), (127, 80), (127, 84), (127, 87), (127, 88), (127, 89), (127, 91), (127, 95), (127, 97), (127, 98), (127, 99), (127, 100), (127, 101), (127, 102), (127, 103), (127, 104), (127, 106), (128, 80), (128, 82), (128, 90), (128, 95), (128, 97), (128, 98), (128, 99), (128, 100), (128, 101), (128, 106), (129, 81), (129, 83), (129, 84), (129, 85), (129, 86), (129, 87), (129, 88), (129, 90), (129, 94), (129, 103), (129, 105), (130, 94), (130, 96), (130, 97), (130, 98), (130, 99), (130, 100), (130, 101), (131, 94), ) coordinates_F5DEB3 = ((94, 106), (95, 104), (96, 103), (97, 102), (99, 100), (100, 82), (100, 84), (100, 99), (101, 81), (101, 85), (101, 96), (101, 98), (102, 81), (102, 83), (102, 85), (102, 90), (102, 92), (102, 93), (102, 94), (102, 95), (102, 97), (103, 81), (103, 83), (103, 85), (103, 89), (104, 80), (104, 82), (104, 83), (104, 84), (104, 86), (104, 89), (104, 91), (105, 80), (105, 82), (105, 85), (105, 90), (106, 80), (106, 82), (106, 84), (106, 86), (106, 90), (107, 79), (107, 81), (107, 82), (107, 87), (107, 88), (107, 90), (108, 79), (108, 82), (108, 86), (108, 88), (108, 89), (108, 91), (109, 79), (109, 82), (109, 87), (109, 89), (109, 91), (110, 78), (110, 80), (110, 82), (110, 88), (110, 91), (111, 78), (111, 80), (111, 82), (111, 89), (111, 91), (112, 78), (112, 81), (112, 91), (113, 78), (113, 80), (113, 91), (114, 79), (114, 91), ) coordinates_016400 = ((123, 130), (123, 133), (124, 130), (124, 132), (124, 134), (125, 134), (125, 136), (126, 134), (126, 137), (126, 139), (127, 133), (127, 135), (127, 136), (128, 133), (128, 135), (128, 136), (128, 137), (128, 138), (128, 140), (129, 133), (129, 135), (129, 136), (129, 137), (129, 138), (129, 140), (130, 133), (130, 135), (130, 136), (130, 137), (130, 139), (130, 141), (131, 133), (131, 135), (131, 136), (131, 139), (131, 140), (131, 142), (132, 133), (132, 135), (132, 137), (132, 140), (132, 142), (133, 133), (133, 136), (133, 140), (133, 142), (134, 133), (134, 136), (134, 140), (134, 142), (135, 132), (135, 135), (135, 140), (135, 142), (136, 131), (136, 134), (136, 135), (136, 139), (136, 142), (137, 130), (137, 133), (137, 138), (137, 140), (137, 142), (138, 130), (138, 131), (138, 137), (138, 139), (138, 140), (138, 141), (138, 142), (138, 143), (139, 136), (139, 138), (139, 139), (139, 140), (139, 141), (139, 143), (140, 136), (140, 141), (140, 143), (141, 136), (141, 138), (141, 139), (141, 140), (141, 141), (141, 143), (142, 136), (142, 137), (142, 141), (142, 143), (143, 141), (143, 143), (144, 140), (144, 143), (145, 139), (145, 144), (146, 137), (146, 139), (146, 140), (146, 141), (146, 142), (146, 144), ) coordinates_CC5B45 = ((146, 93), (147, 87), (147, 89), (147, 90), (147, 91), (147, 95), (147, 97), (148, 87), (148, 93), (149, 87), (149, 89), (149, 90), (149, 91), (149, 94), (149, 97), (150, 87), (150, 89), (150, 91), (150, 96), (151, 87), (151, 89), (151, 90), (151, 92), (152, 87), (152, 93), (153, 88), (153, 90), (153, 91), (153, 93), (154, 94), (155, 93), (155, 95), (156, 93), (156, 96), (157, 94), (157, 96), (158, 95), ) coordinates_27408B = ((104, 102), (104, 103), (105, 100), (105, 102), (106, 99), (106, 101), (107, 97), (107, 101), (108, 99), (108, 101), (109, 96), (109, 98), (109, 99), (109, 101), (110, 95), (110, 97), (110, 98), (110, 99), (110, 101), (111, 95), (111, 97), (111, 98), (111, 99), (111, 100), (111, 102), (112, 84), (112, 95), (112, 100), (112, 102), (113, 83), (113, 85), (113, 96), (113, 98), (113, 99), (113, 100), (113, 102), (114, 82), (114, 84), (114, 86), (114, 96), (114, 100), (114, 101), (115, 81), (115, 86), (115, 100), (115, 101), (116, 84), (116, 87), (116, 100), (117, 85), (117, 88), (117, 100), (118, 86), (118, 88), (118, 100), (119, 87), (119, 93), (119, 94), (119, 96), (119, 100), (120, 88), (120, 91), (120, 98), (120, 100), (121, 92), (121, 93), (121, 94), (121, 95), (121, 96), (121, 97), (121, 98), (121, 99), (121, 101), (122, 101), ) coordinates_006400 = ((106, 135), (106, 140), (107, 135), (107, 136), (107, 140), (107, 142), (108, 128), (108, 129), (108, 135), (108, 136), (108, 140), (108, 142), (109, 127), (109, 130), (109, 135), (109, 136), (109, 140), (109, 141), (110, 127), (110, 130), (110, 135), (110, 141), (111, 127), (111, 130), (111, 135), (111, 139), (111, 141), (112, 127), (112, 128), (112, 131), (112, 135), (112, 137), (112, 139), (112, 141), (113, 128), (113, 131), (113, 135), (113, 137), (113, 138), (113, 139), (113, 141), (114, 128), (114, 131), (114, 136), (114, 138), (114, 141), (115, 128), (115, 130), (115, 132), (115, 136), (116, 128), (116, 130), (116, 131), (116, 132), (116, 137), (116, 139), (117, 127), (117, 129), (117, 130), (117, 131), (117, 132), (117, 133), (117, 136), (117, 138), (118, 125), (118, 128), (118, 129), (118, 130), (118, 131), (118, 132), (118, 135), (118, 137), (119, 125), (119, 127), (119, 128), (119, 129), (119, 130), (119, 131), (119, 132), (119, 136), (120, 125), (120, 133), (120, 135), (121, 119), (121, 121), (121, 124), (121, 125), (121, 126), (121, 127), (121, 128), (121, 129), (121, 130), (121, 131), (121, 132), ) coordinates_CD5B45 = ((75, 105), (75, 106), (76, 104), (76, 106), (77, 103), (77, 106), (78, 102), (78, 104), (78, 106), (79, 102), (79, 104), (79, 106), (80, 101), (80, 103), (80, 104), (80, 106), (81, 100), (81, 102), (81, 103), (81, 104), (81, 106), (82, 98), (82, 101), (82, 102), (82, 103), (82, 104), (82, 106), (83, 97), (83, 100), (83, 106), (84, 96), (84, 99), (84, 101), (84, 102), (84, 103), (84, 104), (84, 106), (85, 95), (85, 97), (85, 99), (85, 106), (86, 94), (86, 96), (86, 97), (86, 99), (87, 90), (87, 92), (87, 93), (87, 95), (87, 96), (87, 97), (87, 99), (88, 89), (88, 94), (88, 95), (88, 96), (88, 97), (88, 99), (89, 91), (89, 92), (89, 93), (89, 94), (89, 95), (89, 96), (89, 98), (89, 105), (90, 88), (90, 90), (90, 91), (90, 92), (90, 93), (90, 94), (90, 95), (90, 96), (90, 98), (90, 105), (91, 87), (91, 89), (91, 90), (91, 91), (91, 92), (91, 93), (91, 94), (91, 95), (91, 98), (91, 103), (91, 105), (92, 86), (92, 88), (92, 89), (92, 90), (92, 91), (92, 92), (92, 93), (92, 94), (92, 97), (92, 102), (92, 106), (93, 86), (93, 88), (93, 89), (93, 90), (93, 91), (93, 92), (93, 95), (93, 101), (93, 104), (94, 85), (94, 87), (94, 88), (94, 89), (94, 90), (94, 91), (94, 94), (94, 100), (94, 103), (95, 85), (95, 87), (95, 88), (95, 89), (95, 90), (95, 92), (95, 99), (95, 102), (96, 85), (96, 87), (96, 88), (96, 89), (96, 91), (96, 98), (96, 101), (97, 85), (97, 87), (97, 88), (97, 89), (97, 90), (97, 91), (97, 97), (97, 100), (98, 85), (98, 88), (98, 89), (98, 90), (98, 91), (98, 92), (98, 93), (98, 94), (98, 95), (98, 99), (99, 86), (99, 97), (100, 88), (100, 90), (100, 91), (100, 92), (100, 93), (100, 94), ) coordinates_6395ED = ((124, 125), (124, 128), (125, 125), (125, 128), (126, 124), (126, 126), (126, 128), (127, 124), (127, 126), (127, 127), (127, 129), (128, 124), (128, 126), (128, 127), (128, 129), (129, 124), (129, 126), (129, 127), (129, 129), (130, 124), (130, 126), (130, 127), (130, 129), (131, 124), (131, 126), (131, 128), (132, 124), (132, 126), (132, 128), (133, 124), (133, 127), (134, 125), (134, 127), (135, 125), (136, 125), (136, 126), ) coordinates_00FFFE = ((148, 138), (148, 140), (148, 141), (148, 142), (148, 144), (149, 144), (150, 139), (150, 141), (150, 142), (150, 144), (151, 139), (151, 141), (151, 142), (151, 144), (152, 138), (152, 142), (152, 144), (153, 137), (153, 139), (153, 140), (153, 141), (153, 144), (154, 142), (154, 144), (155, 143), ) coordinates_F98072 = ((123, 124), (124, 109), (124, 111), (124, 112), (124, 115), (124, 116), (124, 117), (124, 118), (124, 119), (124, 120), (124, 121), (124, 123), (125, 109), (125, 110), (125, 116), (125, 122), (126, 109), (126, 110), (126, 117), (126, 121), (127, 109), (127, 110), (127, 118), (128, 108), (128, 110), (128, 111), (129, 108), (129, 110), (129, 114), (130, 110), (130, 111), (130, 112), (130, 115), (131, 103), (131, 105), (131, 108), (131, 111), (131, 112), (131, 113), (131, 115), (132, 102), (132, 106), (132, 110), (132, 112), (132, 113), (132, 114), (132, 116), (133, 102), (133, 105), (133, 111), (133, 113), (133, 114), (133, 116), (134, 102), (134, 104), (134, 112), (134, 114), (134, 115), (134, 117), (135, 112), (135, 115), (135, 117), (136, 113), (136, 117), (137, 114), (137, 117), ) coordinates_97FB98 = ((154, 129), (155, 128), (155, 129), (155, 137), (155, 140), (156, 128), (156, 129), (156, 137), (156, 142), (157, 127), (157, 129), (157, 138), (157, 140), (157, 143), (158, 126), (158, 128), (158, 138), (158, 140), (158, 142), (159, 128), (159, 134), (159, 136), (159, 137), (159, 138), (159, 139), (159, 140), (159, 142), (160, 125), (160, 127), (160, 132), (160, 138), (160, 139), (160, 140), (160, 142), (161, 121), (161, 125), (161, 127), (161, 132), (161, 134), (161, 135), (161, 136), (161, 137), (161, 138), (161, 139), (161, 140), (161, 142), (162, 121), (162, 125), (162, 126), (162, 132), (162, 134), (162, 135), (162, 136), (162, 137), (162, 138), (162, 139), (162, 140), (162, 142), (163, 125), (163, 126), (163, 131), (163, 133), (163, 134), (163, 135), (163, 136), (163, 137), (163, 138), (163, 139), (163, 140), (163, 142), (164, 120), (164, 124), (164, 126), (164, 131), (164, 133), (164, 135), (164, 136), (164, 137), (164, 138), (164, 139), (164, 141), (165, 120), (165, 124), (165, 125), (165, 130), (165, 132), (165, 136), (165, 137), (165, 138), (165, 139), (165, 141), (166, 120), (166, 122), (166, 125), (166, 130), (166, 132), (166, 137), (166, 138), (166, 139), (166, 141), (167, 119), (167, 121), (167, 124), (167, 125), (167, 129), (167, 132), (167, 136), (167, 141), (168, 119), (168, 121), (168, 122), (168, 123), (168, 124), (168, 125), (168, 126), (168, 127), (168, 132), (168, 137), (168, 140), (169, 119), (169, 121), (169, 122), (169, 123), (169, 124), (169, 125), (169, 126), (169, 131), (170, 119), (170, 127), (170, 129), (171, 120), (171, 122), (171, 123), (171, 124), (171, 125), (171, 126), ) coordinates_323287 = ((149, 100), (149, 106), (150, 102), (150, 103), (150, 104), (150, 107), (151, 98), (151, 100), (151, 101), (151, 104), (151, 109), (152, 107), (152, 110), (153, 107), (153, 109), (153, 112), (153, 113), (153, 128), (154, 100), (154, 101), (154, 108), (154, 110), (154, 115), (155, 98), (155, 100), (155, 102), (155, 108), (155, 110), (155, 111), (155, 112), (155, 114), (156, 98), (156, 100), (156, 102), (156, 108), (156, 110), (156, 111), (156, 113), (157, 98), (157, 100), (157, 102), (157, 108), (157, 112), (158, 98), (158, 100), (158, 102), (158, 108), (158, 111), (159, 98), (159, 102), (160, 100), (160, 102), (160, 119), (161, 101), (161, 103), (161, 119), (162, 101), (162, 103), (162, 118), (162, 119), (163, 102), (163, 105), (163, 106), (163, 107), (163, 108), (163, 110), (163, 117), (164, 103), (164, 111), (164, 117), (164, 118), (165, 103), (165, 105), (165, 106), (165, 107), (165, 108), (165, 109), (165, 112), (165, 116), (165, 118), (166, 104), (166, 106), (166, 107), (166, 108), (166, 109), (166, 110), (166, 111), (166, 113), (166, 114), (166, 117), (167, 104), (167, 107), (167, 108), (167, 109), (167, 110), (167, 111), (167, 112), (167, 117), (168, 105), (168, 110), (168, 111), (168, 115), (168, 117), (169, 107), (169, 109), (169, 112), (169, 113), (169, 114), (170, 110), (170, 111), ) coordinates_6495ED = ((108, 120), (108, 122), (109, 118), (109, 122), (110, 117), (110, 121), (111, 116), (111, 119), (111, 120), (111, 121), (112, 116), (112, 118), (112, 120), (113, 115), (113, 117), (113, 118), (113, 120), (114, 114), (114, 119), (115, 113), (115, 114), (115, 119), (116, 113), (116, 114), (116, 117), (116, 119), (117, 114), (117, 117), (117, 119), (118, 114), (118, 117), (118, 119), (119, 115), (119, 118), (120, 115), (120, 117), (121, 115), (121, 117), ) coordinates_01FFFF = ((92, 140), (93, 140), (93, 142), (93, 143), (93, 145), (94, 141), (94, 145), (95, 142), (95, 145), (96, 142), (96, 145), (97, 141), (97, 143), (97, 145), (98, 137), (98, 139), (98, 140), (98, 142), (98, 143), (98, 145), (99, 136), (99, 143), (99, 145), (100, 135), (100, 137), (100, 140), (100, 141), (100, 142), (100, 144), (101, 135), (101, 138), (101, 144), (102, 135), (102, 137), (102, 143), (103, 135), (103, 136), (103, 143), (104, 135), (104, 142), (104, 143), (105, 143), ) coordinates_FA8072 = ((102, 106), (102, 108), (103, 106), (103, 108), (104, 105), (104, 108), (105, 104), (105, 106), (105, 108), (106, 104), (106, 106), (106, 108), (107, 103), (107, 105), (107, 106), (107, 108), (108, 103), (108, 105), (108, 106), (108, 108), (109, 103), (109, 105), (109, 106), (109, 108), (109, 111), (110, 104), (110, 106), (110, 107), (110, 108), (110, 109), (110, 112), (111, 104), (111, 106), (111, 107), (111, 108), (111, 111), (112, 104), (112, 106), (112, 110), (113, 104), (113, 107), (113, 108), (114, 104), (114, 106), (115, 103), (115, 105), (116, 102), (116, 104), (117, 102), (117, 104), (118, 102), (118, 104), (119, 102), (119, 104), (119, 110), (120, 103), (120, 105), (120, 109), (120, 113), (121, 103), (121, 105), (121, 109), (121, 110), (121, 111), (121, 113), (122, 103), ) coordinates_98FB98 = ((77, 135), (77, 137), (77, 138), (77, 139), (77, 140), (78, 136), (78, 141), (78, 143), (79, 136), (79, 138), (79, 139), (79, 145), (80, 136), (80, 138), (80, 139), (80, 140), (80, 141), (80, 142), (80, 143), (80, 147), (81, 136), (81, 139), (81, 143), (81, 145), (81, 148), (82, 136), (82, 139), (82, 143), (82, 145), (82, 146), (82, 148), (83, 136), (83, 138), (83, 139), (83, 144), (83, 145), (83, 146), (83, 147), (83, 149), (84, 136), (84, 138), (84, 139), (84, 141), (84, 142), (84, 144), (84, 145), (84, 146), (84, 148), (85, 135), (85, 137), (85, 139), (85, 144), (85, 146), (85, 148), (86, 135), (86, 137), (86, 139), (86, 144), (86, 146), (86, 148), (87, 135), (87, 137), (87, 139), (87, 144), (87, 147), (88, 135), (88, 139), (88, 144), (88, 147), (89, 135), (89, 137), (89, 141), (89, 143), (89, 147), (90, 135), (90, 136), (90, 141), (90, 143), (90, 144), (90, 145), (90, 147), ) coordinates_FEC0CB = ((132, 100), (133, 99), (133, 100), (134, 99), (135, 99), (136, 99), (137, 99), (137, 100), (138, 99), (139, 99), (139, 101), (140, 99), (141, 101), (141, 104), (141, 109), (141, 110), (142, 99), (142, 102), (142, 105), (142, 106), (142, 107), (142, 108), (142, 112), (143, 100), (143, 103), (143, 104), (143, 109), (143, 110), (143, 112), (144, 102), (144, 104), (144, 105), (144, 106), (144, 107), (144, 108), (144, 109), (144, 111), (145, 103), (145, 105), (145, 106), (145, 107), (145, 108), (145, 109), (145, 111), (146, 103), (146, 104), (146, 107), (146, 108), (146, 110), (147, 99), (147, 101), (147, 105), (147, 106), (147, 110), (148, 102), (148, 104), (148, 107), (148, 110), (149, 109), (149, 111), (150, 110), (150, 112), (150, 125), (151, 112), (151, 114), (151, 126), ) coordinates_333287 = ((73, 119), (73, 121), (73, 122), (73, 123), (73, 124), (73, 126), (74, 110), (74, 112), (74, 114), (74, 118), (74, 127), (74, 128), (75, 108), (75, 116), (75, 117), (75, 119), (75, 120), (75, 121), (75, 122), (75, 123), (75, 124), (75, 125), (75, 126), (75, 129), (76, 108), (76, 110), (76, 111), (76, 114), (76, 118), (76, 119), (76, 120), (76, 121), (76, 122), (76, 123), (76, 124), (76, 125), (76, 126), (76, 127), (76, 128), (76, 131), (77, 108), (77, 110), (77, 111), (77, 112), (77, 113), (77, 116), (77, 117), (77, 118), (77, 119), (77, 120), (77, 121), (77, 122), (77, 123), (77, 124), (77, 125), (77, 126), (77, 127), (77, 133), (78, 108), (78, 111), (78, 117), (78, 118), (78, 119), (78, 120), (78, 121), (78, 122), (78, 123), (78, 124), (78, 125), (78, 126), (78, 127), (78, 129), (78, 131), (79, 108), (79, 111), (79, 117), (79, 118), (79, 119), (79, 120), (79, 121), (79, 122), (79, 123), (79, 124), (79, 125), (79, 127), (79, 131), (79, 134), (80, 108), (80, 111), (80, 116), (80, 118), (80, 119), (80, 120), (80, 121), (80, 122), (80, 123), (80, 124), (80, 125), (80, 126), (80, 127), (80, 131), (80, 134), (81, 108), (81, 111), (81, 117), (81, 119), (81, 120), (81, 121), (81, 122), (81, 123), (81, 124), (81, 126), (81, 131), (81, 134), (82, 108), (82, 110), (82, 118), (82, 120), (82, 121), (82, 122), (82, 123), (82, 124), (82, 126), (82, 131), (82, 132), (82, 134), (83, 108), (83, 109), (83, 118), (83, 120), (83, 121), (83, 122), (83, 123), (83, 124), (83, 126), (83, 131), (83, 134), (84, 119), (84, 121), (84, 122), (84, 123), (84, 124), (84, 126), (84, 131), (84, 133), (85, 120), (85, 122), (85, 123), (85, 124), (85, 126), (85, 131), (85, 133), (86, 121), (86, 125), (86, 131), (86, 133), (87, 122), (87, 124), (87, 131), (87, 133), (88, 112), (88, 114), (88, 131), (88, 133), (89, 107), (89, 112), (89, 115), (89, 132), (89, 133), (90, 107), (90, 108), (90, 112), (90, 113), (90, 114), (90, 133), (91, 109), (91, 112), (91, 113), (91, 114), (91, 115), (91, 118), (92, 108), (92, 110), (92, 113), (92, 114), (92, 115), (92, 116), (92, 118), (93, 110), (93, 111), (93, 112), (93, 116), (93, 118), (94, 114), (94, 115), (94, 118), (95, 118), ) coordinates_FFC0CB = ((94, 108), (95, 111), (96, 112), (96, 113), (96, 114), (96, 115), (97, 116), (97, 118), (98, 115), (98, 118), (99, 115), (99, 118), (100, 115), (100, 117), (100, 118), )
coordinates_e0_e1_e1 = ((126, 112), (126, 114), (126, 115), (126, 130), (126, 131), (127, 113), (127, 115), (127, 131), (128, 92), (128, 115), (128, 116), (128, 121), (128, 131), (129, 92), (129, 116), (129, 118), (129, 119), (129, 131), (130, 92), (130, 117), (130, 122), (130, 131), (131, 87), (131, 89), (131, 90), (131, 92), (131, 118), (131, 120), (131, 122), (131, 131), (132, 88), (132, 91), (132, 118), (132, 120), (132, 122), (132, 130), (133, 89), (133, 91), (133, 108), (133, 118), (133, 119), (133, 120), (133, 122), (133, 130), (134, 91), (134, 107), (134, 109), (134, 119), (134, 122), (134, 129), (134, 130), (134, 138), (135, 90), (135, 106), (135, 108), (135, 110), (135, 119), (135, 121), (135, 123), (135, 129), (135, 130), (135, 137), (136, 91), (136, 92), (136, 101), (136, 103), (136, 104), (136, 107), (136, 108), (136, 109), (136, 111), (136, 119), (136, 121), (136, 123), (136, 128), (136, 129), (136, 137), (137, 91), (137, 92), (137, 102), (137, 105), (137, 106), (137, 107), (137, 108), (137, 109), (137, 110), (137, 112), (137, 119), (137, 121), (137, 122), (137, 123), (137, 127), (137, 128), (137, 136), (138, 91), (138, 92), (138, 103), (138, 106), (138, 107), (138, 113), (138, 119), (138, 121), (138, 122), (138, 123), (138, 125), (138, 126), (138, 128), (138, 135), (139, 90), (139, 92), (139, 104), (139, 108), (139, 109), (139, 110), (139, 111), (139, 114), (139, 115), (139, 116), (139, 117), (139, 119), (139, 120), (139, 121), (139, 122), (139, 123), (139, 124), (139, 128), (139, 134), (140, 89), (140, 91), (140, 93), (140, 105), (140, 106), (140, 112), (140, 116), (140, 119), (140, 120), (140, 121), (140, 122), (140, 123), (140, 124), (140, 125), (140, 126), (140, 127), (140, 128), (140, 129), (140, 130), (140, 131), (140, 134), (141, 87), (141, 89), (141, 90), (141, 94), (141, 113), (141, 115), (141, 116), (141, 117), (141, 118), (141, 119), (141, 120), (141, 121), (141, 122), (141, 123), (141, 124), (141, 125), (141, 126), (141, 127), (141, 128), (141, 133), (142, 86), (142, 91), (142, 92), (142, 93), (142, 95), (142, 114), (142, 116), (142, 117), (142, 118), (142, 119), (142, 120), (142, 121), (142, 122), (142, 123), (142, 124), (142, 125), (142, 126), (142, 127), (142, 128), (142, 129), (142, 130), (142, 131), (142, 132), (142, 134), (143, 94), (143, 97), (143, 114), (143, 116), (143, 117), (143, 118), (143, 119), (143, 120), (143, 121), (143, 122), (143, 123), (143, 124), (143, 125), (143, 126), (143, 127), (143, 128), (143, 129), (143, 130), (143, 131), (143, 132), (143, 134), (143, 139), (144, 96), (144, 99), (144, 114), (144, 116), (144, 117), (144, 118), (144, 119), (144, 120), (144, 121), (144, 122), (144, 123), (144, 124), (144, 125), (144, 126), (144, 127), (144, 128), (144, 129), (144, 130), (144, 131), (144, 132), (144, 133), (144, 134), (144, 137), (145, 98), (145, 100), (145, 113), (145, 115), (145, 116), (145, 117), (145, 118), (145, 119), (145, 120), (145, 121), (145, 122), (145, 123), (145, 124), (145, 125), (145, 126), (145, 127), (145, 128), (145, 129), (145, 130), (145, 131), (145, 132), (145, 133), (145, 134), (145, 136), (146, 112), (146, 114), (146, 115), (146, 116), (146, 117), (146, 118), (146, 119), (146, 120), (146, 121), (146, 122), (146, 123), (146, 124), (146, 125), (146, 126), (146, 127), (146, 128), (146, 129), (146, 130), (146, 131), (146, 132), (146, 133), (146, 135), (147, 112), (147, 114), (147, 115), (147, 116), (147, 117), (147, 118), (147, 119), (147, 120), (147, 121), (147, 122), (147, 123), (147, 127), (147, 128), (147, 129), (147, 130), (147, 131), (147, 132), (147, 133), (147, 135), (148, 113), (148, 116), (148, 117), (148, 118), (148, 119), (148, 120), (148, 121), (148, 122), (148, 123), (148, 124), (148, 125), (148, 128), (148, 129), (148, 130), (148, 131), (148, 132), (148, 133), (148, 135), (149, 114), (149, 116), (149, 117), (149, 118), (149, 119), (149, 120), (149, 121), (149, 123), (149, 127), (149, 129), (149, 130), (149, 131), (149, 132), (149, 133), (149, 134), (149, 136), (150, 93), (150, 116), (150, 118), (150, 119), (150, 120), (150, 122), (150, 128), (150, 130), (150, 131), (150, 132), (150, 133), (150, 134), (150, 135), (150, 137), (151, 94), (151, 116), (151, 118), (151, 119), (151, 120), (151, 122), (151, 128), (151, 131), (151, 132), (151, 133), (151, 134), (151, 136), (152, 95), (152, 117), (152, 119), (152, 120), (152, 122), (152, 130), (152, 132), (152, 133), (152, 135), (153, 96), (153, 98), (153, 99), (153, 105), (153, 117), (153, 119), (153, 120), (153, 121), (153, 123), (153, 131), (153, 134), (154, 103), (154, 105), (154, 117), (154, 119), (154, 120), (154, 121), (154, 122), (154, 123), (154, 124), (154, 131), (154, 134), (155, 104), (155, 105), (155, 117), (155, 119), (155, 120), (155, 121), (155, 122), (155, 123), (155, 126), (155, 131), (155, 132), (155, 134), (156, 104), (156, 105), (156, 116), (156, 118), (156, 119), (156, 122), (156, 123), (156, 124), (156, 126), (156, 131), (156, 135), (157, 104), (157, 106), (157, 115), (157, 117), (157, 118), (157, 120), (157, 122), (157, 123), (157, 125), (157, 131), (157, 133), (157, 136), (158, 104), (158, 106), (158, 114), (158, 116), (158, 117), (158, 119), (158, 122), (158, 124), (158, 130), (158, 132), (159, 104), (159, 106), (159, 112), (159, 115), (159, 116), (159, 118), (159, 122), (159, 123), (159, 130), (159, 131), (160, 105), (160, 111), (160, 114), (160, 115), (160, 117), (160, 123), (160, 129), (160, 130), (161, 105), (161, 107), (161, 108), (161, 109), (161, 110), (161, 112), (161, 113), (161, 114), (161, 116), (161, 123), (161, 129), (161, 130), (162, 113), (162, 114), (162, 123), (162, 129), (163, 112), (163, 115), (163, 128), (163, 129), (164, 113), (164, 114), (164, 122), (164, 128), (165, 128), (166, 127)) coordinates_e1_e1_e1 = ((79, 113), (80, 113), (80, 114), (80, 129), (81, 113), (81, 115), (81, 129), (82, 112), (82, 113), (82, 115), (82, 129), (83, 112), (83, 114), (83, 116), (83, 128), (83, 129), (84, 110), (84, 113), (84, 114), (84, 115), (84, 117), (84, 128), (84, 129), (85, 108), (85, 115), (85, 116), (85, 128), (85, 129), (86, 101), (86, 103), (86, 110), (86, 111), (86, 114), (86, 118), (86, 129), (86, 141), (86, 142), (87, 101), (87, 104), (87, 105), (87, 106), (87, 107), (87, 110), (87, 119), (87, 127), (87, 129), (87, 141), (87, 142), (88, 101), (88, 103), (88, 108), (88, 110), (88, 117), (88, 121), (88, 126), (88, 129), (89, 101), (89, 102), (89, 109), (89, 110), (89, 118), (89, 122), (89, 123), (89, 124), (89, 127), (89, 129), (90, 101), (90, 110), (90, 119), (90, 121), (90, 126), (90, 127), (90, 128), (90, 130), (90, 139), (91, 100), (91, 120), (91, 122), (91, 123), (91, 124), (91, 125), (91, 126), (91, 127), (91, 128), (91, 129), (91, 131), (91, 138), (91, 139), (92, 99), (92, 121), (92, 123), (92, 124), (92, 125), (92, 126), (92, 127), (92, 128), (92, 129), (92, 130), (92, 133), (92, 135), (92, 136), (92, 138), (93, 98), (93, 121), (93, 123), (93, 124), (93, 125), (93, 126), (93, 127), (93, 128), (93, 129), (93, 130), (93, 131), (93, 134), (93, 138), (94, 97), (94, 121), (94, 123), (94, 124), (94, 125), (94, 126), (94, 127), (94, 128), (94, 129), (94, 130), (94, 131), (94, 132), (94, 133), (94, 135), (94, 136), (94, 138), (95, 95), (95, 96), (95, 121), (95, 123), (95, 124), (95, 125), (95, 126), (95, 127), (95, 128), (95, 129), (95, 130), (95, 131), (95, 132), (95, 133), (95, 134), (95, 135), (95, 139), (96, 94), (96, 95), (96, 107), (96, 121), (96, 123), (96, 124), (96, 125), (96, 126), (96, 127), (96, 128), (96, 129), (96, 130), (96, 131), (96, 132), (96, 133), (96, 134), (96, 137), (96, 139), (97, 105), (97, 108), (97, 109), (97, 110), (97, 121), (97, 123), (97, 124), (97, 125), (97, 126), (97, 127), (97, 128), (97, 129), (97, 130), (97, 131), (97, 132), (97, 133), (97, 135), (98, 104), (98, 107), (98, 113), (98, 121), (98, 123), (98, 124), (98, 125), (98, 126), (98, 127), (98, 128), (98, 129), (98, 130), (98, 131), (98, 132), (98, 134), (99, 103), (99, 105), (99, 110), (99, 111), (99, 113), (99, 120), (99, 122), (99, 123), (99, 124), (99, 125), (99, 126), (99, 127), (99, 128), (99, 129), (99, 130), (99, 131), (99, 133), (100, 102), (100, 106), (100, 107), (100, 108), (100, 109), (100, 110), (100, 111), (100, 113), (100, 120), (100, 122), (100, 123), (100, 124), (100, 127), (100, 128), (100, 129), (100, 130), (100, 131), (100, 133), (101, 101), (101, 103), (101, 104), (101, 110), (101, 112), (101, 113), (101, 119), (101, 121), (101, 122), (101, 125), (101, 126), (101, 127), (101, 128), (101, 129), (101, 130), (101, 131), (101, 133), (102, 100), (102, 102), (102, 110), (102, 112), (102, 113), (102, 115), (102, 118), (102, 120), (102, 121), (102, 122), (102, 124), (102, 128), (102, 129), (102, 130), (102, 131), (102, 133), (102, 140), (102, 141), (103, 99), (103, 100), (103, 110), (103, 112), (103, 113), (103, 116), (103, 117), (103, 119), (103, 120), (103, 122), (103, 128), (103, 130), (103, 131), (103, 133), (103, 140), (104, 93), (104, 95), (104, 96), (104, 98), (104, 110), (104, 112), (104, 113), (104, 114), (104, 115), (104, 118), (104, 119), (104, 120), (104, 122), (104, 128), (104, 130), (104, 131), (104, 133), (104, 138), (104, 139), (105, 93), (105, 97), (105, 110), (105, 112), (105, 113), (105, 114), (105, 115), (105, 116), (105, 117), (105, 118), (105, 123), (105, 127), (105, 131), (105, 133), (105, 137), (105, 139), (106, 93), (106, 96), (106, 110), (106, 113), (106, 114), (106, 115), (106, 116), (106, 117), (106, 120), (106, 121), (106, 122), (106, 123), (106, 124), (106, 125), (106, 128), (106, 129), (106, 133), (106, 138), (107, 93), (107, 95), (107, 110), (107, 114), (107, 115), (107, 118), (107, 124), (107, 126), (107, 131), (107, 133), (107, 138), (108, 84), (108, 93), (108, 94), (108, 113), (108, 115), (108, 117), (108, 124), (108, 125), (108, 133), (108, 138), (109, 84), (109, 85), (109, 93), (109, 114), (109, 116), (109, 124), (109, 125), (109, 132), (109, 133), (110, 84), (110, 86), (110, 93), (110, 114), (110, 115), (110, 125), (110, 132), (110, 133), (111, 86), (111, 93), (111, 114), (111, 123), (111, 125), (111, 133), (112, 87), (112, 113), (112, 122), (112, 125), (112, 133), (113, 87), (113, 88), (113, 112), (113, 122), (113, 125), (113, 133), (114, 88), (114, 89), (114, 93), (114, 94), (114, 111), (114, 122), (114, 125), (115, 89), (115, 90), (115, 93), (115, 98), (115, 107), (115, 111), (115, 121), (115, 122), (115, 123), (115, 134), (116, 89), (116, 91), (116, 94), (116, 95), (116, 96), (116, 98), (116, 106), (116, 109), (116, 111), (116, 121), (116, 123), (116, 125), (116, 135), (117, 90), (117, 92), (117, 93), (117, 98), (117, 106), (117, 108), (117, 111), (117, 121), (117, 123), (118, 91), (118, 98), (118, 106), (118, 109), (118, 112), (118, 121), (118, 123), (119, 106), (119, 108), (119, 121), (120, 107)) coordinates_781286 = ((103, 126), (104, 125)) coordinates_dcf8_a4 = ((109, 161), (110, 161), (111, 160), (111, 161), (112, 160), (113, 159), (114, 159), (115, 158), (116, 157)) coordinates_dbf8_a4 = ((133, 157), (134, 158), (141, 161), (142, 161), (143, 161), (144, 161)) coordinates_60_cc60 = ((83, 155), (83, 156), (83, 160), (84, 155), (84, 157), (84, 163), (85, 154), (85, 156), (85, 160), (85, 161), (85, 164), (86, 153), (86, 155), (86, 156), (86, 157), (86, 158), (86, 160), (86, 161), (86, 162), (86, 165), (87, 152), (87, 154), (87, 155), (87, 156), (87, 157), (87, 158), (87, 159), (87, 160), (87, 161), (87, 162), (87, 163), (87, 166), (88, 151), (88, 153), (88, 154), (88, 155), (88, 156), (88, 157), (88, 158), (88, 159), (88, 160), (88, 161), (88, 162), (88, 163), (88, 164), (89, 150), (89, 152), (89, 153), (89, 154), (89, 155), (89, 156), (89, 157), (89, 158), (89, 159), (89, 160), (89, 161), (89, 162), (89, 163), (89, 164), (89, 165), (89, 167), (90, 150), (90, 152), (90, 153), (90, 154), (90, 155), (90, 156), (90, 157), (90, 158), (90, 159), (90, 160), (90, 161), (90, 162), (90, 163), (90, 164), (90, 165), (90, 166), (90, 168), (91, 149), (91, 151), (91, 152), (91, 153), (91, 154), (91, 155), (91, 156), (91, 157), (91, 158), (91, 159), (91, 160), (91, 161), (91, 162), (91, 163), (91, 164), (91, 165), (91, 166), (91, 167), (91, 169), (92, 149), (92, 151), (92, 152), (92, 153), (92, 154), (92, 155), (92, 156), (92, 157), (92, 158), (92, 159), (92, 160), (92, 161), (92, 162), (92, 163), (92, 164), (92, 165), (92, 166), (92, 167), (92, 169), (93, 149), (93, 151), (93, 152), (93, 153), (93, 154), (93, 155), (93, 156), (93, 157), (93, 158), (93, 159), (93, 160), (93, 161), (93, 162), (93, 163), (93, 164), (93, 165), (93, 166), (93, 167), (93, 168), (93, 170), (94, 149), (94, 151), (94, 152), (94, 153), (94, 154), (94, 155), (94, 156), (94, 157), (94, 158), (94, 159), (94, 160), (94, 161), (94, 162), (94, 163), (94, 164), (94, 165), (94, 166), (94, 167), (94, 168), (94, 170), (95, 149), (95, 150), (95, 151), (95, 152), (95, 153), (95, 154), (95, 155), (95, 156), (95, 157), (95, 158), (95, 159), (95, 160), (95, 161), (95, 162), (95, 163), (95, 164), (95, 165), (95, 166), (95, 167), (95, 168), (95, 169), (95, 171), (96, 148), (96, 150), (96, 151), (96, 152), (96, 153), (96, 154), (96, 155), (96, 156), (96, 157), (96, 158), (96, 159), (96, 160), (96, 161), (96, 162), (96, 163), (96, 164), (96, 165), (96, 166), (96, 167), (96, 168), (96, 169), (96, 171), (97, 150), (97, 151), (97, 152), (97, 153), (97, 154), (97, 155), (97, 156), (97, 157), (97, 158), (97, 159), (97, 160), (97, 161), (97, 162), (97, 163), (97, 164), (97, 165), (97, 166), (97, 167), (97, 168), (97, 169), (97, 170), (97, 172), (98, 147), (98, 149), (98, 150), (98, 151), (98, 152), (98, 153), (98, 154), (98, 155), (98, 156), (98, 157), (98, 158), (98, 159), (98, 160), (98, 161), (98, 162), (98, 163), (98, 164), (98, 165), (98, 166), (98, 167), (98, 168), (98, 169), (98, 170), (98, 172), (99, 147), (99, 149), (99, 150), (99, 151), (99, 152), (99, 153), (99, 154), (99, 155), (99, 156), (99, 157), (99, 158), (99, 159), (99, 160), (99, 161), (99, 162), (99, 163), (99, 164), (99, 165), (99, 166), (99, 167), (99, 168), (99, 169), (99, 170), (99, 171), (99, 173), (100, 146), (100, 147), (100, 148), (100, 149), (100, 150), (100, 151), (100, 152), (100, 153), (100, 154), (100, 155), (100, 156), (100, 157), (100, 158), (100, 159), (100, 160), (100, 161), (100, 162), (100, 163), (100, 164), (100, 165), (100, 166), (100, 167), (100, 168), (100, 169), (100, 170), (100, 171), (100, 173), (101, 146), (101, 148), (101, 149), (101, 150), (101, 151), (101, 152), (101, 153), (101, 154), (101, 155), (101, 156), (101, 157), (101, 158), (101, 159), (101, 160), (101, 161), (101, 162), (101, 163), (101, 164), (101, 165), (101, 166), (101, 167), (101, 168), (101, 169), (101, 170), (101, 171), (101, 173), (102, 146), (102, 148), (102, 149), (102, 150), (102, 151), (102, 152), (102, 153), (102, 154), (102, 155), (102, 156), (102, 157), (102, 158), (102, 159), (102, 160), (102, 161), (102, 162), (102, 163), (102, 164), (102, 165), (102, 166), (102, 167), (102, 168), (102, 169), (102, 170), (102, 171), (102, 173), (103, 145), (103, 147), (103, 148), (103, 149), (103, 150), (103, 151), (103, 152), (103, 153), (103, 154), (103, 155), (103, 156), (103, 157), (103, 158), (103, 159), (103, 160), (103, 161), (103, 162), (103, 163), (103, 164), (103, 165), (103, 166), (103, 167), (103, 168), (103, 169), (103, 170), (103, 171), (103, 173), (104, 145), (104, 147), (104, 148), (104, 149), (104, 150), (104, 151), (104, 152), (104, 153), (104, 154), (104, 155), (104, 156), (104, 157), (104, 158), (104, 159), (104, 160), (104, 161), (104, 162), (104, 163), (104, 164), (104, 165), (104, 166), (104, 167), (104, 168), (104, 169), (104, 170), (104, 171), (104, 173), (105, 145), (105, 147), (105, 148), (105, 149), (105, 150), (105, 151), (105, 152), (105, 153), (105, 154), (105, 155), (105, 156), (105, 157), (105, 158), (105, 159), (105, 160), (105, 163), (105, 164), (105, 165), (105, 166), (105, 167), (105, 168), (105, 169), (105, 170), (105, 171), (105, 173), (106, 145), (106, 147), (106, 148), (106, 149), (106, 150), (106, 151), (106, 152), (106, 153), (106, 154), (106, 155), (106, 156), (106, 157), (106, 158), (106, 159), (106, 162), (106, 163), (106, 164), (106, 165), (106, 166), (106, 167), (106, 168), (106, 169), (106, 170), (106, 171), (106, 173), (107, 144), (107, 146), (107, 147), (107, 148), (107, 149), (107, 150), (107, 151), (107, 152), (107, 153), (107, 154), (107, 155), (107, 156), (107, 157), (107, 158), (107, 160), (107, 163), (107, 165), (107, 166), (107, 167), (107, 168), (107, 169), (107, 170), (107, 171), (107, 173), (108, 144), (108, 146), (108, 147), (108, 148), (108, 149), (108, 151), (108, 152), (108, 153), (108, 154), (108, 155), (108, 156), (108, 157), (108, 159), (108, 163), (108, 165), (108, 166), (108, 167), (108, 168), (108, 169), (108, 170), (108, 171), (108, 173), (109, 144), (109, 146), (109, 147), (109, 148), (109, 150), (109, 151), (109, 152), (109, 153), (109, 154), (109, 155), (109, 156), (109, 157), (109, 159), (109, 163), (109, 165), (109, 166), (109, 167), (109, 168), (109, 169), (109, 170), (109, 172), (110, 144), (110, 146), (110, 147), (110, 148), (110, 152), (110, 153), (110, 154), (110, 155), (110, 156), (110, 158), (110, 163), (110, 165), (110, 166), (110, 167), (110, 168), (110, 169), (110, 170), (110, 172), (111, 143), (111, 145), (111, 146), (111, 147), (111, 151), (111, 152), (111, 153), (111, 154), (111, 155), (111, 156), (111, 158), (111, 163), (111, 165), (111, 166), (111, 167), (111, 168), (111, 169), (111, 170), (111, 172), (112, 143), (112, 145), (112, 146), (112, 150), (112, 151), (112, 152), (112, 153), (112, 154), (112, 155), (112, 156), (112, 158), (112, 162), (112, 164), (112, 165), (112, 166), (112, 167), (112, 168), (112, 169), (112, 170), (112, 172), (113, 143), (113, 145), (113, 146), (113, 147), (113, 151), (113, 152), (113, 153), (113, 154), (113, 155), (113, 157), (113, 162), (113, 164), (113, 165), (113, 166), (113, 167), (113, 168), (113, 169), (113, 171), (114, 143), (114, 145), (114, 146), (114, 147), (114, 148), (114, 150), (114, 151), (114, 152), (114, 153), (114, 154), (114, 155), (114, 157), (114, 161), (114, 163), (114, 164), (114, 165), (114, 166), (114, 167), (114, 168), (114, 169), (114, 171), (115, 143), (115, 145), (115, 146), (115, 147), (115, 149), (115, 150), (115, 151), (115, 152), (115, 153), (115, 154), (115, 156), (115, 160), (115, 162), (115, 163), (115, 164), (115, 165), (115, 166), (115, 167), (115, 168), (115, 169), (115, 171), (116, 143), (116, 145), (116, 146), (116, 147), (116, 148), (116, 149), (116, 150), (116, 151), (116, 152), (116, 153), (116, 155), (116, 160), (116, 162), (116, 163), (116, 164), (116, 165), (116, 166), (116, 167), (116, 168), (116, 169), (116, 171), (117, 146), (117, 147), (117, 148), (117, 149), (117, 150), (117, 151), (117, 152), (117, 153), (117, 154), (117, 155), (117, 159), (117, 161), (117, 162), (117, 163), (117, 164), (117, 165), (117, 166), (117, 167), (117, 168), (117, 170), (118, 144), (118, 146), (118, 147), (118, 148), (118, 149), (118, 150), (118, 151), (118, 152), (118, 154), (118, 157), (118, 160), (118, 161), (118, 162), (118, 163), (118, 164), (118, 165), (118, 166), (118, 167), (118, 168), (118, 170), (119, 145), (119, 148), (119, 149), (119, 150), (119, 151), (119, 153), (119, 159), (119, 160), (119, 161), (119, 162), (119, 163), (119, 164), (119, 165), (119, 166), (119, 167), (119, 168), (119, 170), (120, 146), (120, 150), (120, 151), (120, 152), (120, 153), (120, 156), (120, 157), (120, 158), (120, 159), (120, 160), (120, 161), (120, 162), (120, 163), (120, 164), (120, 165), (120, 166), (120, 167), (120, 168), (120, 170), (121, 148), (121, 153), (121, 154), (121, 155), (121, 156), (121, 157), (121, 158), (121, 159), (121, 160), (121, 161), (121, 162), (121, 163), (121, 164), (121, 165), (121, 170), (122, 150), (122, 156), (122, 157), (122, 158), (122, 159), (122, 160), (122, 161), (122, 162), (122, 163), (122, 166), (122, 167), (123, 153), (123, 155), (123, 156), (124, 156), (124, 157), (124, 158), (124, 159), (124, 160), (124, 161), (124, 163)) coordinates_5_fcc60 = ((125, 153), (126, 152), (126, 154), (126, 155), (126, 156), (126, 157), (126, 158), (126, 159), (126, 160), (126, 161), (126, 163), (127, 150), (127, 164), (128, 149), (128, 152), (128, 153), (128, 154), (128, 155), (128, 156), (128, 157), (128, 158), (128, 159), (128, 160), (128, 161), (128, 162), (128, 165), (128, 166), (128, 167), (129, 147), (129, 150), (129, 151), (129, 152), (129, 153), (129, 154), (129, 155), (129, 156), (129, 157), (129, 158), (129, 159), (129, 160), (129, 161), (129, 162), (129, 163), (129, 164), (129, 169), (130, 145), (130, 149), (130, 150), (130, 151), (130, 152), (130, 153), (130, 154), (130, 155), (130, 156), (130, 157), (130, 158), (130, 159), (130, 160), (130, 161), (130, 162), (130, 163), (130, 164), (130, 165), (130, 166), (130, 167), (130, 169), (131, 144), (131, 147), (131, 148), (131, 149), (131, 150), (131, 151), (131, 152), (131, 153), (131, 154), (131, 155), (131, 156), (131, 157), (131, 158), (131, 159), (131, 160), (131, 161), (131, 162), (131, 163), (131, 164), (131, 165), (131, 166), (131, 167), (131, 168), (131, 170), (132, 144), (132, 146), (132, 147), (132, 148), (132, 149), (132, 150), (132, 151), (132, 152), (132, 153), (132, 154), (132, 155), (132, 156), (132, 157), (132, 158), (132, 159), (132, 160), (132, 161), (132, 162), (132, 163), (132, 164), (132, 165), (132, 166), (132, 167), (132, 168), (132, 170), (133, 144), (133, 146), (133, 147), (133, 148), (133, 149), (133, 150), (133, 151), (133, 152), (133, 153), (133, 154), (133, 155), (133, 156), (133, 157), (133, 158), (133, 159), (133, 160), (133, 161), (133, 162), (133, 163), (133, 164), (133, 165), (133, 166), (133, 167), (133, 168), (133, 169), (133, 171), (134, 144), (134, 146), (134, 147), (134, 148), (134, 149), (134, 150), (134, 151), (134, 152), (134, 153), (134, 154), (134, 155), (134, 156), (134, 157), (134, 158), (134, 159), (134, 160), (134, 161), (134, 162), (134, 163), (134, 164), (134, 165), (134, 166), (134, 167), (134, 168), (134, 169), (134, 171), (135, 144), (135, 146), (135, 147), (135, 148), (135, 149), (135, 150), (135, 151), (135, 152), (135, 153), (135, 154), (135, 155), (135, 156), (135, 157), (135, 158), (135, 159), (135, 160), (135, 161), (135, 162), (135, 163), (135, 164), (135, 165), (135, 166), (135, 167), (135, 168), (135, 169), (135, 171), (136, 144), (136, 146), (136, 147), (136, 148), (136, 149), (136, 150), (136, 151), (136, 152), (136, 153), (136, 154), (136, 155), (136, 156), (136, 157), (136, 158), (136, 159), (136, 160), (136, 161), (136, 162), (136, 163), (136, 164), (136, 165), (136, 166), (136, 167), (136, 168), (136, 169), (136, 171), (137, 145), (137, 147), (137, 148), (137, 149), (137, 150), (137, 151), (137, 152), (137, 153), (137, 154), (137, 155), (137, 156), (137, 157), (137, 158), (137, 159), (137, 160), (137, 161), (137, 162), (137, 163), (137, 164), (137, 165), (137, 166), (137, 167), (137, 168), (137, 169), (137, 171), (138, 145), (138, 147), (138, 148), (138, 149), (138, 150), (138, 151), (138, 152), (138, 153), (138, 154), (138, 155), (138, 156), (138, 157), (138, 158), (138, 159), (138, 160), (138, 161), (138, 162), (138, 163), (138, 164), (138, 165), (138, 166), (138, 167), (138, 168), (138, 169), (138, 171), (139, 145), (139, 147), (139, 148), (139, 149), (139, 150), (139, 151), (139, 152), (139, 153), (139, 154), (139, 155), (139, 156), (139, 157), (139, 158), (139, 159), (139, 160), (139, 161), (139, 162), (139, 163), (139, 164), (139, 165), (139, 166), (139, 167), (139, 168), (139, 169), (139, 171), (140, 145), (140, 147), (140, 148), (140, 149), (140, 150), (140, 151), (140, 152), (140, 153), (140, 154), (140, 155), (140, 156), (140, 157), (140, 158), (140, 159), (140, 160), (140, 161), (140, 162), (140, 163), (140, 164), (140, 165), (140, 166), (140, 167), (140, 168), (140, 169), (140, 170), (140, 172), (141, 145), (141, 147), (141, 148), (141, 149), (141, 150), (141, 151), (141, 152), (141, 153), (141, 154), (141, 155), (141, 156), (141, 157), (141, 158), (141, 159), (141, 160), (141, 161), (141, 162), (141, 163), (141, 164), (141, 165), (141, 166), (141, 167), (141, 168), (141, 169), (141, 170), (141, 172), (142, 145), (142, 147), (142, 148), (142, 149), (142, 150), (142, 151), (142, 152), (142, 153), (142, 154), (142, 155), (142, 156), (142, 157), (142, 158), (142, 159), (142, 160), (142, 161), (142, 162), (142, 163), (142, 164), (142, 165), (142, 166), (142, 167), (142, 168), (142, 169), (142, 170), (142, 172), (143, 146), (143, 148), (143, 149), (143, 150), (143, 151), (143, 152), (143, 153), (143, 154), (143, 155), (143, 156), (143, 157), (143, 158), (143, 159), (143, 160), (143, 161), (143, 162), (143, 163), (143, 164), (143, 165), (143, 166), (143, 167), (143, 168), (143, 169), (143, 170), (143, 172), (144, 146), (144, 148), (144, 149), (144, 150), (144, 151), (144, 152), (144, 153), (144, 154), (144, 155), (144, 156), (144, 157), (144, 158), (144, 159), (144, 160), (144, 161), (144, 162), (144, 163), (144, 164), (144, 165), (144, 166), (144, 167), (144, 168), (144, 169), (144, 170), (144, 172), (145, 146), (145, 148), (145, 149), (145, 150), (145, 151), (145, 152), (145, 153), (145, 154), (145, 155), (145, 156), (145, 157), (145, 158), (145, 159), (145, 160), (145, 161), (145, 162), (145, 163), (145, 164), (145, 165), (145, 166), (145, 167), (145, 168), (145, 169), (145, 170), (145, 172), (146, 146), (146, 148), (146, 149), (146, 150), (146, 151), (146, 152), (146, 153), (146, 154), (146, 155), (146, 156), (146, 157), (146, 158), (146, 159), (146, 160), (146, 161), (146, 162), (146, 163), (146, 164), (146, 165), (146, 166), (146, 167), (146, 168), (146, 169), (146, 170), (146, 172), (147, 146), (147, 148), (147, 149), (147, 150), (147, 151), (147, 152), (147, 153), (147, 154), (147, 155), (147, 156), (147, 157), (147, 158), (147, 159), (147, 160), (147, 161), (147, 162), (147, 163), (147, 164), (147, 165), (147, 166), (147, 167), (147, 168), (147, 169), (147, 170), (147, 172), (148, 146), (148, 148), (148, 149), (148, 150), (148, 151), (148, 152), (148, 153), (148, 154), (148, 155), (148, 156), (148, 157), (148, 158), (148, 159), (148, 160), (148, 161), (148, 162), (148, 163), (148, 164), (148, 165), (148, 166), (148, 167), (148, 168), (148, 169), (148, 170), (148, 172), (149, 146), (149, 148), (149, 149), (149, 150), (149, 151), (149, 152), (149, 153), (149, 154), (149, 155), (149, 156), (149, 157), (149, 158), (149, 159), (149, 160), (149, 161), (149, 162), (149, 163), (149, 164), (149, 165), (149, 166), (149, 167), (149, 168), (149, 169), (149, 171), (150, 146), (150, 148), (150, 149), (150, 150), (150, 151), (150, 152), (150, 153), (150, 154), (150, 155), (150, 156), (150, 157), (150, 158), (150, 159), (150, 160), (150, 161), (150, 162), (150, 163), (150, 164), (150, 165), (150, 166), (150, 167), (150, 168), (150, 170), (151, 146), (151, 148), (151, 149), (151, 150), (151, 151), (151, 152), (151, 153), (151, 154), (151, 155), (151, 156), (151, 157), (151, 158), (151, 159), (151, 160), (151, 161), (151, 162), (151, 163), (151, 164), (151, 165), (151, 166), (151, 167), (151, 169), (152, 146), (152, 148), (152, 149), (152, 150), (152, 151), (152, 152), (152, 153), (152, 154), (152, 155), (152, 156), (152, 157), (152, 158), (152, 159), (152, 160), (152, 161), (152, 162), (152, 163), (152, 164), (152, 165), (152, 166), (152, 168), (153, 146), (153, 148), (153, 149), (153, 150), (153, 151), (153, 152), (153, 153), (153, 154), (153, 155), (153, 156), (153, 157), (153, 158), (153, 159), (153, 160), (153, 161), (153, 162), (153, 163), (153, 164), (153, 165), (153, 167), (154, 148), (154, 150), (154, 151), (154, 152), (154, 153), (154, 154), (154, 155), (154, 156), (154, 157), (154, 158), (154, 159), (154, 160), (154, 161), (154, 162), (154, 163), (154, 164), (154, 165), (154, 167), (155, 148), (155, 150), (155, 151), (155, 152), (155, 153), (155, 154), (155, 155), (155, 156), (155, 157), (155, 158), (155, 159), (155, 160), (155, 161), (155, 162), (155, 163), (155, 164), (155, 165), (155, 167), (156, 148), (156, 150), (156, 151), (156, 152), (156, 153), (156, 154), (156, 155), (156, 156), (156, 157), (156, 158), (156, 159), (156, 160), (156, 161), (156, 162), (156, 163), (156, 164), (156, 165), (156, 167), (157, 148), (157, 150), (157, 151), (157, 152), (157, 153), (157, 154), (157, 155), (157, 156), (157, 157), (157, 158), (157, 159), (157, 160), (157, 161), (157, 162), (157, 163), (157, 164), (157, 165), (157, 167), (158, 150), (158, 151), (158, 152), (158, 153), (158, 154), (158, 155), (158, 156), (158, 157), (158, 158), (158, 159), (158, 160), (158, 161), (158, 162), (158, 163), (158, 164), (158, 165), (158, 167), (159, 148), (159, 151), (159, 152), (159, 153), (159, 154), (159, 155), (159, 156), (159, 157), (159, 158), (159, 159), (159, 160), (159, 161), (159, 162), (159, 163), (159, 164), (159, 166), (160, 149), (160, 152), (160, 153), (160, 154), (160, 155), (160, 156), (160, 157), (160, 158), (160, 159), (160, 160), (160, 161), (160, 162), (160, 163), (160, 165), (161, 151), (161, 153), (161, 154), (161, 155), (161, 156), (161, 159), (161, 160), (161, 161), (161, 164), (162, 152), (162, 154), (162, 155), (162, 158), (162, 163), (163, 153), (163, 156), (163, 159), (163, 161), (164, 155), (165, 154)) coordinates_f4_deb3 = ((129, 79), (130, 79), (131, 79), (131, 82), (131, 85), (132, 80), (132, 83), (132, 85), (133, 80), (133, 83), (133, 84), (133, 86), (133, 94), (134, 81), (134, 82), (134, 86), (134, 87), (134, 97), (135, 87), (135, 88), (135, 94), (135, 97), (136, 94), (136, 97), (137, 88), (137, 89), (137, 94), (137, 97), (138, 87), (138, 89), (138, 94), (138, 97), (139, 86), (139, 88), (139, 95), (139, 97), (140, 84), (140, 95), (141, 84), (141, 96), (142, 81), (142, 84), (143, 81), (143, 84), (144, 81), (144, 83), (144, 84), (144, 85), (144, 88), (144, 90), (144, 91), (144, 92), (145, 82), (145, 87), (145, 88), (145, 89), (145, 91), (146, 83), (146, 85), (147, 85)) coordinates_26408_b = ((123, 90), (123, 92), (123, 93), (123, 94), (123, 95), (123, 96), (123, 97), (123, 98), (123, 99), (124, 88), (124, 99), (124, 100), (124, 101), (124, 102), (124, 103), (124, 104), (124, 105), (124, 107), (125, 87), (125, 90), (125, 91), (125, 93), (125, 94), (125, 95), (125, 96), (125, 97), (125, 98), (125, 99), (125, 107), (126, 86), (126, 88), (126, 89), (126, 90), (126, 91), (126, 94), (126, 95), (126, 96), (126, 97), (126, 98), (126, 99), (126, 100), (126, 101), (126, 102), (126, 103), (126, 104), (126, 105), (126, 107), (127, 80), (127, 84), (127, 87), (127, 88), (127, 89), (127, 91), (127, 95), (127, 97), (127, 98), (127, 99), (127, 100), (127, 101), (127, 102), (127, 103), (127, 104), (127, 106), (128, 80), (128, 82), (128, 90), (128, 95), (128, 97), (128, 98), (128, 99), (128, 100), (128, 101), (128, 106), (129, 81), (129, 83), (129, 84), (129, 85), (129, 86), (129, 87), (129, 88), (129, 90), (129, 94), (129, 103), (129, 105), (130, 94), (130, 96), (130, 97), (130, 98), (130, 99), (130, 100), (130, 101), (131, 94)) coordinates_f5_deb3 = ((94, 106), (95, 104), (96, 103), (97, 102), (99, 100), (100, 82), (100, 84), (100, 99), (101, 81), (101, 85), (101, 96), (101, 98), (102, 81), (102, 83), (102, 85), (102, 90), (102, 92), (102, 93), (102, 94), (102, 95), (102, 97), (103, 81), (103, 83), (103, 85), (103, 89), (104, 80), (104, 82), (104, 83), (104, 84), (104, 86), (104, 89), (104, 91), (105, 80), (105, 82), (105, 85), (105, 90), (106, 80), (106, 82), (106, 84), (106, 86), (106, 90), (107, 79), (107, 81), (107, 82), (107, 87), (107, 88), (107, 90), (108, 79), (108, 82), (108, 86), (108, 88), (108, 89), (108, 91), (109, 79), (109, 82), (109, 87), (109, 89), (109, 91), (110, 78), (110, 80), (110, 82), (110, 88), (110, 91), (111, 78), (111, 80), (111, 82), (111, 89), (111, 91), (112, 78), (112, 81), (112, 91), (113, 78), (113, 80), (113, 91), (114, 79), (114, 91)) coordinates_016400 = ((123, 130), (123, 133), (124, 130), (124, 132), (124, 134), (125, 134), (125, 136), (126, 134), (126, 137), (126, 139), (127, 133), (127, 135), (127, 136), (128, 133), (128, 135), (128, 136), (128, 137), (128, 138), (128, 140), (129, 133), (129, 135), (129, 136), (129, 137), (129, 138), (129, 140), (130, 133), (130, 135), (130, 136), (130, 137), (130, 139), (130, 141), (131, 133), (131, 135), (131, 136), (131, 139), (131, 140), (131, 142), (132, 133), (132, 135), (132, 137), (132, 140), (132, 142), (133, 133), (133, 136), (133, 140), (133, 142), (134, 133), (134, 136), (134, 140), (134, 142), (135, 132), (135, 135), (135, 140), (135, 142), (136, 131), (136, 134), (136, 135), (136, 139), (136, 142), (137, 130), (137, 133), (137, 138), (137, 140), (137, 142), (138, 130), (138, 131), (138, 137), (138, 139), (138, 140), (138, 141), (138, 142), (138, 143), (139, 136), (139, 138), (139, 139), (139, 140), (139, 141), (139, 143), (140, 136), (140, 141), (140, 143), (141, 136), (141, 138), (141, 139), (141, 140), (141, 141), (141, 143), (142, 136), (142, 137), (142, 141), (142, 143), (143, 141), (143, 143), (144, 140), (144, 143), (145, 139), (145, 144), (146, 137), (146, 139), (146, 140), (146, 141), (146, 142), (146, 144)) coordinates_cc5_b45 = ((146, 93), (147, 87), (147, 89), (147, 90), (147, 91), (147, 95), (147, 97), (148, 87), (148, 93), (149, 87), (149, 89), (149, 90), (149, 91), (149, 94), (149, 97), (150, 87), (150, 89), (150, 91), (150, 96), (151, 87), (151, 89), (151, 90), (151, 92), (152, 87), (152, 93), (153, 88), (153, 90), (153, 91), (153, 93), (154, 94), (155, 93), (155, 95), (156, 93), (156, 96), (157, 94), (157, 96), (158, 95)) coordinates_27408_b = ((104, 102), (104, 103), (105, 100), (105, 102), (106, 99), (106, 101), (107, 97), (107, 101), (108, 99), (108, 101), (109, 96), (109, 98), (109, 99), (109, 101), (110, 95), (110, 97), (110, 98), (110, 99), (110, 101), (111, 95), (111, 97), (111, 98), (111, 99), (111, 100), (111, 102), (112, 84), (112, 95), (112, 100), (112, 102), (113, 83), (113, 85), (113, 96), (113, 98), (113, 99), (113, 100), (113, 102), (114, 82), (114, 84), (114, 86), (114, 96), (114, 100), (114, 101), (115, 81), (115, 86), (115, 100), (115, 101), (116, 84), (116, 87), (116, 100), (117, 85), (117, 88), (117, 100), (118, 86), (118, 88), (118, 100), (119, 87), (119, 93), (119, 94), (119, 96), (119, 100), (120, 88), (120, 91), (120, 98), (120, 100), (121, 92), (121, 93), (121, 94), (121, 95), (121, 96), (121, 97), (121, 98), (121, 99), (121, 101), (122, 101)) coordinates_006400 = ((106, 135), (106, 140), (107, 135), (107, 136), (107, 140), (107, 142), (108, 128), (108, 129), (108, 135), (108, 136), (108, 140), (108, 142), (109, 127), (109, 130), (109, 135), (109, 136), (109, 140), (109, 141), (110, 127), (110, 130), (110, 135), (110, 141), (111, 127), (111, 130), (111, 135), (111, 139), (111, 141), (112, 127), (112, 128), (112, 131), (112, 135), (112, 137), (112, 139), (112, 141), (113, 128), (113, 131), (113, 135), (113, 137), (113, 138), (113, 139), (113, 141), (114, 128), (114, 131), (114, 136), (114, 138), (114, 141), (115, 128), (115, 130), (115, 132), (115, 136), (116, 128), (116, 130), (116, 131), (116, 132), (116, 137), (116, 139), (117, 127), (117, 129), (117, 130), (117, 131), (117, 132), (117, 133), (117, 136), (117, 138), (118, 125), (118, 128), (118, 129), (118, 130), (118, 131), (118, 132), (118, 135), (118, 137), (119, 125), (119, 127), (119, 128), (119, 129), (119, 130), (119, 131), (119, 132), (119, 136), (120, 125), (120, 133), (120, 135), (121, 119), (121, 121), (121, 124), (121, 125), (121, 126), (121, 127), (121, 128), (121, 129), (121, 130), (121, 131), (121, 132)) coordinates_cd5_b45 = ((75, 105), (75, 106), (76, 104), (76, 106), (77, 103), (77, 106), (78, 102), (78, 104), (78, 106), (79, 102), (79, 104), (79, 106), (80, 101), (80, 103), (80, 104), (80, 106), (81, 100), (81, 102), (81, 103), (81, 104), (81, 106), (82, 98), (82, 101), (82, 102), (82, 103), (82, 104), (82, 106), (83, 97), (83, 100), (83, 106), (84, 96), (84, 99), (84, 101), (84, 102), (84, 103), (84, 104), (84, 106), (85, 95), (85, 97), (85, 99), (85, 106), (86, 94), (86, 96), (86, 97), (86, 99), (87, 90), (87, 92), (87, 93), (87, 95), (87, 96), (87, 97), (87, 99), (88, 89), (88, 94), (88, 95), (88, 96), (88, 97), (88, 99), (89, 91), (89, 92), (89, 93), (89, 94), (89, 95), (89, 96), (89, 98), (89, 105), (90, 88), (90, 90), (90, 91), (90, 92), (90, 93), (90, 94), (90, 95), (90, 96), (90, 98), (90, 105), (91, 87), (91, 89), (91, 90), (91, 91), (91, 92), (91, 93), (91, 94), (91, 95), (91, 98), (91, 103), (91, 105), (92, 86), (92, 88), (92, 89), (92, 90), (92, 91), (92, 92), (92, 93), (92, 94), (92, 97), (92, 102), (92, 106), (93, 86), (93, 88), (93, 89), (93, 90), (93, 91), (93, 92), (93, 95), (93, 101), (93, 104), (94, 85), (94, 87), (94, 88), (94, 89), (94, 90), (94, 91), (94, 94), (94, 100), (94, 103), (95, 85), (95, 87), (95, 88), (95, 89), (95, 90), (95, 92), (95, 99), (95, 102), (96, 85), (96, 87), (96, 88), (96, 89), (96, 91), (96, 98), (96, 101), (97, 85), (97, 87), (97, 88), (97, 89), (97, 90), (97, 91), (97, 97), (97, 100), (98, 85), (98, 88), (98, 89), (98, 90), (98, 91), (98, 92), (98, 93), (98, 94), (98, 95), (98, 99), (99, 86), (99, 97), (100, 88), (100, 90), (100, 91), (100, 92), (100, 93), (100, 94)) coordinates_6395_ed = ((124, 125), (124, 128), (125, 125), (125, 128), (126, 124), (126, 126), (126, 128), (127, 124), (127, 126), (127, 127), (127, 129), (128, 124), (128, 126), (128, 127), (128, 129), (129, 124), (129, 126), (129, 127), (129, 129), (130, 124), (130, 126), (130, 127), (130, 129), (131, 124), (131, 126), (131, 128), (132, 124), (132, 126), (132, 128), (133, 124), (133, 127), (134, 125), (134, 127), (135, 125), (136, 125), (136, 126)) coordinates_00_fffe = ((148, 138), (148, 140), (148, 141), (148, 142), (148, 144), (149, 144), (150, 139), (150, 141), (150, 142), (150, 144), (151, 139), (151, 141), (151, 142), (151, 144), (152, 138), (152, 142), (152, 144), (153, 137), (153, 139), (153, 140), (153, 141), (153, 144), (154, 142), (154, 144), (155, 143)) coordinates_f98072 = ((123, 124), (124, 109), (124, 111), (124, 112), (124, 115), (124, 116), (124, 117), (124, 118), (124, 119), (124, 120), (124, 121), (124, 123), (125, 109), (125, 110), (125, 116), (125, 122), (126, 109), (126, 110), (126, 117), (126, 121), (127, 109), (127, 110), (127, 118), (128, 108), (128, 110), (128, 111), (129, 108), (129, 110), (129, 114), (130, 110), (130, 111), (130, 112), (130, 115), (131, 103), (131, 105), (131, 108), (131, 111), (131, 112), (131, 113), (131, 115), (132, 102), (132, 106), (132, 110), (132, 112), (132, 113), (132, 114), (132, 116), (133, 102), (133, 105), (133, 111), (133, 113), (133, 114), (133, 116), (134, 102), (134, 104), (134, 112), (134, 114), (134, 115), (134, 117), (135, 112), (135, 115), (135, 117), (136, 113), (136, 117), (137, 114), (137, 117)) coordinates_97_fb98 = ((154, 129), (155, 128), (155, 129), (155, 137), (155, 140), (156, 128), (156, 129), (156, 137), (156, 142), (157, 127), (157, 129), (157, 138), (157, 140), (157, 143), (158, 126), (158, 128), (158, 138), (158, 140), (158, 142), (159, 128), (159, 134), (159, 136), (159, 137), (159, 138), (159, 139), (159, 140), (159, 142), (160, 125), (160, 127), (160, 132), (160, 138), (160, 139), (160, 140), (160, 142), (161, 121), (161, 125), (161, 127), (161, 132), (161, 134), (161, 135), (161, 136), (161, 137), (161, 138), (161, 139), (161, 140), (161, 142), (162, 121), (162, 125), (162, 126), (162, 132), (162, 134), (162, 135), (162, 136), (162, 137), (162, 138), (162, 139), (162, 140), (162, 142), (163, 125), (163, 126), (163, 131), (163, 133), (163, 134), (163, 135), (163, 136), (163, 137), (163, 138), (163, 139), (163, 140), (163, 142), (164, 120), (164, 124), (164, 126), (164, 131), (164, 133), (164, 135), (164, 136), (164, 137), (164, 138), (164, 139), (164, 141), (165, 120), (165, 124), (165, 125), (165, 130), (165, 132), (165, 136), (165, 137), (165, 138), (165, 139), (165, 141), (166, 120), (166, 122), (166, 125), (166, 130), (166, 132), (166, 137), (166, 138), (166, 139), (166, 141), (167, 119), (167, 121), (167, 124), (167, 125), (167, 129), (167, 132), (167, 136), (167, 141), (168, 119), (168, 121), (168, 122), (168, 123), (168, 124), (168, 125), (168, 126), (168, 127), (168, 132), (168, 137), (168, 140), (169, 119), (169, 121), (169, 122), (169, 123), (169, 124), (169, 125), (169, 126), (169, 131), (170, 119), (170, 127), (170, 129), (171, 120), (171, 122), (171, 123), (171, 124), (171, 125), (171, 126)) coordinates_323287 = ((149, 100), (149, 106), (150, 102), (150, 103), (150, 104), (150, 107), (151, 98), (151, 100), (151, 101), (151, 104), (151, 109), (152, 107), (152, 110), (153, 107), (153, 109), (153, 112), (153, 113), (153, 128), (154, 100), (154, 101), (154, 108), (154, 110), (154, 115), (155, 98), (155, 100), (155, 102), (155, 108), (155, 110), (155, 111), (155, 112), (155, 114), (156, 98), (156, 100), (156, 102), (156, 108), (156, 110), (156, 111), (156, 113), (157, 98), (157, 100), (157, 102), (157, 108), (157, 112), (158, 98), (158, 100), (158, 102), (158, 108), (158, 111), (159, 98), (159, 102), (160, 100), (160, 102), (160, 119), (161, 101), (161, 103), (161, 119), (162, 101), (162, 103), (162, 118), (162, 119), (163, 102), (163, 105), (163, 106), (163, 107), (163, 108), (163, 110), (163, 117), (164, 103), (164, 111), (164, 117), (164, 118), (165, 103), (165, 105), (165, 106), (165, 107), (165, 108), (165, 109), (165, 112), (165, 116), (165, 118), (166, 104), (166, 106), (166, 107), (166, 108), (166, 109), (166, 110), (166, 111), (166, 113), (166, 114), (166, 117), (167, 104), (167, 107), (167, 108), (167, 109), (167, 110), (167, 111), (167, 112), (167, 117), (168, 105), (168, 110), (168, 111), (168, 115), (168, 117), (169, 107), (169, 109), (169, 112), (169, 113), (169, 114), (170, 110), (170, 111)) coordinates_6495_ed = ((108, 120), (108, 122), (109, 118), (109, 122), (110, 117), (110, 121), (111, 116), (111, 119), (111, 120), (111, 121), (112, 116), (112, 118), (112, 120), (113, 115), (113, 117), (113, 118), (113, 120), (114, 114), (114, 119), (115, 113), (115, 114), (115, 119), (116, 113), (116, 114), (116, 117), (116, 119), (117, 114), (117, 117), (117, 119), (118, 114), (118, 117), (118, 119), (119, 115), (119, 118), (120, 115), (120, 117), (121, 115), (121, 117)) coordinates_01_ffff = ((92, 140), (93, 140), (93, 142), (93, 143), (93, 145), (94, 141), (94, 145), (95, 142), (95, 145), (96, 142), (96, 145), (97, 141), (97, 143), (97, 145), (98, 137), (98, 139), (98, 140), (98, 142), (98, 143), (98, 145), (99, 136), (99, 143), (99, 145), (100, 135), (100, 137), (100, 140), (100, 141), (100, 142), (100, 144), (101, 135), (101, 138), (101, 144), (102, 135), (102, 137), (102, 143), (103, 135), (103, 136), (103, 143), (104, 135), (104, 142), (104, 143), (105, 143)) coordinates_fa8072 = ((102, 106), (102, 108), (103, 106), (103, 108), (104, 105), (104, 108), (105, 104), (105, 106), (105, 108), (106, 104), (106, 106), (106, 108), (107, 103), (107, 105), (107, 106), (107, 108), (108, 103), (108, 105), (108, 106), (108, 108), (109, 103), (109, 105), (109, 106), (109, 108), (109, 111), (110, 104), (110, 106), (110, 107), (110, 108), (110, 109), (110, 112), (111, 104), (111, 106), (111, 107), (111, 108), (111, 111), (112, 104), (112, 106), (112, 110), (113, 104), (113, 107), (113, 108), (114, 104), (114, 106), (115, 103), (115, 105), (116, 102), (116, 104), (117, 102), (117, 104), (118, 102), (118, 104), (119, 102), (119, 104), (119, 110), (120, 103), (120, 105), (120, 109), (120, 113), (121, 103), (121, 105), (121, 109), (121, 110), (121, 111), (121, 113), (122, 103)) coordinates_98_fb98 = ((77, 135), (77, 137), (77, 138), (77, 139), (77, 140), (78, 136), (78, 141), (78, 143), (79, 136), (79, 138), (79, 139), (79, 145), (80, 136), (80, 138), (80, 139), (80, 140), (80, 141), (80, 142), (80, 143), (80, 147), (81, 136), (81, 139), (81, 143), (81, 145), (81, 148), (82, 136), (82, 139), (82, 143), (82, 145), (82, 146), (82, 148), (83, 136), (83, 138), (83, 139), (83, 144), (83, 145), (83, 146), (83, 147), (83, 149), (84, 136), (84, 138), (84, 139), (84, 141), (84, 142), (84, 144), (84, 145), (84, 146), (84, 148), (85, 135), (85, 137), (85, 139), (85, 144), (85, 146), (85, 148), (86, 135), (86, 137), (86, 139), (86, 144), (86, 146), (86, 148), (87, 135), (87, 137), (87, 139), (87, 144), (87, 147), (88, 135), (88, 139), (88, 144), (88, 147), (89, 135), (89, 137), (89, 141), (89, 143), (89, 147), (90, 135), (90, 136), (90, 141), (90, 143), (90, 144), (90, 145), (90, 147)) coordinates_fec0_cb = ((132, 100), (133, 99), (133, 100), (134, 99), (135, 99), (136, 99), (137, 99), (137, 100), (138, 99), (139, 99), (139, 101), (140, 99), (141, 101), (141, 104), (141, 109), (141, 110), (142, 99), (142, 102), (142, 105), (142, 106), (142, 107), (142, 108), (142, 112), (143, 100), (143, 103), (143, 104), (143, 109), (143, 110), (143, 112), (144, 102), (144, 104), (144, 105), (144, 106), (144, 107), (144, 108), (144, 109), (144, 111), (145, 103), (145, 105), (145, 106), (145, 107), (145, 108), (145, 109), (145, 111), (146, 103), (146, 104), (146, 107), (146, 108), (146, 110), (147, 99), (147, 101), (147, 105), (147, 106), (147, 110), (148, 102), (148, 104), (148, 107), (148, 110), (149, 109), (149, 111), (150, 110), (150, 112), (150, 125), (151, 112), (151, 114), (151, 126)) coordinates_333287 = ((73, 119), (73, 121), (73, 122), (73, 123), (73, 124), (73, 126), (74, 110), (74, 112), (74, 114), (74, 118), (74, 127), (74, 128), (75, 108), (75, 116), (75, 117), (75, 119), (75, 120), (75, 121), (75, 122), (75, 123), (75, 124), (75, 125), (75, 126), (75, 129), (76, 108), (76, 110), (76, 111), (76, 114), (76, 118), (76, 119), (76, 120), (76, 121), (76, 122), (76, 123), (76, 124), (76, 125), (76, 126), (76, 127), (76, 128), (76, 131), (77, 108), (77, 110), (77, 111), (77, 112), (77, 113), (77, 116), (77, 117), (77, 118), (77, 119), (77, 120), (77, 121), (77, 122), (77, 123), (77, 124), (77, 125), (77, 126), (77, 127), (77, 133), (78, 108), (78, 111), (78, 117), (78, 118), (78, 119), (78, 120), (78, 121), (78, 122), (78, 123), (78, 124), (78, 125), (78, 126), (78, 127), (78, 129), (78, 131), (79, 108), (79, 111), (79, 117), (79, 118), (79, 119), (79, 120), (79, 121), (79, 122), (79, 123), (79, 124), (79, 125), (79, 127), (79, 131), (79, 134), (80, 108), (80, 111), (80, 116), (80, 118), (80, 119), (80, 120), (80, 121), (80, 122), (80, 123), (80, 124), (80, 125), (80, 126), (80, 127), (80, 131), (80, 134), (81, 108), (81, 111), (81, 117), (81, 119), (81, 120), (81, 121), (81, 122), (81, 123), (81, 124), (81, 126), (81, 131), (81, 134), (82, 108), (82, 110), (82, 118), (82, 120), (82, 121), (82, 122), (82, 123), (82, 124), (82, 126), (82, 131), (82, 132), (82, 134), (83, 108), (83, 109), (83, 118), (83, 120), (83, 121), (83, 122), (83, 123), (83, 124), (83, 126), (83, 131), (83, 134), (84, 119), (84, 121), (84, 122), (84, 123), (84, 124), (84, 126), (84, 131), (84, 133), (85, 120), (85, 122), (85, 123), (85, 124), (85, 126), (85, 131), (85, 133), (86, 121), (86, 125), (86, 131), (86, 133), (87, 122), (87, 124), (87, 131), (87, 133), (88, 112), (88, 114), (88, 131), (88, 133), (89, 107), (89, 112), (89, 115), (89, 132), (89, 133), (90, 107), (90, 108), (90, 112), (90, 113), (90, 114), (90, 133), (91, 109), (91, 112), (91, 113), (91, 114), (91, 115), (91, 118), (92, 108), (92, 110), (92, 113), (92, 114), (92, 115), (92, 116), (92, 118), (93, 110), (93, 111), (93, 112), (93, 116), (93, 118), (94, 114), (94, 115), (94, 118), (95, 118)) coordinates_ffc0_cb = ((94, 108), (95, 111), (96, 112), (96, 113), (96, 114), (96, 115), (97, 116), (97, 118), (98, 115), (98, 118), (99, 115), (99, 118), (100, 115), (100, 117), (100, 118))
books = input().split("&") while True: commands = input().split(" | ") if commands[0] == "Done": print(", ".join(books)) break elif commands[0] == "Add Book": book_name = commands[1] if book_name not in books: ins = books.insert(0, book_name) else: continue elif commands[0] == "Take Book": books_names = commands[1] if books_names in books: rem = books.remove(books_names) else: continue elif commands[0] == "Swap Books": book1 = commands[1] book2 = commands[2] if book1 in books and book2 in books: idx1 = books.index(book1) idx2 = books.index(book2) rev = books[idx1], books[idx2] = books[idx2], books[idx1] else: continue elif commands[0] == "Insert Book": app_name_book = commands[1] append = books.append(app_name_book) elif commands[0] == "Check Book": index_book = int(commands[1]) if index_book >= 0 and index_book <= len(books): print(books[index_book]) else: continue
books = input().split('&') while True: commands = input().split(' | ') if commands[0] == 'Done': print(', '.join(books)) break elif commands[0] == 'Add Book': book_name = commands[1] if book_name not in books: ins = books.insert(0, book_name) else: continue elif commands[0] == 'Take Book': books_names = commands[1] if books_names in books: rem = books.remove(books_names) else: continue elif commands[0] == 'Swap Books': book1 = commands[1] book2 = commands[2] if book1 in books and book2 in books: idx1 = books.index(book1) idx2 = books.index(book2) rev = (books[idx1], books[idx2]) = (books[idx2], books[idx1]) else: continue elif commands[0] == 'Insert Book': app_name_book = commands[1] append = books.append(app_name_book) elif commands[0] == 'Check Book': index_book = int(commands[1]) if index_book >= 0 and index_book <= len(books): print(books[index_book]) else: continue
''' This utility is for Custom Exceptions. a) Stop_Test_Exception You can raise a generic exceptions using just a string. This is particularly useful when you want to end a test midway based on some condition. ''' class Stop_Test_Exception(Exception): def __init__(self,message): self.message=message def __str__(self): return self.message
""" This utility is for Custom Exceptions. a) Stop_Test_Exception You can raise a generic exceptions using just a string. This is particularly useful when you want to end a test midway based on some condition. """ class Stop_Test_Exception(Exception): def __init__(self, message): self.message = message def __str__(self): return self.message
class Node: def __init__(self, value): self.val = value self.next = self.prev = None class MyLinkedList(object): def __init__(self): self.__head = self.__tail = Node(-1) self.__head.next = self.__tail self.__tail.prev = self.__head self.__size = 0 def get(self, index): if 0 <= index <= self.__size // 2: return self.__forward(0, index, self.__head.next).val elif self.__size // 2 < index < self.__size: return self.__backward(self.__size, index, self.__tail).val return -1 def addAtHead(self, val): self.__add(self.__head, val) def addAtTail(self, val): self.__add(self.__tail.prev, val) def addAtIndex(self, index, val): if 0 <= index <= self.__size // 2: self.__add(self.__forward(0, index, self.__head.next).prev, val) elif self.__size // 2 < index <= self.__size: self.__add(self.__backward(self.__size, index, self.__tail).prev, val) def deleteAtIndex(self, index): if 0 <= index <= self.__size // 2: self.__remove(self.__forward(0, index, self.__head.next)) elif self.__size // 2 < index < self.__size: self.__remove(self.__backward(self.__size, index, self.__tail)) def __add(self, preNode, val): node = Node(val) node.prev = preNode node.next = preNode.next node.prev.next = node.next.prev = node self.__size += 1 def __remove(self, node): node.prev.next = node.next node.next.prev = node.prev self.__size -= 1 def __forward(self, start, end, curr): while start != end: start += 1 curr = curr.next return curr def __backward(self, start, end, curr): while start != end: start -= 1 curr = curr.prev return curr
class Node: def __init__(self, value): self.val = value self.next = self.prev = None class Mylinkedlist(object): def __init__(self): self.__head = self.__tail = node(-1) self.__head.next = self.__tail self.__tail.prev = self.__head self.__size = 0 def get(self, index): if 0 <= index <= self.__size // 2: return self.__forward(0, index, self.__head.next).val elif self.__size // 2 < index < self.__size: return self.__backward(self.__size, index, self.__tail).val return -1 def add_at_head(self, val): self.__add(self.__head, val) def add_at_tail(self, val): self.__add(self.__tail.prev, val) def add_at_index(self, index, val): if 0 <= index <= self.__size // 2: self.__add(self.__forward(0, index, self.__head.next).prev, val) elif self.__size // 2 < index <= self.__size: self.__add(self.__backward(self.__size, index, self.__tail).prev, val) def delete_at_index(self, index): if 0 <= index <= self.__size // 2: self.__remove(self.__forward(0, index, self.__head.next)) elif self.__size // 2 < index < self.__size: self.__remove(self.__backward(self.__size, index, self.__tail)) def __add(self, preNode, val): node = node(val) node.prev = preNode node.next = preNode.next node.prev.next = node.next.prev = node self.__size += 1 def __remove(self, node): node.prev.next = node.next node.next.prev = node.prev self.__size -= 1 def __forward(self, start, end, curr): while start != end: start += 1 curr = curr.next return curr def __backward(self, start, end, curr): while start != end: start -= 1 curr = curr.prev return curr
class NotFound(Exception): pass class HTTPError(Exception): pass
class Notfound(Exception): pass class Httperror(Exception): pass
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = 'liyiqun' # microsrv_linkstat_url = 'http://127.0.0.1:32769/microsrv/link_stat' # microsrv_linkstat_url = 'http://127.0.0.1:33710/microsrv/link_stat' # microsrv_linkstat_url = 'http://10.9.63.208:7799/microsrv/ms_link/link/links' # microsrv_linkstat_url = 'http://219.141.189.72:10000/link/links' # microsrv_topo_url = 'http://10.9.63.208:7799/microsrv/ms_topo/' # microsrv_topo_url = 'http://127.0.0.1:33769/microsrv/topo' # microsrv_topo_url = 'http://127.0.0.1:33710/microsrv/topo' # microsrv_topo_url = 'http://10.9.63.208:7799/microsrv/ms_topo/' # microsrv_cust_url = 'http://10.9.63.208:7799/microsrv/ms_cust/' # microsrv_cust_url = 'http://127.0.0.1:33771/' # microsrv_cust_url = 'http://127.0.0.1:33710/microsrv/customer' # microsrv_flow_url = 'http://10.9.63.208:7799/microsrv/ms_flow/flow' # microsrv_flow_url = 'http://219.141.189.72:10001/flow' # microsrv_flow_url = 'http://127.0.0.1:32769/microsrv/flow' # microsrv_flow_url = 'http://127.0.0.1:33710/microsrv/flow' # microsrv_tunnel_url = 'http://10.9.63.208:7799/microsrv/ms_tunnel/' # microsrv_tunnel_url = 'http://127.0.0.1:33770/' # microsrv_tunnel_url = 'http://127.0.0.1:33710/microsrv/tunnel' # microsrv_controller_url = 'http://10.9.63.208:7799/microsrv/ms_controller/' # microsrv_controller_url = 'http://10.9.63.140:12727/' # microsrv_controller_url = 'http://127.0.0.1:33710/microsrv/controller' # te_topo_man_url = 'http://127.0.0.1:32769' # te_topo_man_url = 'http://10.9.63.208:7799/topo/' # te_flow_man_url = 'http://127.0.0.1:32770' # te_customer_man_url = 'http://127.0.0.1:32771' # te_lsp_man_url = 'http://127.0.0.1:32772' # te_lsp_man_url = 'http://10.9.63.208:7799/lsp/' # te_flow_sched_url = 'http://127.0.0.1:32773' te_flow_rest_port = 34770 te_sched_rest_port = 34773 te_protocol = 'http://' te_host_port_divider = ':' openo_ms_url_prefix = '/openoapi/microservices/v1/services' openo_dm_url_prefix = '/openoapi/drivermgr/v1/drivers' openo_esr_url_prefix = '/openoapi/extsys/v1/sdncontrollers' openo_brs_url_prefix = '/openoapi/sdnobrs/v1' #driver controller url microsrv_juniper_controller_host = "https://219.141.189.67:8443" # microsrv_zte_controller_host = "http://219.141.189.70:8181" microsrv_zte_controller_host = "http://127.0.0.1:33710" microsrv_alu_controller_host = "http://219.141.189.68" microsrvurl_dict = { 'openo_ms_url':'http://127.0.0.1:8086/openoapi/microservices/v1/services', 'openo_dm_url':'http://127.0.0.1:8086/openoapi/drivermgr/v1/drivers', # Get SDN Controller by id only need this Method:GET # /openoapi/extsys/v1/sdncontrollers/{sdnControllerId} 'openo_esr_url':'http://127.0.0.1:8086/openoapi/extsys/v1/sdncontrollers', # get: summary: query ManagedElement 'openo_brs_url':'http://127.0.0.1:8086/openoapi/sdnobrs/v1', 'te_topo_rest_port':8610, 'te_cust_rest_port':8600, 'te_lsp_rest_port':8620, 'te_driver_rest_port':8670, 'te_msb_rest_port':8086, 'te_msb_rest_host':'127.0.0.1', 'te_topo_rest_host':'127.0.0.1', 'te_cust_rest_host':'127.0.0.1', 'te_lsp_rest_host':'127.0.0.1', 'te_driver_rest_host':'127.0.0.1', 'microsrv_linkstat_url': 'http://127.0.0.1:33710/microsrv/link_stat', 'microsrv_topo_url': 'http://127.0.0.1:33710/microsrv/topo', 'microsrv_cust_url': 'http://127.0.0.1:33710/microsrv/customer', 'microsrv_flow_url': 'http://127.0.0.1:33710/microsrv/flow', 'microsrv_tunnel_url': 'http://127.0.0.1:33710/microsrv/tunnel', 'microsrv_controller_url': 'http://127.0.0.1:33710/microsrv/controller', 'te_topo_man_url': 'http://127.0.0.1:32769', 'te_flow_man_url': 'http://127.0.0.1:32770', 'te_customer_man_url': 'http://127.0.0.1:32771', 'te_lsp_man_url': 'http://127.0.0.1:32772', 'te_flow_sched_url': 'http://127.0.0.1:32773' }
__author__ = 'liyiqun' te_flow_rest_port = 34770 te_sched_rest_port = 34773 te_protocol = 'http://' te_host_port_divider = ':' openo_ms_url_prefix = '/openoapi/microservices/v1/services' openo_dm_url_prefix = '/openoapi/drivermgr/v1/drivers' openo_esr_url_prefix = '/openoapi/extsys/v1/sdncontrollers' openo_brs_url_prefix = '/openoapi/sdnobrs/v1' microsrv_juniper_controller_host = 'https://219.141.189.67:8443' microsrv_zte_controller_host = 'http://127.0.0.1:33710' microsrv_alu_controller_host = 'http://219.141.189.68' microsrvurl_dict = {'openo_ms_url': 'http://127.0.0.1:8086/openoapi/microservices/v1/services', 'openo_dm_url': 'http://127.0.0.1:8086/openoapi/drivermgr/v1/drivers', 'openo_esr_url': 'http://127.0.0.1:8086/openoapi/extsys/v1/sdncontrollers', 'openo_brs_url': 'http://127.0.0.1:8086/openoapi/sdnobrs/v1', 'te_topo_rest_port': 8610, 'te_cust_rest_port': 8600, 'te_lsp_rest_port': 8620, 'te_driver_rest_port': 8670, 'te_msb_rest_port': 8086, 'te_msb_rest_host': '127.0.0.1', 'te_topo_rest_host': '127.0.0.1', 'te_cust_rest_host': '127.0.0.1', 'te_lsp_rest_host': '127.0.0.1', 'te_driver_rest_host': '127.0.0.1', 'microsrv_linkstat_url': 'http://127.0.0.1:33710/microsrv/link_stat', 'microsrv_topo_url': 'http://127.0.0.1:33710/microsrv/topo', 'microsrv_cust_url': 'http://127.0.0.1:33710/microsrv/customer', 'microsrv_flow_url': 'http://127.0.0.1:33710/microsrv/flow', 'microsrv_tunnel_url': 'http://127.0.0.1:33710/microsrv/tunnel', 'microsrv_controller_url': 'http://127.0.0.1:33710/microsrv/controller', 'te_topo_man_url': 'http://127.0.0.1:32769', 'te_flow_man_url': 'http://127.0.0.1:32770', 'te_customer_man_url': 'http://127.0.0.1:32771', 'te_lsp_man_url': 'http://127.0.0.1:32772', 'te_flow_sched_url': 'http://127.0.0.1:32773'}
class QgisCtrl(): def __init__(self, iface): super(QgisCtrl, self).__init__() self.iface = iface
class Qgisctrl: def __init__(self, iface): super(QgisCtrl, self).__init__() self.iface = iface
def add_numbers(a, b): return a + b def two_n_plus_one(a): return 2 * a + 1
def add_numbers(a, b): return a + b def two_n_plus_one(a): return 2 * a + 1
''' ## Question ### 13. [Roman to Integer](https://leetcode.com/problems/palindrome-number/) Roman numerals are represented by seven different symbols: `I, V, X, L, C, D and M` . | | | |**Symbol**|**Value**| |:--:|:--:| |I|1| |V|5| |X|10| |L|50| |C|100| |D|500| |M|1000| For example, `two` is written as `II` in Roman numeral, just two one's added together. `Twelve` is written as, `XII`, which is simply `X + II`. The number `twenty seven` is written as `XXVII`, which is `XX + V + II`. Roman numerals are usually written largest to smallest from left to right. However, the numeral for `four` is not `IIII`. Instead, the number four is written as `IV`. Because the one is before the five we subtract it making four. The same principle applies to the number nine, which is written as IX. There are six instances where subtraction is used: `I` can be placed before `V (5)` and `X (10)` to make `4` and `9`. `X` can be placed before `L (50)` and `C (100)` to make `40` and `90`. `C` can be placed before `D (500)` and `M (1000)` to make `400` and `900`. Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from `1 to 3999`. Example 1: ``` Input: "III" Output: 3 ``` Example 2: ``` Input: "IV" Output: 4 ``` Example 3: ``` Input: "IX" Output: 9 ``` Example 4: ``` Input: "LVIII" Output: 58 Explanation: L = 50, V= 5, III = 3. ``` Example 5: ``` Input: "MCMXCIV" Output: 1994 Explanation: M = 1000, CM = 900, XC = 90 and IV = 4. ``` ''' ## Solutions def check(a): if(a == 'I'): return 1 elif(a == 'V'): return 5 elif(a == 'X'): return 10 elif(a == 'L'): return 50 elif(a == 'C'): return 100 elif(a == 'D'): return 500 elif(a == 'M'): return 1000 else: return -1 class Solution: def romanToInt(self, s: str) -> int: s = str(s) i = 0 res = 0 if(len(s) == 1): return check(s[0]) else: while i < len(s)-1: a = check(s[i]) b = check(s[i+1]) if(a < b): res = res + (b - a) i = i + 2 else: res = res + a i = i + 1 if(i == len(s) - 1): res = res + check(s[-1]) return res # Runtime: 140 ms # Memory Usage: 13.1
""" ## Question ### 13. [Roman to Integer](https://leetcode.com/problems/palindrome-number/) Roman numerals are represented by seven different symbols: `I, V, X, L, C, D and M` . | | | |**Symbol**|**Value**| |:--:|:--:| |I|1| |V|5| |X|10| |L|50| |C|100| |D|500| |M|1000| For example, `two` is written as `II` in Roman numeral, just two one's added together. `Twelve` is written as, `XII`, which is simply `X + II`. The number `twenty seven` is written as `XXVII`, which is `XX + V + II`. Roman numerals are usually written largest to smallest from left to right. However, the numeral for `four` is not `IIII`. Instead, the number four is written as `IV`. Because the one is before the five we subtract it making four. The same principle applies to the number nine, which is written as IX. There are six instances where subtraction is used: `I` can be placed before `V (5)` and `X (10)` to make `4` and `9`. `X` can be placed before `L (50)` and `C (100)` to make `40` and `90`. `C` can be placed before `D (500)` and `M (1000)` to make `400` and `900`. Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from `1 to 3999`. Example 1: ``` Input: "III" Output: 3 ``` Example 2: ``` Input: "IV" Output: 4 ``` Example 3: ``` Input: "IX" Output: 9 ``` Example 4: ``` Input: "LVIII" Output: 58 Explanation: L = 50, V= 5, III = 3. ``` Example 5: ``` Input: "MCMXCIV" Output: 1994 Explanation: M = 1000, CM = 900, XC = 90 and IV = 4. ``` """ def check(a): if a == 'I': return 1 elif a == 'V': return 5 elif a == 'X': return 10 elif a == 'L': return 50 elif a == 'C': return 100 elif a == 'D': return 500 elif a == 'M': return 1000 else: return -1 class Solution: def roman_to_int(self, s: str) -> int: s = str(s) i = 0 res = 0 if len(s) == 1: return check(s[0]) else: while i < len(s) - 1: a = check(s[i]) b = check(s[i + 1]) if a < b: res = res + (b - a) i = i + 2 else: res = res + a i = i + 1 if i == len(s) - 1: res = res + check(s[-1]) return res
# Lesson 2 class FakeSocket: # These variables belong to the CLASS, not the instance! DEFAULT_IP = '127.0.0.1' DEFAULT_PORT = 12345 # instance methods can access instance, class, and static variables and methods. def __init__(self, ip=DEFAULT_IP, port=DEFAULT_PORT): # These variables belong to the INSTANCE, not the class! if self.ip_is_valid(ip): self._ip = ip else: self._ip = FakeSocket.DEFAULT_IP # class variables can be accessed through the class name self._ip = self.__class__.DEFAULT_IP # or the __class__ variable self._port = port def ip_address(self): return self._ip def port(self): return self._port # class methods can access class and static variables and methods, but not instance variables and methods! # The first parameter is the class itself! @classmethod def default_connection_parameters(cls): print(cls.__name__) return cls.DEFAULT_IP, cls.DEFAULT_PORT # cls is the same thing returned by self.__class__ # static methods cannot access any class members. # static methods are helper methods that don't operate on any class specific data, but still belong to the class @staticmethod def ip_is_valid(ip): # notice this is not self._ip! for byte_string in ip.split('.'): if 0 <= int(byte_string) <= 255: pass else: return False return True sock = FakeSocket('9999.99999.-12.0') print(sock.ip_address()) # Others can access our class members and functions too, unless we use our leading underscores! print(FakeSocket.DEFAULT_PORT)
class Fakesocket: default_ip = '127.0.0.1' default_port = 12345 def __init__(self, ip=DEFAULT_IP, port=DEFAULT_PORT): if self.ip_is_valid(ip): self._ip = ip else: self._ip = FakeSocket.DEFAULT_IP self._ip = self.__class__.DEFAULT_IP self._port = port def ip_address(self): return self._ip def port(self): return self._port @classmethod def default_connection_parameters(cls): print(cls.__name__) return (cls.DEFAULT_IP, cls.DEFAULT_PORT) @staticmethod def ip_is_valid(ip): for byte_string in ip.split('.'): if 0 <= int(byte_string) <= 255: pass else: return False return True sock = fake_socket('9999.99999.-12.0') print(sock.ip_address()) print(FakeSocket.DEFAULT_PORT)
class CacheItem: def __init__(self, id, value, compValue=1, order = 1) -> None: self.id = id self.compValue = compValue self.value = value self.order = order class PriorityQueue: items = [] def add(self, item: CacheItem): self.items.append(item) self.sort() def sort(self): self.items.sort(key = lambda x: (x.compValue, x.order)) def pop(self): return self.items.pop(0) class LFUCache: pq = PriorityQueue() cache = {} def __init__(self, capacity: int): self.size = capacity def get(self, key: int) -> int: value = self.cache.get(key, -1) if value == -1: return value value.compValue += 1 self.pq.sort() return value.value order = 1 def put(self, key: int, value: int) -> None: if key in self.cache.keys(): item = self.cache[key] item.value = value self.pq.sort() return item = CacheItem(key, value, 1, self.order) self.order +=1 if len(self.cache) == self.size: popped = self.pq.pop() del self.cache[popped.id] self.pq.add(item) self.cache[key] = item # Your LFUCache object will be instantiated and called as such: # obj = LFUCache(capacity) # param_1 = obj.get(key) # obj.put(key,value)
class Cacheitem: def __init__(self, id, value, compValue=1, order=1) -> None: self.id = id self.compValue = compValue self.value = value self.order = order class Priorityqueue: items = [] def add(self, item: CacheItem): self.items.append(item) self.sort() def sort(self): self.items.sort(key=lambda x: (x.compValue, x.order)) def pop(self): return self.items.pop(0) class Lfucache: pq = priority_queue() cache = {} def __init__(self, capacity: int): self.size = capacity def get(self, key: int) -> int: value = self.cache.get(key, -1) if value == -1: return value value.compValue += 1 self.pq.sort() return value.value order = 1 def put(self, key: int, value: int) -> None: if key in self.cache.keys(): item = self.cache[key] item.value = value self.pq.sort() return item = cache_item(key, value, 1, self.order) self.order += 1 if len(self.cache) == self.size: popped = self.pq.pop() del self.cache[popped.id] self.pq.add(item) self.cache[key] = item
def greaterThan(a, b): flag = True count = 0 for i in range(3): if a[i] < b[i]: flag = False break if a[i] > b[i]: count += 1 if not flag or count < 1: return False else: return True t = int(input()) for _ in range(t): l = [] for i in range(3): l.append(list(map(int, input().split()))) for i in range(len(l) - 1): for j in range(len(l) - i - 1): if greaterThan(l[j], l[j + 1]): l[j], l[j + 1] = l[j + 1], l[j] #print(l) flag = True for i in range(len(l) - 1): if not greaterThan(l[i + 1], l[i]): print("no") flag = False break if not flag: continue print("yes")
def greater_than(a, b): flag = True count = 0 for i in range(3): if a[i] < b[i]: flag = False break if a[i] > b[i]: count += 1 if not flag or count < 1: return False else: return True t = int(input()) for _ in range(t): l = [] for i in range(3): l.append(list(map(int, input().split()))) for i in range(len(l) - 1): for j in range(len(l) - i - 1): if greater_than(l[j], l[j + 1]): (l[j], l[j + 1]) = (l[j + 1], l[j]) flag = True for i in range(len(l) - 1): if not greater_than(l[i + 1], l[i]): print('no') flag = False break if not flag: continue print('yes')
i = 11 print(i) j = 12 print(j) f = 12.34 print(f) g = -0.99 print(g) s = "Hello, World" print(s) print(s[0]) print(s[:5]) print(s[7:12]) l = [2,3,4,5,7,11] print(l)
i = 11 print(i) j = 12 print(j) f = 12.34 print(f) g = -0.99 print(g) s = 'Hello, World' print(s) print(s[0]) print(s[:5]) print(s[7:12]) l = [2, 3, 4, 5, 7, 11] print(l)
# https://leetcode.com/problems/best-time-to-buy-and-sell-stock/ class Solution: def maxProfit(self, prices: list[int]) -> int: max_price = prices[-1] max_profit = 0 idx = len(prices) - 2 # Start from the penultimate item while idx >= 0: curr_price = prices[idx] profit = max_price - curr_price if profit > max_profit: max_profit = profit if curr_price > max_price: max_price = curr_price idx -= 1 return max_profit
class Solution: def max_profit(self, prices: list[int]) -> int: max_price = prices[-1] max_profit = 0 idx = len(prices) - 2 while idx >= 0: curr_price = prices[idx] profit = max_price - curr_price if profit > max_profit: max_profit = profit if curr_price > max_price: max_price = curr_price idx -= 1 return max_profit
##### CLASSE ARBRE ##### class Arbre: #Initialise l'arbre def __init__(self): #Valeur de l'arbre self.valeur = 0 #Fils gauche self.gauche = None #Fils droit self.droit = None #Position de l'arbre self.position = Position() def __str__(self): return "["+str(self.gauche)+","+str(self.droit)+"]" def __len__(self): return len(self.gauche) + len(self.droit) def poid(self): return self.gauche.poid() + self.droit.poid() #Emplacement du sous arbre gauche def equilibre(self): if type(self.gauche) is Arbre: self.gauche.equilibre() if type(self.droit) is Arbre: self.droit.equilibre() self.valeur = self.droit.poid() / (self.gauche.poid()+self.droit.poid()) #Feuille la plus lourde de l'arbre def maximum(self): if self.gauche.maximum() > self.droit.maximum(): return self.gauche.maximum() else: return self.droit.maximum() #Liste des feuille de l'arbre def listeElement(self): l = self.gauche.listeElement() l.extend(self.droit.listeElement()) return l #Largeur du noeud def largeurArbre(self): g = 0 d = 0 if type(self.gauche) is Feuille: g = self.gauche.valeur else: g = self.gauche.largeurArbre() if type(self.droit) is Feuille: d = self.droit.valeur else: d = self.droit.largeurArbre() return g+d #Place les arbres def placerArbre(self): largeur = self.largeurArbre()//2 self.gauche.position.x = -largeur*self.valeur self.gauche.position.y = 0 self.droit.position.x = self.gauche.position.x + largeur self.droit.position.y = 0 if type(self.gauche) is not Feuille: self.gauche.placerArbre() if type(self.droit) is not Feuille: self.droit.placerArbre() #Largeur de l'arbre pour le dessin def largeur(self): g = self.gauche.largeurGauche() + self.gauche.position.x d = self.droit.largeurDroit() + self.droit.position.x return - g + d def largeurGauche(self): return self.gauche.position.x + self.gauche.largeurGauche() def largeurDroit(self): return self.droit.position.x + self.droit.largeurDroit() #Longueur de l'arbre pour le dessin def longueur(self): hauteur = self.maximum() return self.longueurRec(hauteur) def longueurRec(self, hauteur): d = self.droit.position.y + self.droit.longueurRec(hauteur) g = self.gauche.position.y + self.gauche.longueurRec(hauteur) return hauteur + max(d,g) #Profondeur de l'arbre def hauteur(self): if self.gauche.hauteur() > self.droit.hauteur(): return self.gauche.hauteur()+1 return self.droit.hauteur()+1 #Construit le mobile def constructionArbre(self, v): poidG = self.gauche.poid() poidD = self.droit.poid() if v >= (poidG+poidD): A = Arbre() A.gauche = self A.droit = Feuille(v) return A if poidG == poidD: if self.gauche.hauteur() > self.droit.hauteur(): self.droit = self.droit.constructionArbre(v) else: self.gauche = self.gauche.constructionArbre(v) elif poidG > poidD : self.droit = self.droit.constructionArbre(v) else: self.gauche = self.gauche.constructionArbre(v) return self ###### CLASSE FEUILLE ##### class Feuille(Arbre): def __init__(self, v): self.valeur = v self.position = Position() def __str__(self): return str(self.valeur) def __len__(self): return 1 def poid(self): return self.valeur def maximum(self): return self.valeur def listeElement(self): return [self.valeur] def largeurGauche(self): return -self.valeur//2 def largeurDroit(self): return self.valeur//2 def longueur(self): hauteur = self.maximum() return self.longeurRec(hauteur) def longueurRec(self, hauteur): return hauteur + self.valeur//2 def hauteur(self): return 1 def constructionArbre(self, v): p = Arbre() p.gauche = self p.droit = Feuille(v) return p class Position: def __init__(self): self.x = 0 self.y = 0
class Arbre: def __init__(self): self.valeur = 0 self.gauche = None self.droit = None self.position = position() def __str__(self): return '[' + str(self.gauche) + ',' + str(self.droit) + ']' def __len__(self): return len(self.gauche) + len(self.droit) def poid(self): return self.gauche.poid() + self.droit.poid() def equilibre(self): if type(self.gauche) is Arbre: self.gauche.equilibre() if type(self.droit) is Arbre: self.droit.equilibre() self.valeur = self.droit.poid() / (self.gauche.poid() + self.droit.poid()) def maximum(self): if self.gauche.maximum() > self.droit.maximum(): return self.gauche.maximum() else: return self.droit.maximum() def liste_element(self): l = self.gauche.listeElement() l.extend(self.droit.listeElement()) return l def largeur_arbre(self): g = 0 d = 0 if type(self.gauche) is Feuille: g = self.gauche.valeur else: g = self.gauche.largeurArbre() if type(self.droit) is Feuille: d = self.droit.valeur else: d = self.droit.largeurArbre() return g + d def placer_arbre(self): largeur = self.largeurArbre() // 2 self.gauche.position.x = -largeur * self.valeur self.gauche.position.y = 0 self.droit.position.x = self.gauche.position.x + largeur self.droit.position.y = 0 if type(self.gauche) is not Feuille: self.gauche.placerArbre() if type(self.droit) is not Feuille: self.droit.placerArbre() def largeur(self): g = self.gauche.largeurGauche() + self.gauche.position.x d = self.droit.largeurDroit() + self.droit.position.x return -g + d def largeur_gauche(self): return self.gauche.position.x + self.gauche.largeurGauche() def largeur_droit(self): return self.droit.position.x + self.droit.largeurDroit() def longueur(self): hauteur = self.maximum() return self.longueurRec(hauteur) def longueur_rec(self, hauteur): d = self.droit.position.y + self.droit.longueurRec(hauteur) g = self.gauche.position.y + self.gauche.longueurRec(hauteur) return hauteur + max(d, g) def hauteur(self): if self.gauche.hauteur() > self.droit.hauteur(): return self.gauche.hauteur() + 1 return self.droit.hauteur() + 1 def construction_arbre(self, v): poid_g = self.gauche.poid() poid_d = self.droit.poid() if v >= poidG + poidD: a = arbre() A.gauche = self A.droit = feuille(v) return A if poidG == poidD: if self.gauche.hauteur() > self.droit.hauteur(): self.droit = self.droit.constructionArbre(v) else: self.gauche = self.gauche.constructionArbre(v) elif poidG > poidD: self.droit = self.droit.constructionArbre(v) else: self.gauche = self.gauche.constructionArbre(v) return self class Feuille(Arbre): def __init__(self, v): self.valeur = v self.position = position() def __str__(self): return str(self.valeur) def __len__(self): return 1 def poid(self): return self.valeur def maximum(self): return self.valeur def liste_element(self): return [self.valeur] def largeur_gauche(self): return -self.valeur // 2 def largeur_droit(self): return self.valeur // 2 def longueur(self): hauteur = self.maximum() return self.longeurRec(hauteur) def longueur_rec(self, hauteur): return hauteur + self.valeur // 2 def hauteur(self): return 1 def construction_arbre(self, v): p = arbre() p.gauche = self p.droit = feuille(v) return p class Position: def __init__(self): self.x = 0 self.y = 0
class A: def func(): pass class B: def func(): pass class C(B,A): pass c=C() c.func()
class A: def func(): pass class B: def func(): pass class C(B, A): pass c = c() c.func()
class Graph: def __init__(self, nodes): self.node = {i: set([]) for i in range(nodes)} def addEdge(self, src, dest, dir=False): self.node[src].add(dest) if not dir: self.node[dest].add(src) # for undirected edges class Solution: def hasCycle(self, graph): whiteset = set(graph.node.keys()) grayset = set([]) blackset = set([]) while len(whiteset) > 0: curr = whiteset.pop() if self.dfs(curr, graph, whiteset, grayset, blackset): return True return False def dfs(self, curr, graph, whiteset, grayset, blackset): if curr in whiteset: whiteset.remove(curr) grayset.add(curr) for neighbor in graph.node[curr]: if neighbor in blackset: continue #already explored if neighbor in grayset: return True #cycle found if self.dfs(neighbor, graph, whiteset, grayset, blackset): return True grayset.remove(curr) blackset.add(curr) return False def canFinish(self, numCourses: int, prerequisites: List[List[int]]) -> bool: g = Graph(numCourses) for src, dest in prerequisites: g.addEdge(src, dest, dir=True) return not self.hasCycle(g)
class Graph: def __init__(self, nodes): self.node = {i: set([]) for i in range(nodes)} def add_edge(self, src, dest, dir=False): self.node[src].add(dest) if not dir: self.node[dest].add(src) class Solution: def has_cycle(self, graph): whiteset = set(graph.node.keys()) grayset = set([]) blackset = set([]) while len(whiteset) > 0: curr = whiteset.pop() if self.dfs(curr, graph, whiteset, grayset, blackset): return True return False def dfs(self, curr, graph, whiteset, grayset, blackset): if curr in whiteset: whiteset.remove(curr) grayset.add(curr) for neighbor in graph.node[curr]: if neighbor in blackset: continue if neighbor in grayset: return True if self.dfs(neighbor, graph, whiteset, grayset, blackset): return True grayset.remove(curr) blackset.add(curr) return False def can_finish(self, numCourses: int, prerequisites: List[List[int]]) -> bool: g = graph(numCourses) for (src, dest) in prerequisites: g.addEdge(src, dest, dir=True) return not self.hasCycle(g)
epochs = 500 batch_size = 25 dropout = 0.2 variables_device = "/cpu:0" processing_device = "/cpu:0" sequence_length = 20 # input timesteps learning_rate = 1e-3 prediction_length = 2 # expected output sequence length embedding_dim = 5 # input dimension total number of features in our case ## BOSHLTD/ MICO same.... COMPANIES = ['EICHERMOT', 'BOSCHLTD', 'MARUTI', 'ULTRACEMCO', 'HEROMOTOCO',\ 'TATAMOTORS', 'BPCL', 'AXISBANK', 'TATASTEEL', 'ZEEL',\ 'CIPLA', 'TATAPOWER', 'BANKBARODA', 'NTPC', 'ONGC']; Twitter_consumer_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' Twitter_consumer_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' Twitter_access_token = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' Twitter_access_token_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' TOI_api_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' TOI_top_news_end_point = 'https://newsapi.org/v1/articles?source=cnbc&sortBy=top&apiKey=' TOI_business_end_point = 'https://newsapi.org/v1/articles?source=cnbc&sortBy=top&apiKey='
epochs = 500 batch_size = 25 dropout = 0.2 variables_device = '/cpu:0' processing_device = '/cpu:0' sequence_length = 20 learning_rate = 0.001 prediction_length = 2 embedding_dim = 5 companies = ['EICHERMOT', 'BOSCHLTD', 'MARUTI', 'ULTRACEMCO', 'HEROMOTOCO', 'TATAMOTORS', 'BPCL', 'AXISBANK', 'TATASTEEL', 'ZEEL', 'CIPLA', 'TATAPOWER', 'BANKBARODA', 'NTPC', 'ONGC'] twitter_consumer_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' twitter_consumer_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' twitter_access_token = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' twitter_access_token_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' toi_api_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' toi_top_news_end_point = 'https://newsapi.org/v1/articles?source=cnbc&sortBy=top&apiKey=' toi_business_end_point = 'https://newsapi.org/v1/articles?source=cnbc&sortBy=top&apiKey='