Ответ:
count = int(input())
num = list(map(int, input().split()))
for i in range(count):
if num[i] % 5 == 0:
num[i] = 2 * num[i] // 5
elif num[i] % 2 == 0:
num[i] = 5 * num[i] // 2
print(*num)
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
count = int(input())
num = list(map(int, input().split()))
for i in range(count):
if num[i] % 5 == 0:
num[i] = 2 * num[i] // 5
elif num[i] % 2 == 0:
num[i] = 5 * num[i] // 2
print(*num)