标签:python水题
stopword = ‘‘ str = ‘‘ for line in iter(raw_input,stopword): str += line + ‘\n‘ L = str.strip().split(‘\n‘) L_num = [] for c in L: L_num.append(int(c)) L_down = L_num[:] L_up = L_num[:] L_down.sort(reverse = 1) L_up.sort() print ‘L_down=‘,L_down print ‘L_up=‘,L_up if L_num == L_down: print "DOWN" elif L_num == L_up: print "UP" else: print "WRONG"
本文出自 “Complex” 博客,谢绝转载!
标签:python水题
原文地址:http://10458754.blog.51cto.com/10448754/1665202