pythonExample100/JCP081.py

16 lines
396 B
Python
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

'''
【程序81】
题目809*??=800*??+9*??+1 其中??代表的两位数,8*??的结果为两位数9*??的结果为3位数。求??代表的两位数及809*??后的结果。
1.程序分析:
2.程序源代码
这个程序实在是奇怪
0 = 1 :(
就写个程序而已,不去追究了
'''
a = 809
for i in range(10,100):
b = i * a + 1
if b >= 1000 and b <= 10000 and 8 * i < 100 and 9 * i >= 100:
print b,'/',i,' = 809 * ',i,' + ', b % i