Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

2016/8/23

Pastebin.comPrintedPasteID:http://pastebin.com/A3A81iuh

1.
2.
3. 38,25,40,39,44,36,30,54,50,45,30,35,38,35,40,32,42,35,48,50
4.
5.
6.
7.
8. ary=[38,25,40,39,44,36,30,54,50,45,30,35,38,35,40,32,42,35,48,50];cnt=0
9. ans=[[],[],[],[],[],[]]
10.
11. forxinary:
12. a=int(x/10)
13.
14. ifa==1:
15. ans[1].append(x%10)
16. ifa==2:
17. ans[2].append(x%20)
18. ifa==3:
19. ans[3].append(x%30)
20. ifa==4:
21. ans[4].append(x%40)
22. ifa==5:
23. ans[5].append(x%50)
24.
25.
26. forxinans:
27. ifx!=[]:
28. x=x.sort()
29.
30. printans
31.
32.
33.
34. ***********************
35. 1:0
36. 2:0
37. 3:0025556889
38. 4:002458
39. 5:004
40. **********************
41.
42. 35

http://pastebin.com/print/A3A81iuh

1/1

You might also like