Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- first_sv = list(map(int, input().split()))
- second_sv = list(map(int, input().split()))
- max_h = 0
- for i in range(n):
- if first_sv[i] + second_sv[i] > max_h:
- max_h = first_sv[i] + second_sv[i]
- mas_out = [['.'] * n] * max_h
- for i in range(max_h - 1, -1, -1):
- for j in range(n):
- if first_sv[j] + second_sv[j] - 1 >= i:
- if i > first_sv[j] - 1:
- mas_out[i][j] = '*'
- else:
- mas_out[i][j] = '#'
- print(''.join(mas_out[i]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement