-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
19 lines (12 loc) · 759 Bytes
/
test.py
File metadata and controls
19 lines (12 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from random import *
import copy
import threading
A=[[1,2],[4.7]]
def search(L,R):
for i in range(0,len(L)):
if L[i]==R:
return i
shuffle(A)
print(A)
print(search(A,[]))
[(50, 1), (48, 3), (37, 2), (5, 3), (27, 2), (93, 4), (117, 0), (79, 2), (50, 3), (112, 2), (84, 0), (115, 2), (48, 1), (124, 4), (63, 0), (57, 3), (2, 0), (6, 0), (12, 0), (8, 0), (57, 0), (23, 0), (25, 3), (26, 1), (0, 4), (92, 1), (0, 1), (16, 1), (15, 1), (13, 1), (18, 1), (99, 1), (3, 4), (21, 1), (3, 1), (117, 1), (31, 1), (92, 1), (44, 2), (44, 1), (42, 1), (44, 1), (82, 4), (40, 3), (88, 4), (100, 2), (97, 3), (107, 1), (46, 1), (82, 1), (62, 1), (107, 1), (63, 3), (76, 1), (64, 1), (63, 1), (70, 1), (36, 2), (5, 2), (54, 0), (25, 0), (21, 1)]