-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreto1.py
More file actions
68 lines (52 loc) · 1005 Bytes
/
reto1.py
File metadata and controls
68 lines (52 loc) · 1005 Bytes
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
# l=[1,2,3]
# def sum(a):
# sum = 0
# for i in range(len(a)):
# sum = sum + a[i]
# return sum
# print(sum(l))
# l=[[1,2,3],[4,5,6],[7,8,9]]
# print(len(l))
# # print(l[1][2])
# for i in range(2):
# print (i)
# import sys
# def solve(a, b):
# m = (a + b) // 2
# print(m)
# sys.stdout.flush()
# s = input()
# if s == "CORRECT":
# return
# elif s == "TOO_SMALL":
# a = m + 1
# else:
# b = m - 1
# solve(a, b)
# T = int(input())
# for _ in range(T):
# a, b = map(int, input().split())
# _ = int(input())
# solve(a + 1, b)
# def array_diff(a, b):
# #your code here
# for i in a:
# print(a)
# for ii in b:
# if i == ii:
# print("removiendo {}".format(i))
# a.remove(i)
# return(a)
# print(array_diff([1,2,2],[2]))
# a=[1,2,2]
# # b=[2]
# # for i in b:
# # a.remove(i)
# # print(a)
# # seta=set(a)
# seta={1,1,1,2}
# print(type(seta))
# print(seta)
# def array_diff(a, b):
# #your code here
# print(array_diff([1,2,2],[2]))