-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython_sort_sort.py
More file actions
executable file
·87 lines (59 loc) · 1.42 KB
/
python_sort_sort.py
File metadata and controls
executable file
·87 lines (59 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/local/bin/python2.7
# encoding=utf8
'''
import re
v = "aeiou"
c = "qwrtypsdfghjklzxcvbnm"
m = re.findall(r'(?<=[%s])([%s]{2,})[%s]' %(c,v,c), raw_input(),re.I)
print '\n'.join(m or ['-1'])
'''
'''
import re
m = re.search(r'([a-zA-Z0-9])\1+',raw_input().strip())
print (m.group(1) if m else -1)
'''
'''
import re
print "\n".join(i for i in re.split("[.,]+", raw_input().strip()) if len(i) > 0)
'''
"""
import re
a = int(raw_input())
b = (raw_input() for _ in range(a))
print map(lambda x: bool(re.match(r"^([0-9\+\-\.]+)$",x)), b)
"""
'''
a = int(raw_input())
b= [ map(str,raw_input().split()) for _ in range(a) ]
b.sort(key=lambda x: x[-2])
c = map(lambda x: "Mr. " + x[0] + " " + x[1] if x[-1] == 'M' else "Ms. " + x[0] + " " + x[1], b)
print "\n".join(c)
'''
'''
a = int(raw_input())
b= [ raw_input() for _ in range(a) ]
def func(argu):
c = []
for i in range(len(argu)):
c.append(argu[i][-10:])
c.sort()
for i in range(len(argu)):
print "+91 " + c[i][-10:][:5] + " " + c[i][-10:][5:]
func(b)
'''
'''
import re
reg = re.compile(r"^([a-z]|[A-Z]|[0-9]|[-]|[_])+@([a-z]|[A-Z]|[0-9])+\.([0-9]|[a-z]|[A-Z]){,3}$")
n = int(raw_input())
f = [ raw_input() for _ in range(n)]
print filter(reg.match,f)
'''
'''
row, column = map(int,raw_input().split())
a = [map(int,raw_input().split()) for _ in range(row)]
attr = raw_input()
a.sort(key=lambda x: x[int(attr)])
for i in a:
print " ".join(map(str,i))
print a, attr
'''