mirror of
https://github.com/Alexander-D-Karpov/scripts.git
synced 2024-11-24 12:33:45 +03:00
976 lines
8.2 KiB
Python
976 lines
8.2 KiB
Python
Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32
|
|
Type "help", "copyright", "credits" or "license()" for more information.
|
|
|
|
============== RESTART: C:/Users/user340/Desktop/Вариант 14/19.py ==============
|
|
|
|
============== RESTART: C:/Users/user340/Desktop/Вариант 14/19.py ==============
|
|
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
|
|
|
|
============== RESTART: C:/Users/user340/Desktop/Вариант 14/20.py ==============
|
|
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
|
|
|
|
============== RESTART: C:/Users/user340/Desktop/Вариант 14/20.py ==============
|
|
16
|
|
38
|
|
39
|
|
42
|
|
43
|
|
46
|
|
47
|
|
50
|
|
51
|
|
|
|
============== RESTART: C:/Users/user340/Desktop/Вариант 14/20.py ==============
|
|
15
|
|
16
|
|
|
|
============== RESTART: C:/Users/user340/Desktop/Вариант 14/20.py ==============
|
|
16
|
|
38
|
|
39
|
|
42
|
|
43
|
|
46
|
|
47
|
|
50
|
|
51
|
|
|
|
============== RESTART: C:/Users/user340/Desktop/Вариант 14/23.py ==============
|
|
29
|
|
d = "123123"
|
|
for i in range(0, len(d), 3):
|
|
print(d[i:i+3])
|
|
|
|
|
|
123
|
|
123
|
|
d = "12312312"
|
|
for i in range(0, len(d), 3):
|
|
print(d[i:i+3])
|
|
|
|
|
|
123
|
|
123
|
|
12
|
|
|
|
========= RESTART: C:/Users/user340/Desktop/Вариант 14/Задание 24/24.py ========
|
|
Traceback (most recent call last):
|
|
File "C:/Users/user340/Desktop/Вариант 14/Задание 24/24.py", line 11, in <module>
|
|
for i in range(0, len(d), 3):
|
|
NameError: name 'd' is not defined. Did you mean: 'id'?
|
|
|
|
========= RESTART: C:/Users/user340/Desktop/Вариант 14/Задание 24/24.py ========
|
|
?!?!
|
|
?!!
|
|
!
|
|
!
|
|
!
|
|
!!!
|
|
?!?!
|
|
!
|
|
!!
|
|
?!?!!!?!
|
|
!?!
|
|
??!
|
|
!!!?!?!
|
|
!
|
|
?!?!
|
|
!
|
|
?!?!!!!?
|
|
!
|
|
!!
|
|
??
|
|
?!???
|
|
!?
|
|
?!?!!
|
|
!
|
|
!
|
|
!
|
|
?!?!!!
|
|
!
|
|
!!
|
|
!
|
|
?!?!!!!
|
|
!!?!
|
|
!!?!
|
|
?!?!?
|
|
?!!!!!
|
|
??!???
|
|
?!?!?
|
|
!?!!
|
|
?!?!
|
|
??!
|
|
?!????
|
|
?!!?!?!?
|
|
!?
|
|
?!?!
|
|
?!?!
|
|
!!?
|
|
?!?!!!!!?
|
|
?!?!
|
|
!
|
|
!?
|
|
?!!?!?!
|
|
?!?!!!?
|
|
!
|
|
!?
|
|
!
|
|
!!!
|
|
!!
|
|
!
|
|
?!?!
|
|
?!!?
|
|
?!?!
|
|
!!?!!??!?
|
|
!
|
|
!
|
|
?!?!!
|
|
!
|
|
!
|
|
!?!
|
|
!!?!?
|
|
!!!!!!!
|
|
?!?!!
|
|
?!?!!!!?
|
|
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!
|
|
!
|
|
!
|
|
!!?!?!??
|
|
!!
|
|
??
|
|
?!?!
|
|
!?
|
|
!
|
|
!
|
|
!?!?
|
|
!!
|
|
!!!!!
|
|
!
|
|
?!???!
|
|
?!?!
|
|
!
|
|
!
|
|
?!?!
|
|
?!!!
|
|
!!
|
|
?!!
|
|
!!
|
|
!!?!!??!?!!
|
|
?!?!!!
|
|
!
|
|
?!?!
|
|
?!?!!?
|
|
?!?!!!
|
|
?!?!?
|
|
!
|
|
?!?!!!
|
|
!
|
|
!!?!?!
|
|
!
|
|
?!?!!!?!?!
|
|
?!?!!!?!?!
|
|
!!
|
|
!
|
|
!!
|
|
!
|
|
???
|
|
?!?!!
|
|
?!?!!!!
|
|
?!?!
|
|
!!?!?
|
|
?!?!
|
|
!?
|
|
!!
|
|
?!?!?
|
|
!!
|
|
!
|
|
!
|
|
!!?!!!!
|
|
?!?!
|
|
?!!
|
|
!!!
|
|
?!?!
|
|
?!?!!
|
|
?!?!
|
|
!
|
|
!
|
|
!?
|
|
!
|
|
!!!!
|
|
?!?!!
|
|
?!?!!!
|
|
?!?!
|
|
?!?!!!!!?
|
|
?!?!!?!
|
|
!??
|
|
?!?!!
|
|
!
|
|
!
|
|
?!?!
|
|
!
|
|
?!?!?
|
|
!
|
|
?!?!?
|
|
Traceback (most recent call last):
|
|
File "C:/Users/user340/Desktop/Вариант 14/Задание 24/24.py", line 29, in <module>
|
|
print(seq)
|
|
KeyboardInterrupt
|
|
|
|
========= RESTART: C:/Users/user340/Desktop/Вариант 14/Задание 24/24.py ========
|
|
?!?! 0
|
|
?!! 0
|
|
! 0
|
|
! 0
|
|
! 0
|
|
!!! 0
|
|
?!?! 0
|
|
! 0
|
|
!! 0
|
|
?!?!!!?! 0
|
|
!?! 0
|
|
??! 0
|
|
!!!?!?! 0
|
|
! 0
|
|
?!?! 0
|
|
! 0
|
|
?!?!!!!? 0
|
|
! 0
|
|
!! 0
|
|
?? 0
|
|
?!??? 0
|
|
!? 0
|
|
?!?!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?! 0
|
|
! 0
|
|
! 0
|
|
! 0
|
|
!!?!?!?? 0
|
|
!! 0
|
|
?? 0
|
|
?!?! 0
|
|
!? 0
|
|
! 0
|
|
! 0
|
|
!?!? 0
|
|
!! 0
|
|
!!!!! 0
|
|
! 0
|
|
?!???! 0
|
|
?!?! 0
|
|
! 0
|
|
! 0
|
|
?!?! 0
|
|
?!!! 0
|
|
!! 0
|
|
?!! 0
|
|
!! 0
|
|
!!?!!??!?!! 0
|
|
?!?!!! 0
|
|
! 0
|
|
?!?! 0
|
|
?!?!!? 0
|
|
?!?!!! 0
|
|
?!?!? 0
|
|
! 0
|
|
?!?!!! 0
|
|
! 0
|
|
!!?!?! 0
|
|
! 0
|
|
?!?!!!?!?! 0
|
|
?!?!!!?!?! 0
|
|
!! 0
|
|
! 0
|
|
!! 0
|
|
! 0
|
|
??? 0
|
|
?!?!! 0
|
|
?!?!!!! 0
|
|
?!?! 0
|
|
!!?!? 0
|
|
?!?! 0
|
|
!? 0
|
|
!! 0
|
|
?!?!? 0
|
|
!! 0
|
|
! 0
|
|
! 0
|
|
!!?!!!! 0
|
|
?!?! 0
|
|
?!! 0
|
|
!!! 0
|
|
?!?! 0
|
|
?!?!!Traceback (most recent call last):
|
|
File "C:/Users/user340/Desktop/Вариант 14/Задание 24/24.py", line 29, in <module>
|
|
print(seq, c)
|
|
KeyboardInterrupt
|
|
|
|
========= RESTART: C:/Users/user340/Desktop/Вариант 14/Задание 24/24.py ========
|
|
?!?! 3
|
|
! 6
|
|
!!! 7
|
|
! 8
|
|
!? 10
|
|
!!! 11
|
|
11
|
|
|
|
========= RESTART: C:/Users/user340/Desktop/Вариант 14/Задание 24/24.py ========
|
|
!?!!? 23
|
|
?!!!! 24
|
|
!?! 32
|
|
!!!!?! 58
|
|
!!! 71
|
|
!!!! 92
|
|
92
|
|
|
|
========= RESTART: C:/Users/user340/Desktop/Вариант 14/Задание 24/24.py ========
|
|
0
|
|
|
|
========= RESTART: C:/Users/user340/Desktop/Вариант 14/Задание 24/24.py ========
|
|
!! 5
|
|
?!!!! 6
|
|
!!? 9
|
|
!?! 11
|
|
? 16
|
|
? 18
|
|
?!!?? 19
|
|
!!??! 22
|
|
22
|
|
|
|
========= RESTART: C:/Users/user340/Desktop/Вариант 14/Задание 24/24.py ========
|
|
?!?? 3
|
|
?!??!?!! 6
|
|
6
|
|
def d(n):
|
|
r = []
|
|
for i in range(15, int(n ** 0.5) + 2, 15):
|
|
if n % i == 0:
|
|
r.append(i)
|
|
return r
|
|
|
|
f(150)
|
|
Traceback (most recent call last):
|
|
File "<pyshell#13>", line 1, in <module>
|
|
f(150)
|
|
TypeError: 'bool' object is not callable
|
|
d(150)
|
|
[]
|
|
def d(n):
|
|
r = []
|
|
for i in range(15, n - 1, 15):
|
|
if n % i == 0:
|
|
r.append(i)
|
|
return r |