Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
вправи в пайтон
testpgm
calcultion
delta5
Distribucion de cortes
fibo_1
standardization
two-digits-puzzle
inerse_matrix_gauss_jordan
exception handling from user
stackse - search stackoverflow differently
Please log in to post a comment.