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 Nov 29, 2016
1 parent 9e7575d commit 2707ee1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 序列判断.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
L = [3,2,5,1,4]
L1 = sorted(L)
L2 = sorted(L, reverse=True)
if L==L1:
print('UP')
elif L==L2:
print('DOWN')
else:print('WRONG')

0 comments on commit 2707ee1

Please sign in to comment.