Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
события
GINGERMANZ
PyBoolNone
Game4
Hello world
f strings 2
highest score question NPTEL
ConstructorBehaviourInInheritance
My webapp demo
binary_search_in_python
Please log in to post a comment.