Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
4
ile = int(input()) for i in range(ile): ciag = input().split(' ') parzyste = 0 nieparzyste = 0 i = 0 while int(ciag[i]) != 0: if int(ciag[i])%2==0: parzyste = parzyste + int(ciag[i]) else: nieparzyste = nieparzyste + int(ciag[i]) i += 1 print(parzyste,nieparzyste)
run
|
edit
|
history
|
help
0
X
0403_diamond
number factor memoised
shuru11
PYTHON 3
rstring
Prime numbers
Интересный Python - Вопрос 1
Game4
linked_lists