This website requires JavaScript.
Explore
Help
Register
Sign In
Luthics
/
XJTU_Python
Watch
1
Star
0
Fork
You've already forked XJTU_Python
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
e0c587e7bf
XJTU_Python
/
homework
/
2
/
9.py
5 lines
91 B
Python
Raw
Blame
History
x
=
list
(
map
(
int
,
input
(
)
.
split
(
)
)
)
x
.
sort
(
)
a
=
x
[
0
]
b
=
x
[
1
]
print
(
round
(
(
a
+
b
)
*
(
b
-
a
+
1
)
/
2
)
)
Reference in New Issue
View Git Blame
Copy Permalink