16 lines
392 B
Plaintext
16 lines
392 B
Plaintext
def F( n : int) -> int:
|
|
return 1 if n == 20 else \
|
|
0 if n > 20 else \
|
|
F(n+1) + F(2*n)
|
|
|
|
graph = { 'A': {'C': 3, 'D': 1},
|
|
'B': {'C': 4, 'D': 5, 'E': 1},
|
|
'C': {'A': 3, 'B': 4, 'E': 2},
|
|
'D': {'A': 1, 'B': 5, 'E': 1},
|
|
'E': {'B': 1, 'C': 2, 'D': 1} }
|
|
|
|
print(graph,type(graph),sep = "\n")
|
|
|
|
#d = float(1)
|
|
#e = int('e')
|