Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
(P2) Ciągi 2
ciag = input().split(' ') i = 0 x = 0 if int(ciag[0]) == 0: print(-1) else: while int(ciag[i]) != 0: if x < int(ciag[i]): x = int(ciag[i]) i += 1 i = 0 y = x while int(ciag[i]) != 0: if y > int(ciag[i]): y = int(ciag[i]) i += 1 print(x-y)
run
|
edit
|
history
|
help
0
Hello world
PyWeekD
Prac1_2
quizcorrect
Считалка через массив
Game4
🙆👌
Bucket sort using LinkedList for each bucket
Ej2_PYTHON_203700377.
func1