Advertisement
NOBLE-_-MAN

4

Oct 25th, 2021
978
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. n = int(input())
  2. first_sv = list(map(int, input().split()))
  3. second_sv = list(map(int, input().split()))
  4. max_h = 0
  5. for i in range(n):
  6.     if first_sv[i] + second_sv[i] > max_h:
  7.         max_h = first_sv[i] + second_sv[i]
  8.  
  9. mas_out = [['.'] * n] * max_h
  10. for i in range(max_h - 1, -1, -1):
  11.     for j in range(n):
  12.         if first_sv[j] + second_sv[j] - 1 >= i:
  13.             if i > first_sv[j] - 1:
  14.                 mas_out[i][j] = '*'
  15.             else:
  16.                 mas_out[i][j] = '#'
  17.     print(''.join(mas_out[i]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement