Відповідь:
def to_binary():
a,b = map(int,input().split())
print(bin(a)[2:],bin(b)[2:])
def odd_numbers():
a=int(input())
l=list(map(int,input().split()))
c=0
for i in l:
if i%2!=0 and i//10%2!=0 or i%2!=0 and i//10==0:
c+=1
print(c)
to_binary()
odd_numbers()
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Відповідь:
def to_binary():
a,b = map(int,input().split())
print(bin(a)[2:],bin(b)[2:])
def odd_numbers():
a=int(input())
l=list(map(int,input().split()))
c=0
for i in l:
if i%2!=0 and i//10%2!=0 or i%2!=0 and i//10==0:
c+=1
print(c)
to_binary()
odd_numbers()