Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
BuglessCoder authored Dec 6, 2016
1 parent 9895a8a commit 9510a98
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions 三角形形状.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
a=3
b=4
c=5
a,b,c = sorted([a,b,c])
if (a+b)>c:
if a*a+b*b>c*c:
print("R")
elif a*a+b*b<c*c:
print("D")
elif a*a+b*b==c*c:
print("Z")
else:print("W")

0 comments on commit 9510a98

Please sign in to comment.