python3.0答案

2012 2022-11-30 20:25:13 26

x = eval(input()) if x % 3 == 0 and x % 5 == 0 and x % 7 == 0: print("3 5 7") elif x % 3 == 0 and x % 5 == 0: print("3 5") elif x % 3 == 0 and x % 7 == 0: print("3 7") elif x % 5 == 0 and x % 7 == 0: print("5 7") elif x % 3 == 0: print("3") elif x % 5 == 0: print("5") elif x % 7 == 0: print("7") else: print("n")

{{ vote && vote.total.up }}