codepad | about

 Link:

Python, pasted on Mar 17:
 ```1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 ``` ```# coding: UTF-8 L = [100,101,102,100,101,102,103,104,105,100,101,102,103,104] list0 =[i for i,x in enumerate(L) if x/100.0 >= 1.00] list1 =[i for i,x in enumerate(L) if x/100.0 >= 1.01] list2 =[i for i,x in enumerate(L) if x/100.0 >= 1.02] list3 =[i for i,x in enumerate(L) if x/100.0 >= 1.03] list4 =[i for i,x in enumerate(L) if x/100.0 >= 1.04] print "list0[0]=" + str(list0[0]) + " " + str(list0) print "list1[0]=" + str(list1[0]) + " " + str(list1) print "list2[0]=" + str(list2[0]) + " " + str(list2) print "list3[0]=" + str(list3[0]) + " " + str(list3) print "list4[0]=" + str(list4[0]) + " " + str(list4) #1.00を見つけるまでにかかる時間 list0[0] #1.01を見つけるまでにかかる時間 list1[0] #1.02を見つけるまでにかかる時間 list2[0] #1.03を見つけるまでにかかる時間 list3[0] #1.04を見つけるまでにかかる時間 list4[0] ```

Output:
 ```1 2 3 4 5 ``` ```list0[0]=0 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] list1[0]=1 [1, 2, 4, 5, 6, 7, 8, 10, 11, 12, 13] list2[0]=2 [2, 5, 6, 7, 8, 11, 12, 13] list3[0]=6 [6, 7, 8, 12, 13] list4[0]=7 [7, 8, 13] ```

Comments: