def solution(s):
    if len(s) % 2 == 0:
        answer = s[len(s)//2-1:len(s)//2+1]
    else:
        answer = s[len(s)//2:len(s)//2+1]
    return answer

 

N = int(input())

arr = list(map(int, input().split()))

print(min(arr), max(arr))

 

N = int(input()) 

for i in range(N):
    for x in range(1, N+1):
        if x % 2 == 1:
            print("* ", end="") 
    print("")
    
    for x in range(1, N+1):
        if x % 2 == 0:
            print(" *", end="")
    print("")

def solution(arr):
    answer = []
    for i in range(len(arr)):
        if arr[i:i+1] == arr[i+1:i+2]:
            continue
        else:
            answer.append(arr[i])
    return answer

+ Recent posts