add 电信研发工程师考试内容.

This commit is contained in:
2022-10-28 02:37:25 +08:00
parent 2aa12fbb6e
commit 6b40f708b2
21 changed files with 289 additions and 3 deletions

17
ct/l1/8-平衡数.py Normal file
View File

@@ -0,0 +1,17 @@
def f(x):
y = 1
for j in x:
y *= int(j)
return y
n = input()
flag = True
for i in range(1, len(n)):
left, right = n[:i], n[i:]
if f(left) == f(right):
flag = False
print("YES")
break
if flag:
print("No")