python的,还是有两个点没通过,有大佬帮忙看看吗谢谢
查看原帖
python的,还是有两个点没通过,有大佬帮忙看看吗谢谢
1231862
lzysxfcs楼主2024/4/9 22:55
A, B, C = map(int, input().split())
found_solution = False
for i in range(100, 1000):
    two = B // A * i
    three = C // A * i
    if two < 1000 and three < 1000 and set(str(i) + str(two) + str(three)) == {'1', '2', '3', '4', '5', '6', '7', '8', '9'}:
        print(i, two, three)
        found_solution = True
if not found_solution:
    print('No!!!')
2024/4/9 22:55
加载中...