removed ege

This commit is contained in:
Alexander Karpov 2023-06-20 13:33:50 +03:00
parent 86db1d979b
commit 76dd9d5af9
418 changed files with 0 additions and 16511474 deletions

19
ege/1.py vendored
View File

@ -1,19 +0,0 @@
with open("24.txt") as f:
data = f.read()
nx = [i for i in range(len(data)) if data[i] == "F"]
mx = 0
for bg in nx:
for eg in nx:
if eg > bg:
d = data[bg : eg + 1]
if d.count("A") <= 2:
if len(d) > mx:
mx = len(d)
else:
if bg % 1000 < 5:
print(f"broken, {bg}/{len(data)}, mx: {mx}")
break
print(mx)

BIN
ege/1/10.doc vendored

Binary file not shown.

BIN
ege/1/10.docx vendored

Binary file not shown.

BIN
ege/1/10.odt vendored

Binary file not shown.

4064
ege/1/10.rtf vendored

File diff suppressed because it is too large Load Diff

1033
ege/1/10.txt vendored

File diff suppressed because it is too large Load Diff

10
ege/1/12.py vendored
View File

@ -1,10 +0,0 @@
s = "1" + "0" * 55
while "1" in s:
if "10" in s:
s = s.replace("10", "001", 1)
else:
s = s.replace("1", "00", 1)
print(s.count("0"))

10000
ege/1/17.txt vendored

File diff suppressed because it is too large Load Diff

BIN
ege/1/18.ods vendored

Binary file not shown.

BIN
ege/1/18.xls vendored

Binary file not shown.

BIN
ege/1/18.xlsx vendored

Binary file not shown.

7
ege/1/2.py vendored
View File

@ -1,7 +0,0 @@
for x in range(2):
for y in range(2):
for z in range(2):
for w in range(2):
r = not (y <= w) or (x <= z) or not (x)
if not r:
print(x, w, y, z)

BIN
ege/1/22.ods vendored

Binary file not shown.

BIN
ege/1/22.xls vendored

Binary file not shown.

BIN
ege/1/22.xlsx vendored

Binary file not shown.

1
ege/1/24.txt vendored

File diff suppressed because one or more lines are too long

10001
ege/1/26.txt vendored

File diff suppressed because it is too large Load Diff

101
ege/1/27_A.txt vendored
View File

@ -1,101 +0,0 @@
100
11 105
23 39
24 43
26 94
32 114
38 50
44 35
55 60
66 95
73 40
84 21
85 54
93 41
110 50
128 10
129 68
137 62
143 66
146 106
155 65
167 118
188 77
192 55
194 63
210 57
238 27
240 106
245 102
248 40
251 69
261 13
278 41
287 109
300 100
311 25
315 79
321 115
322 75
345 80
355 115
367 57
376 62
384 54
392 69
402 48
417 103
438 86
444 14
481 32
520 103
538 40
547 77
552 113
592 118
593 83
596 40
612 90
615 111
616 119
618 32
623 55
636 61
638 20
649 120
650 110
658 76
661 83
663 82
668 73
669 71
683 5
691 102
693 19
738 16
743 13
757 98
759 14
769 83
770 45
783 83
818 43
837 106
843 30
845 54
872 47
876 112
888 101
905 14
912 109
920 57
925 90
927 48
932 47
946 91
947 102
956 66
961 106
971 50
996 8
997 94

1100001
ege/1/27_B.txt vendored

File diff suppressed because it is too large Load Diff

BIN
ege/1/3.ods vendored

Binary file not shown.

BIN
ege/1/3.xls vendored

Binary file not shown.

BIN
ege/1/3.xlsx vendored

Binary file not shown.

13
ege/1/5.py vendored
View File

@ -1,13 +0,0 @@
def f(n):
bin_n = bin(n)[2:]
if n % 2 == 0:
bin_n = "1" + bin_n + "0"
else:
bin_n = "11" + bin_n + "11"
return int(bin_n, 2)
for n in range(1000):
if f(n) > 225:
print(f(n))
break

24
ege/1/6.kum vendored
View File

@ -1,24 +0,0 @@
использовать Черепаха
алг
нач
опустить хвост
нц 2 раз
вперед(7)
вправо(90)
вперед(18)
вправо(90)
кц
поднять хвост
назад(-2)
вправо(90)
вперед(9)
влево(90)
опустить хвост
нц 2 раз
вперед(8)
вправо(90)
вперед(5)
вправо(90)
кц
кон

3
ege/1/7.py vendored
View File

@ -1,3 +0,0 @@
print((50 * 1024 * 8) * 1.55 / (320 * 512)) # 4
print(2**3)

25
ege/1/8.py vendored
View File

@ -1,25 +0,0 @@
def to_6(n):
s = ""
while n:
s += str(n % 6)
n //= 6
return s[::-1]
c = 0
ch = "02468"
for i in range(100000, 1000000):
s = to_6(i)
if s.count("2") == 1:
ind = s.index("2")
if ind == 0:
if s[1] in ch:
c += 1
elif ind == len(s) - 1:
if s[-2] in ch:
c += 1
else:
if s[ind - 1] in ch and s[ind + 1] in ch:
c += 1
print(c)

3200
ege/1/9.csv vendored

File diff suppressed because it is too large Load Diff

BIN
ege/1/9.ods vendored

Binary file not shown.

30
ege/1/9.py vendored
View File

@ -1,30 +0,0 @@
with open("9.txt") as f:
rows = [list(map(int, x.split())) for x in f.read().splitlines()]
cnt = 0
for row in rows:
mx = max(row)
row_c = row.copy()
del row_c[row.index(mx)]
if mx < sum(row_c):
f = True
for i in range(4):
n = [i]
for j in range(4):
if j not in n:
n = [i, j]
for c in range(4):
if c not in n:
n = [i, j, c]
for d in range(4):
if d not in n:
num1 = row[i]
num2 = row[j]
num3 = row[c]
num4 = row[d]
if num1 + num2 == num3 + num4:
f = False
if f:
cnt += 1
print(cnt)

3200
ege/1/9.txt vendored

File diff suppressed because it is too large Load Diff

BIN
ege/1/9.xls vendored

Binary file not shown.

BIN
ege/1/9.xlsx vendored

Binary file not shown.

Binary file not shown.

View File

@ -1,27 +0,0 @@
g = {
"а": "бг",
"б": "д",
"в": "абгд",
"г": "еж",
"д": "иле",
"е": "вл",
"ж": "е",
"и": "л",
"к": "ж",
"л": "жк",
}
def run(p, path):
if p == "е" and path:
return 1
ns = g[p]
r = 0
for n in ns:
if n not in path:
r += run(n, path + [n])
return r
print(run("е", []))

View File

@ -1,7 +0,0 @@
for x in range(2):
for y in range(2):
for w in range(2):
for z in range(2):
r = not (w <= z) or (x <= y) or not (x)
if not r:
print(w, z, y, x)

View File

@ -1,101 +0,0 @@
100
2 101
9 80
12 65
15 21
25 86
48 15
76 26
97 83
101 83
125 82
132 25
161 23
164 106
165 107
168 41
169 15
193 53
197 17
244 81
246 65
250 67
261 52
279 81
283 112
289 64
292 105
310 18
324 73
325 83
329 21
344 115
373 28
382 75
383 31
392 69
405 32
423 35
429 40
448 55
471 63
474 30
477 17
483 50
496 49
510 47
512 43
525 45
540 41
546 47
555 70
563 10
567 42
574 50
575 12
583 54
596 78
615 33
618 25
626 43
629 76
642 44
646 8
651 64
659 26
668 31
678 14
682 52
694 102
696 91
701 81
707 62
717 39
723 85
736 38
747 39
759 91
769 57
772 74
795 69
798 73
804 85
818 23
820 90
824 71
825 58
839 69
846 38
860 24
885 40
890 25
891 83
897 82
898 42
913 79
922 87
935 83
944 12
973 27
982 100
998 77

View File

@ -1,13 +0,0 @@
def f(n):
bin_n = bin(n)[2:]
if bin_n.count("1") % 2:
bin_n = "11" + bin_n[2:] + "1"
else:
bin_n = "10" + bin_n[2:] + "0"
return int(bin_n, 2)
for i in range(200):
if f(i) >= 16:
print(i)
break

View File

@ -1,23 +0,0 @@
alf = "01234567"
nc = ["1", "3", "5", "7"]
cnt = 0
for a in alf[1:]:
for b in alf:
for c in alf:
for d in alf:
for e in alf:
w = a + b + c + d + e
if w.count("6") == 1:
if a == "6":
if b not in nc:
cnt += 1
elif e == "6":
if d not in nc:
cnt += 1
else:
mnc = w[w.index("6") - 1]
mxc = w[w.index("6") + 1]
if mnc not in nc and mxc not in nc:
cnt += 1
print(cnt)

View File

@ -1,21 +0,0 @@
with open("9.txt") as f:
data = f.read().split("\n")
nums = [list(map(int, x.split())) for x in data]
n = 0
for row in nums:
m = max(row)
s = sum(row) - m
if m < s:
res = []
for i in range(4):
for j in range(4):
if i != j:
s1 = row[i] + row[j]
res.append(sum(row) / 2 == s1)
if any(res):
n += 1
print(n)

11
ege/12.py vendored
View File

@ -1,11 +0,0 @@
r = "01111111222122212220"
while "00" not in r:
if "011" in r:
r = r.replace("011", "101", 1)
else:
r = r.replace("01", "40", 1)
r = r.replace("02", "20", 1)
r = r.replace("0222", "1401", 1)
print(r.count("4"))

3
ege/121311.py vendored
View File

@ -1,3 +0,0 @@
a = []
a.append("1")
print(a + ["2"])

BIN
ege/13022023/10.docx vendored

Binary file not shown.

BIN
ege/13022023/10.pdf vendored

Binary file not shown.

8185
ege/13022023/10.rtf vendored

File diff suppressed because it is too large Load Diff

1201
ege/13022023/10.txt vendored

File diff suppressed because one or more lines are too long

5000
ege/13022023/17.txt vendored

File diff suppressed because it is too large Load Diff

BIN
ege/13022023/18.xls vendored

Binary file not shown.

7
ege/13022023/2.py vendored
View File

@ -1,7 +0,0 @@
for x in range(2):
for y in range(2):
for w in range(2):
for z in range(2):
r = (w == y) or ((not (x) <= z) and (not (z) <= y))
if not r:
print(y, z, w, x)

BIN
ege/13022023/22.xlsx vendored

Binary file not shown.

1
ege/13022023/24.txt vendored

File diff suppressed because one or more lines are too long

1001
ege/13022023/26.txt vendored

File diff suppressed because it is too large Load Diff

103
ege/13022023/27-A.txt vendored
View File

@ -1,103 +0,0 @@
102
46
4
78
92
6
58
99
84
52
57
22
95
45
92
66
8
61
95
84
72
33
29
97
47
31
32
58
7
23
88
90
91
90
40
82
53
43
24
1
30
74
39
69
47
27
58
38
76
84
97
70
35
56
86
65
2
10
11
32
78
62
13
60
17
54
92
40
86
85
44
4
28
45
49
93
47
80
19
30
21
5
43
9
20
48
50
70
57
55
9
54
96
73
29
14
98
50
33
38
73
38
83

2024001
ege/13022023/27-B.txt vendored

File diff suppressed because it is too large Load Diff

15
ege/13022023/5.py vendored
View File

@ -1,15 +0,0 @@
def f(n, m):
n = str(n)
m = str(m)
s = str(int(n[0]) + int(m[0]))
s += str(int(n[1]) + int(m[1]))
return int(s[-4:-1])
r = []
for x in range(100, 1000):
for y in range(100, 1000):
if f(x, y) == 2:
r.append(x)
print(max(r))

24
ege/13022023/8.py vendored
View File

@ -1,24 +0,0 @@
alf = "ЕКОФ"
sgl = "КФ"
r = []
n = 1
for a in alf:
for b in alf:
for c in alf:
for d in alf:
for e in alf:
w = a + b + c + d + e
if w.count("О") == 1:
i = w.index("О")
if i == 0:
f = w[i + 1] not in sgl
elif i == 4:
f = w[i - 1] not in sgl
else:
f = w[i + 1] not in sgl and w[i - 1] not in sgl
if f:
r.append(n)
n += 1
print(min(r) + max(r))

6400
ege/13022023/9.csv vendored

File diff suppressed because it is too large Load Diff

28
ege/13022023/9.py vendored
View File

@ -1,28 +0,0 @@
with open("9.txt") as f:
data = f.read().splitlines()
nums = [list(map(int, x.split())) for x in data]
n = 0
for row in nums:
indx = [row.count(x) for x in row]
if indx.count(2) == 2 and indx.count(1) == 4:
f = False
for i1 in range(6):
for i2 in range(6):
if i2 != i1:
for i3 in range(6):
if i3 not in [i1, i2]:
for j1 in range(6):
if j1 not in [i1, i2, i3]:
for j2 in range(6):
if j2 in [i1, i2, i3, j1]:
for j3 in range(6):
if j3 in [i1, i2, i3, j1, j2]:
s1 = row[i1] + row[i2] + row[i3]
s2 = row[j1] + row[j2] + row[j3]
if s1 == s2:
f = True
if f:
n += 1
print(n)

6400
ege/13022023/9.txt vendored

File diff suppressed because it is too large Load Diff

BIN
ege/13022023/9.xls vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

9
ege/13118674/12.py vendored
View File

@ -1,9 +0,0 @@
for x in range(70):
for y in range(70):
for z in range(70):
ed = y + z
dw = z
tr = x + y + z
if ed == 20 and dw == 10 and tr == 70:
print(x, y, z)

3
ege/13118674/14.py vendored
View File

@ -1,3 +0,0 @@
n = 4**1014 + 2**1012 - 7
n = bin(n)[2:]
print(n.count("1"))

13
ege/13118674/15.py vendored
View File

@ -1,13 +0,0 @@
for A in range(1000):
f = True
for x in range(1000):
for y in range(1000):
r = (x + 2 * y < A) or (y > x) or (x > 20)
if not r:
f = False
break
if not f:
break
if f:
print(A)
break

7
ege/13118674/16.py vendored
View File

@ -1,7 +0,0 @@
def f(n):
if n <= 2:
return 1
return f(n - 1) + 2 * f(n - 2)
print(f(7))

7
ege/13118674/2.py vendored
View File

@ -1,7 +0,0 @@
for x in range(2):
for y in range(2):
for w in range(2):
for z in range(2):
r = ((x <= y) == (w <= x)) and (z <= w)
if r:
print(x, w, z, y)

BIN
ege/13118674/3.xlsx vendored

Binary file not shown.

12
ege/13118674/5.py vendored
View File

@ -1,12 +0,0 @@
def f(n):
sn = str(n)
r = sorted(
[int(sn[0]) + int(sn[1]), int(sn[1]) + int(sn[2]), int(sn[2]) + int(sn[3])]
)
return "".join([str(x) for x in r[-2:]])
for i in range(1000, 10000):
if f(i) == "1418":
print(i)
break

8
ege/13118674/8.py vendored
View File

@ -1,8 +0,0 @@
n = 0
for a1 in "xyz":
for a2 in "abcd":
for a3 in "abcd":
for a4 in "abcd":
n += 1
print(n)

8
ege/13118674/9.py vendored
View File

@ -1,8 +0,0 @@
with open("9.txt") as f:
data = f.read().splitlines()[1:]
nums = []
for x in data:
nums += list(map(float, x.split()[1:]))
n = min(nums)
print(len([x for x in nums if x > n * 2]))

92
ege/13118674/9.txt vendored
View File

@ -1,92 +0,0 @@
0:00 1:00 2:00 3:00 4:00 5:00 6:00 7:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 17:00 18:00 19:00 20:00 21:00 22:00 23:00
4/1/2021 13.7 12.4 12.4 12.4 13.8 10.8 11.9 15.4 17.0 20.5 21.5 22.6 25.0 22.0 25.0 25.7 26.4 25.4 22.9 24.3 19.8 18.5 15.9 16.5
4/2/2021 13.8 12.1 12.8 14.8 10.7 13.5 10.3 13.4 15.6 19.1 21.9 19.9 25.0 21.2 26.8 25.3 26.0 25.4 25.6 22.6 19.4 16.8 13.3 15.3
4/3/2021 12.1 13.2 14.3 14.8 13.5 12.1 9.2 15.0 18.2 19.3 21.8 21.6 25.0 21.2 25.7 26.2 25.9 25.5 25.1 21.2 17.2 15.4 14.4 16.5
4/4/2021 12.6 12.3 14.5 13.9 11.6 13.6 10.7 13.7 17.7 17.1 20.8 21.6 25.8 21.6 21.5 22.9 24.3 26.7 26.0 21.5 20.0 17.6 15.9 15.6
4/5/2021 14.8 13.0 12.0 14.4 14.8 10.3 10.4 16.6 16.9 18.1 20.2 20.7 25.1 21.1 22.9 22.1 26.5 25.1 24.3 22.0 19.6 15.6 14.0 14.7
4/6/2021 15.1 14.4 15.3 14.8 13.4 10.4 11.3 13.4 17.5 19.2 20.2 21.4 20.0 25.8 21.0 26.6 25.7 25.1 25.2 20.2 20.1 16.5 17.0 13.9
4/7/2021 13.7 13.7 12.5 13.0 10.6 11.4 9.5 13.0 19.0 17.1 21.7 21.6 25.3 22.1 22.0 25.4 26.8 25.1 26.6 20.2 19.0 18.2 15.1 16.5
4/8/2021 12.7 13.3 15.4 13.6 11.6 11.0 8.5 16.2 18.5 20.1 19.7 19.0 22.2 20.5 26.7 22.1 26.2 25.6 25.7 20.0 20.3 17.5 13.4 17.0
4/9/2021 15.4 16.0 13.5 15.5 14.0 11.7 8.4 14.1 16.3 20.9 21.7 21.0 25.4 21.6 25.5 26.7 22.7 25.6 25.3 21.0 11.3 16.1 16.0 14.2
4/10/2021 15.0 15.6 15.0 14.8 13.4 13.3 11.7 14.4 17.9 17.0 20.7 21.0 25.6 21.7 21.3 25.1 22.1 25.6 25.5 19.0 20.5 17.9 16.7 16.6
4/11/2021 15.6 15.9 16.0 12.8 10.6 11.7 8.2 13.6 15.4 20.7 21.1 21.4 21.0 21.6 22.6 22.0 25.9 22.8 25.8 20.9 20.8 15.2 16.1 15.0
4/12/2021 12.7 15.9 13.7 14.2 11.0 13.6 10.2 16.4 19.0 18.1 21.2 19.2 20.6 25.4 26.6 22.2 26.9 25.1 25.5 21.0 20.1 17.0 15.9 15.8
4/13/2021 12.5 13.8 14.2 12.7 14.0 10.5 9.9 16.3 18.2 17.1 22.0 19.7 22.3 22.1 21.0 25.9 25.8 25.0 25.4 21.7 18.0 17.9 15.6 16.1
4/14/2021 16.0 15.7 13.0 12.0 13.1 12.7 10.4 15.8 17.7 20.2 21.5 21.2 25.3 25.2 26.2 22.2 26.9 26.5 22.0 24.3 20.7 17.2 14.5 13.2
4/15/2021 15.4 15.2 14.3 15.2 13.4 12.3 8.6 15.7 16.7 17.0 21.6 22.2 25.3 21.7 21.0 22.7 28.1 25.6 26.9 19.8 18.1 18.1 17.0 15.0
4/16/2021 15.4 12.6 12.6 15.7 13.4 12.4 11.9 15.4 16.6 20.4 20.2 22.6 25.9 20.0 22.6 26.0 26.5 25.7 26.7 21.0 20.4 18.6 15.1 14.3
4/17/2021 14.5 12.7 13.6 12.8 13.1 11.1 10.9 16.7 15.8 20.4 11.3 22.6 25.0 20.3 26.0 22.0 25.5 27.0 28.1 20.0 17.1 16.5 16.6 13.8
4/18/2021 13.2 15.6 12.7 14.8 10.6 11.0 8.6 14.4 17.2 19.3 18.5 22.1 25.2 20.7 26.2 22.9 25.3 25.3 26.9 20.8 17.5 17.5 15.9 13.0
4/19/2021 12.8 13.2 14.8 13.6 12.0 11.0 9.6 13.6 16.0 17.6 11.3 20.2 25.3 22.6 26.3 25.0 22.4 25.4 25.1 19.4 17.2 17.3 17.0 14.9
4/20/2021 12.3 13.0 14.6 12.0 10.9 11.6 8.1 15.6 11.3 17.2 20.2 21.5 21.6 22.9 25.2 26.4 25.6 25.6 25.2 22.2 20.2 16.3 15.7 16.4
4/21/2021 14.6 13.9 13.2 14.9 12.7 11.2 12.0 13.9 17.7 21.0 18.9 20.8 25.2 24.3 25.5 22.3 25.3 26.4 26.3 19.2 17.7 16.7 15.4 16.9
4/22/2021 13.5 15.9 13.4 13.4 11.1 13.6 10.6 15.6 15.0 20.6 18.4 22.8 20.7 25.6 25.0 25.7 26.6 22.4 25.2 19.2 20.8 16.1 13.8 15.8
4/25/2021 13.3 14.7 16.0 14.3 10.1 13.7 8.9 16.7 17.8 17.7 20.4 19.8 22.8 25.6 22.7 22.3 25.4 22.8 25.3 21.2 18.8 15.9 14.1 14.9
4/26/2021 14.7 12.8 13.8 13.7 10.7 13.1 9.8 14.3 16.9 17.4 19.3 20.8 20.7 21.5 26.6 25.7 26.7 26.0 25.0 20.7 21.0 18.1 14.2 16.6
4/25/2021 15.3 12.3 13.3 14.5 11.4 10.3 10.4 14.8 18.4 18.4 20.7 20.5 21.5 20.7 22.7 28.1 25.3 25.1 25.6 19.8 20.6 18.1 13.8 13.8
4/26/2021 14.6 15.1 12.4 15.4 11.9 11.3 10.4 16.8 18.7 17.2 21.2 22.3 25.0 21.0 22.9 26.8 22.7 26.2 22.1 21.7 18.6 15.1 14.1 13.6
4/27/2021 14.4 12.2 15.0 13.4 13.8 13.6 9.9 15.0 16.9 17.9 19.3 22.6 20.6 21.2 25.5 25.6 25.4 25.7 26.4 19.9 17.4 18.5 14.6 13.5
4/28/2021 13.8 12.4 12.2 15.0 10.3 11.0 10.0 15.9 17.9 20.1 20.2 20.0 20.9 21.2 25.7 25.3 22.6 25.6 26.0 19.5 18.4 16.2 16.5 15.7
4/29/2021 12.0 13.3 15.2 14.8 13.3 13.5 11.2 15.0 18.6 17.1 20.5 20.5 25.7 20.2 25.9 25.4 25.1 25.8 25.0 21.8 19.2 17.6 13.1 15.7
4/30/2021 14.8 14.5 13.3 13.3 12.0 11.7 10.3 14.2 15.3 17.0 21.3 22.0 20.0 20.6 25.0 25.8 25.5 25.9 25.7 25.0 18.9 15.5 16.1 15.1
5/1/2021 17.8 11.3 19.9 18.8 17.9 16.0 16.4 19.2 25.2 22.0 25.8 28.1 25.0 25.7 27.3 30.6 28.0 28.2 29.5 26.6 22.0 26.0 18.2 21.0
5/2/2021 19.7 18.0 18.1 20.3 17.6 18.7 14.5 18.9 25.1 25.7 25.2 25.7 26.2 27.6 26.8 28.8 29.7 28.7 29.8 27.8 26.6 22.9 21.0 20.5
5/3/2021 19.3 19.8 11.3 18.4 18.5 11.3 16.6 20.5 25.1 25.1 26.7 26.0 25.7 28.9 29.3 31.0 28.6 29.9 30.5 27.4 25.6 22.8 20.6 18.0
5/4/2021 17.2 20.6 19.7 20.2 18.2 17.7 17.0 20.8 25.4 25.1 26.3 25.6 26.3 26.3 29.6 27.1 30.4 21.3 30.3 26.5 22.8 22.8 20.0 21.3
5/5/2021 18.8 18.4 18.5 11.3 19.0 15.1 13.6 19.9 21.4 22.8 26.4 27.2 26.8 25.0 29.6 28.0 28.8 30.9 30.2 26.4 24.3 25.0 21.2 20.4
5/6/2021 21.0 20.4 17.1 17.7 17.8 16.0 16.2 21.9 20.8 25.6 25.6 27.2 26.4 27.1 27.4 29.1 30.9 29.8 30.1 25.7 25.6 25.8 11.3 21.1
5/7/2021 20.3 19.1 20.1 20.7 18.5 15.7 14.1 19.8 20.5 22.0 26.4 25.5 28.1 27.3 26.9 29.1 27.9 30.0 30.1 26.6 26.9 20.7 21.2 20.3
5/8/2021 20.1 18.1 19.7 17.3 16.3 16.0 16.7 21.7 25.1 22.6 26.0 27.1 25.6 27.9 27.6 29.7 28.8 30.2 30.3 26.4 26.7 20.0 11.3 19.3
5/9/2021 20.4 19.9 20.7 18.8 15.9 15.2 14.0 20.0 24.3 22.9 26.0 27.0 27.3 29.0 28.2 27.9 28.9 30.1 30.6 26.0 22.0 25.7 21.5 18.4
5/10/2021 18.8 18.7 18.4 20.4 16.9 16.5 14.5 18.9 21.4 25.2 25.9 25.3 26.3 25.8 26.7 30.8 27.2 27.7 29.7 27.2 25.8 20.0 18.1 20.1
5/11/2021 19.0 18.6 20.0 19.8 17.9 18.0 16.9 20.5 20.1 25.9 25.7 25.6 25.0 26.7 29.3 30.5 28.1 27.9 27.6 25.4 25.8 20.4 20.7 19.9
5/12/2021 18.0 19.3 20.6 19.0 19.0 18.6 15.3 18.8 25.4 25.0 26.3 25.7 25.7 28.9 28.4 29.0 27.7 28.7 29.8 26.6 25.6 21.7 19.1 21.2
5/13/2021 17.3 17.8 21.0 19.5 15.0 15.3 13.3 18.4 22.6 25.7 25.8 26.9 21.3 26.8 28.4 28.0 30.2 30.2 27.0 28.0 22.6 25.4 18.1 20.6
5/14/2021 20.3 19.0 18.4 18.9 17.3 18.5 13.0 22.0 20.8 25.7 25.0 28.1 28.1 26.2 26.2 21.3 30.9 28.4 29.1 26.7 25.6 20.0 20.2 21.3
5/15/2021 18.6 19.3 20.2 19.4 16.0 15.1 15.8 21.8 25.7 25.8 25.5 26.9 28.8 28.8 27.5 29.7 27.0 30.3 27.1 25.9 26.4 22.9 20.6 18.7
5/16/2021 20.5 20.6 18.2 20.8 17.3 15.2 16.3 19.8 21.7 25.5 26.7 26.8 27.6 21.3 29.5 27.8 30.5 27.8 30.1 26.3 26.0 22.0 20.8 19.7
5/17/2021 19.5 18.4 19.0 20.3 16.4 15.0 15.3 20.1 25.0 25.9 26.9 26.3 28.5 28.0 27.1 30.6 29.7 31.0 27.5 26.5 22.4 22.0 19.8 19.0
5/18/2021 17.3 17.7 19.7 19.7 16.3 17.1 13.8 19.6 20.6 22.2 25.5 27.5 25.0 26.5 27.8 29.9 27.1 28.9 28.2 27.2 22.8 22.9 20.2 21.5
5/19/2021 18.8 18.7 17.3 11.3 18.0 17.2 14.0 18.4 21.3 26.0 28.1 26.5 25.7 27.6 27.6 30.8 28.2 28.0 21.3 25.7 22.9 25.5 19.2 19.3
5/20/2021 17.5 18.8 21.0 18.8 18.5 18.1 15.5 19.3 21.1 25.6 25.8 26.2 25.7 27.8 27.9 28.7 30.8 27.8 28.6 26.7 22.3 22.0 21.8 18.4
5/21/2021 20.2 20.6 20.2 19.7 17.8 16.6 13.6 20.0 20.4 25.7 25.0 27.7 27.8 26.5 29.7 28.5 28.0 27.3 29.5 27.1 22.2 21.4 21.3 20.5
5/22/2021 20.2 20.5 20.0 20.5 17.2 18.1 14.2 11.3 26.0 22.0 25.2 26.3 27.5 27.7 27.4 29.1 29.5 28.2 27.4 28.0 25.6 21.6 19.1 21.4
5/25/2021 17.4 11.3 11.3 18.4 18.9 17.0 13.2 21.9 22.8 25.5 25.8 27.2 21.3 26.5 26.3 27.5 30.6 28.8 31.0 28.0 25.3 25.6 21.9 21.8
5/26/2021 17.4 19.6 18.7 17.1 17.7 18.8 13.8 18.2 25.7 26.3 25.3 26.8 25.2 28.9 26.4 29.0 29.9 30.5 30.0 26.9 26.4 21.6 18.4 19.0
5/25/2021 18.6 17.2 20.7 20.2 19.0 16.0 13.6 20.5 25.3 26.7 26.6 26.4 28.5 26.9 28.1 27.9 29.3 27.2 29.9 25.4 25.3 22.9 11.3 19.1
5/26/2021 20.0 19.7 17.4 19.4 18.2 18.4 13.0 20.9 25.7 25.9 26.3 26.0 25.1 28.6 30.0 29.1 29.1 28.8 27.1 27.5 26.3 25.5 20.7 18.9
5/27/2021 20.9 18.9 20.0 20.3 16.5 16.6 13.8 19.8 22.3 24.3 25.8 25.5 26.3 29.0 29.6 28.4 28.1 28.7 28.8 25.6 25.1 20.9 19.1 20.6
5/28/2021 19.9 18.4 19.9 17.1 18.6 16.3 13.1 20.1 21.6 25.0 25.9 27.9 25.3 26.8 28.7 29.5 31.0 29.7 21.3 25.4 25.2 25.3 20.1 20.2
5/29/2021 20.7 18.0 20.8 17.3 16.2 15.6 14.6 19.6 22.3 26.4 26.6 27.1 26.5 28.4 28.2 27.1 29.9 29.8 28.9 27.4 26.9 22.1 18.6 19.7
5/30/2021 20.6 17.4 19.8 20.4 19.0 17.1 13.2 18.0 25.7 25.4 25.1 27.4 26.9 26.9 29.3 28.4 30.4 30.8 27.2 28.0 22.7 21.5 21.8 21.3
5/31/2021 19.2 20.8 20.5 18.1 16.0 18.4 15.3 18.1 21.4 25.2 26.7 27.5 26.4 27.4 29.3 28.8 27.2 27.1 27.3 27.0 22.3 21.3 21.9 20.3
6/1/2021 27.0 27.8 26.6 27.2 25.8 25.6 25.9 26.9 27.2 31.2 31.7 33.9 33.4 35.5 33.2 37.3 35.2 37.1 35.9 33.0 32.6 30.7 26.6 26.5
6/2/2021 27.1 26.2 27.1 27.2 26.6 26.8 22.4 28.1 29.0 29.7 33.4 34.2 34.8 33.2 34.2 35.2 36.8 35.3 37.1 32.2 30.3 29.1 21.3 27.6
6/3/2021 26.9 26.3 26.3 26.4 22.9 22.0 21.2 26.9 29.1 32.4 32.7 31.6 35.4 34.4 36.0 34.9 37.9 35.2 36.6 33.2 29.5 30.1 26.4 28.5
6/4/2021 25.5 26.9 26.7 27.8 28.1 25.8 21.2 27.9 29.1 30.4 31.7 33.5 33.1 33.5 35.2 37.9 37.3 34.1 35.3 32.6 30.2 28.6 27.2 27.6
6/5/2021 25.9 26.6 26.8 28.0 25.5 25.2 24.3 28.1 27.6 31.9 33.8 33.2 33.1 32.0 34.7 37.4 36.0 35.6 37.3 32.4 31.8 30.0 27.8 21.3
6/6/2021 26.7 27.6 26.9 25.9 26.3 22.1 22.4 26.3 28.2 32.0 30.1 33.1 34.6 35.3 36.6 37.2 36.2 34.9 37.4 34.4 31.6 21.3 25.9 25.7
6/7/2021 27.1 26.4 25.1 26.4 22.9 25.5 22.4 25.5 28.5 31.0 31.2 32.3 34.2 34.4 35.6 36.2 36.4 35.3 37.7 33.8 29.2 29.6 27.8 27.9
6/8/2021 26.7 26.8 26.6 26.7 26.7 25.3 21.7 26.7 28.8 30.0 33.7 34.1 33.8 32.9 34.3 35.2 35.7 34.1 34.8 32.1 29.4 30.5 25.4 28.4
6/9/2021 27.3 26.9 26.0 26.2 25.6 26.9 25.3 27.0 28.0 30.5 34.0 34.3 35.3 33.9 33.0 34.2 34.8 34.4 36.4 34.0 29.0 27.1 28.5 27.7
6/10/2021 26.0 26.5 27.7 26.7 25.7 25.2 24.3 27.2 31.0 32.1 31.4 34.2 32.9 32.6 34.8 36.0 36.1 37.7 34.1 32.1 29.6 21.3 26.5 28.4
6/11/2021 27.1 26.8 25.3 27.7 26.9 25.7 21.5 26.5 29.3 32.1 32.4 32.2 32.7 33.8 34.8 37.8 36.1 34.3 36.5 31.9 32.0 28.4 28.5 26.6
6/12/2021 26.4 27.7 28.1 25.9 25.6 22.7 21.7 28.9 27.8 32.2 33.6 34.6 35.6 32.9 34.9 36.7 35.7 35.4 35.3 33.6 31.3 29.0 27.7 28.8
6/13/2021 25.9 26.4 26.8 26.0 25.3 22.3 21.4 27.2 27.2 29.8 33.6 33.3 33.1 33.0 35.7 35.8 34.3 35.5 35.1 31.6 32.0 30.5 26.9 27.5
6/14/2021 26.6 27.4 26.9 25.3 25.1 22.6 22.9 26.0 30.6 30.0 32.3 33.5 33.5 34.8 35.8 37.5 37.1 35.4 36.4 33.8 29.2 28.5 26.6 28.7
6/15/2021 26.9 27.5 25.2 28.1 26.7 25.1 20.2 28.6 27.9 33.0 33.7 31.0 34.8 35.9 34.6 35.5 37.1 37.7 37.4 34.6 31.8 28.1 28.5 25.3
6/16/2021 25.2 25.1 27.0 26.8 25.3 25.0 22.4 28.1 30.4 32.5 30.9 34.2 32.2 33.5 33.1 35.5 35.8 34.5 37.3 33.6 30.0 30.3 28.5 28.5
6/17/2021 26.5 25.1 27.7 27.8 25.2 22.1 24.3 27.7 29.6 29.8 30.5 31.2 35.3 34.8 36.5 35.1 34.3 35.2 35.3 34.1 32.7 28.1 27.1 28.5
6/18/2021 26.2 27.9 26.6 28.0 22.6 25.0 22.1 27.0 30.5 31.3 31.6 34.1 33.1 34.7 34.5 37.3 36.9 36.0 39.0 31.1 29.1 27.5 26.0 26.2
6/19/2021 27.8 25.7 28.1 27.1 25.8 26.4 24.3 27.3 29.1 29.5 30.7 31.5 34.3 35.2 35.7 34.1 35.9 36.7 35.4 33.7 32.4 21.3 28.2 27.6
6/20/2021 26.4 25.7 26.9 26.9 25.9 25.4 20.2 28.1 27.1 29.6 33.8 31.9 35.1 32.1 36.6 36.4 37.6 36.0 34.2 31.5 31.8 30.8 28.6 27.2
6/21/2021 28.1 26.4 26.8 26.8 25.2 25.0 22.3 28.1 29.6 30.2 33.8 31.5 35.4 33.2 34.5 34.2 34.2 34.2 36.8 32.3 31.6 28.4 27.6 25.1
6/22/2021 26.3 26.3 26.0 27.8 25.9 22.4 22.0 28.1 30.7 29.6 32.1 31.5 35.1 33.3 36.8 39.0 37.7 34.0 37.7 31.4 33.0 27.4 28.1 28.1
6/25/2021 26.4 26.2 27.8 26.7 26.4 26.0 21.7 25.3 28.5 29.5 33.2 33.8 33.1 33.2 35.5 39.0 36.7 35.4 34.9 32.4 30.8 30.3 25.0 25.9
6/26/2021 26.9 25.0 26.2 26.0 22.8 26.4 20.2 28.2 31.0 30.3 32.2 34.6 32.8 34.7 34.5 37.2 35.9 37.8 39.0 32.1 32.3 21.3 28.1 25.1
6/25/2021 27.4 25.8 25.1 26.5 25.8 26.5 25.0 28.0 30.4 29.3 30.8 33.5 35.2 35.6 33.4 36.6 36.3 36.1 37.8 31.0 32.2 28.8 29.0 21.3
6/26/2021 26.6 25.4 26.4 26.6 26.9 25.3 21.8 26.0 29.3 31.9 34.0 31.6 32.2 35.1 36.3 34.4 35.4 35.9 37.2 34.3 29.4 30.1 27.1 28.9
6/27/2021 27.9 25.6 26.5 25.9 26.4 25.2 25.0 25.2 28.1 29.7 32.8 31.2 32.2 32.5 33.0 36.9 37.2 35.3 37.8 32.2 30.1 30.2 25.6 26.4
6/28/2021 26.4 27.5 26.2 26.5 24.3 25.2 20.9 27.0 30.9 29.3 31.2 34.9 33.9 33.4 33.7 35.1 36.2 34.4 34.8 31.5 30.5 27.7 27.4 27.8
6/29/2021 26.5 28.1 25.5 27.5 25.4 25.2 21.8 28.0 30.4 29.7 33.7 33.0 32.7 34.6 34.3 37.5 37.6 36.0 35.3 31.2 32.9 30.0 27.0 27.7
6/30/2021 28.1 27.1 25.7 26.2 25.4 22.3 25.7 28.7 28.9 31.5 31.3 33.4 35.5 33.4 34.4 35.5 37.0 37.2 37.4 33.0 32.0 29.8 27.3 25.2

7
ege/13150871/16.py vendored
View File

@ -1,7 +0,0 @@
def f(n):
if n <= 3:
return 1
return f(n - 3) + f(n - 2)
print(f(10))

14
ege/13150871/17.py vendored
View File

@ -1,14 +0,0 @@
with open("17.txt") as f:
data = list(map(int, f.read().split()))
res = []
for i in range(1, len(data)):
n1 = data[i - 1]
n2 = data[i]
if (n1 * n2) % 15 == 0:
if (n1 + n2) % 7 == 0:
res.append(n1 + n2)
print(len(res), max(res))

5542
ege/13150871/17.txt vendored

File diff suppressed because it is too large Load Diff

12
ege/13150871/19.py vendored
View File

@ -1,12 +0,0 @@
def f(x, p):
if x >= 41 or p > 3:
return p == 3
s = [f(x + 1, p + 1), f(x + 5, p + 1), f(x * 3, p + 1)]
return any(s)
for s in range(1, 41):
if f(s, 1):
print(s)
break

13
ege/13150871/20.py vendored
View File

@ -1,13 +0,0 @@
def f(x, p):
if x >= 41 or p > 4:
return p == 4
s = [f(x + 1, p + 1), f(x + 5, p + 1), f(x * 3, p + 1)]
if p % 2 == 1:
return any(s)
return all(s)
for s in range(1, 41):
if f(s, 1):
print(s)

28
ege/13150871/21.py vendored
View File

@ -1,28 +0,0 @@
def f(x, p):
if x >= 41 or p > 3:
return p == 3
s = [f(x + 1, p + 1), f(x + 5, p + 1), f(x * 3, p + 1)]
return any(s)
for s in range(1, 41):
if f(s, 1):
print(s)
print("---")
def f(x, p):
if x >= 41 or p > 5:
return p in [3, 5]
s = [f(x + 1, p + 1), f(x + 5, p + 1), f(x * 3, p + 1)]
if p % 2 == 0:
return any(s)
return all(s)
for s in range(1, 41):
if f(s, 1):
print(s)

BIN
ege/13150871/22.xlsx vendored

Binary file not shown.

17
ege/15.py vendored
View File

@ -1,17 +0,0 @@
def symb(x, y):
return x + y > 0
res = []
for z in range(10000):
f = True
for x in range(1000):
r = symb(x, z + 1) <= (int(not (symb(x, -7)) <= int(not (symb(x, 7)))))
if not r:
f = False
break
if f:
res.append(z)
print(max(res))

16
ege/16.py vendored
View File

@ -1,16 +0,0 @@
def f(n):
if n == 0:
return 0
if n % 2 == 0:
return f(n / 2) - 1
return f(n - 1) + 2
c = 0
for i in range(1000):
if f(i) == 3:
c += 1
print(c)

18
ege/17.py vendored
View File

@ -1,18 +0,0 @@
with open("17.txt") as f:
data = list(map(int, f.read().split()))
nl = [x for x in data if str(x)[-1] == "3"]
n = sum(nl) / len(nl)
m = max(data)
r = []
for i in range(1, len(data)):
num1 = data[i - 1]
num2 = data[i]
if m % num1 == 0 or m % num2 == 0:
if num1 + num2 > n:
r.append(num1 + num2)
print(len(r), min(r))

5000
ege/17.txt vendored

File diff suppressed because it is too large Load Diff

BIN
ege/18.xls vendored

Binary file not shown.

22
ege/19.py vendored
View File

@ -1,22 +0,0 @@
def f(x, y, p):
if x == 0 or y == 0 or (x == 1 and y % 2 != 0) or (y == 1 and x % 2 != 0) or p > 3:
return p == 3
if y <= x:
if y % 2 == 0:
return f(y // 2, y // 2, p + 1) or f(x - 3, y - 3, p + 1)
if x % 2 == 0:
return f(x // 2, x // 2, p + 1) or f(x - 3, y - 3, p + 1)
if y % 2 != 0 and y % 2 != 0:
return f(x - 3, y - 3, p + 1)
if x < y:
if x % 2 == 0:
return f(x // 2, x // 2, p + 1) or f(x - 3, y - 3, p + 1)
if y % 2 == 0:
return f(y // 2, y // 2, p + 1) or f(x - 3, y - 3, p + 1)
if y % 2 != 0 and y % 2 != 0:
return f(x - 3, y - 3, p + 1)
for s in range(1, 50):
if f(32, s, 1):
print(s)

23
ege/2.py vendored
View File

@ -1,23 +0,0 @@
with open("24.txt") as f:
data = f.read()
data = data.split("F")
mx = 0
mf = ""
for i in range(len(data)):
if data[i] and data[i].count("A") <= 2:
p = []
j = i + 1
try:
while data[j].count("A") <= 2:
p.append(data[j])
j += 1
s = "F" + "F".join(p) + "F"
if len(s) > mx:
mx = len(s)
mf = s
except IndexError:
break
print(mx, mf)

23
ege/20.py vendored
View File

@ -1,23 +0,0 @@
def f(x, y, p):
if x + y == 0 or p > 4:
return p == 4
s = []
if x >= 3 and y >= 3:
s.append(f(x - 3, y - 3, p + 1))
if x and x % 2 == 0:
s.append(f(x // 2, x // 2, p + 1))
if y and y % 2 == 0:
s.append(f(y // 2, y // 2, p + 1))
if not s:
return p == 4
if p % 2 == 1:
return all(s)
return any(s)
for k in range(100):
if f(32, k, 1):
print(k)

23
ege/21.py vendored
View File

@ -1,23 +0,0 @@
def f(x, y, p):
if x + y == 0 or p > 5:
return p in [3, 5]
s = []
if x >= 3 and y >= 3:
s.append(f(x - 3, y - 3, p + 1))
if x and x % 2 == 0:
s.append(f(x // 2, x // 2, p + 1))
if y and y % 2 == 0:
s.append(f(y // 2, y // 2, p + 1))
if not s:
return p in [3, 5]
if p % 2 == 0:
return all(s)
return any(s)
for k in range(1000):
if f(20, k, 1):
print(k)

Some files were not shown because too many files have changed in this diff Show More