Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
(P2) Ciągi 2
ciag = input().split(' ') ciag = list(map(int, ciag)) i = 0 x = 0 if ciag[0] == 0 or ciag[1] ==0: print(-1) else: while ciag[i] != 0: if x < ciag[i]: x = ciag[i] i += 1 i = 0 y = x while ciag[i] != 0: if y > ciag[i]: y = ciag[i] i += 1 print(x-y)
run
|
edit
|
history
|
help
0
hi
prime number
metods.py
Ваня и забор
ACII_Art
sensi
Python3
(P2) Ciągi 2 - mapowanie
31 dec string
sept