m,x,y = map(int, input().split(" ")) def judge(m,a): if a>m: res = "Cong" elif a==m: res = "Ping" else: res = "Gai" return res list1 = [] for a in range(10,100): b = int(str(a)[::-1]) if abs(a-b)/x == b/y: list1 = [a,b,b/y] if list1 != []: print("%d %s %s %s"%(list1[0],judge(m,list1[0]),judge(m,list1[1]),judge(m,list1[2]))) else: print("No Solution")
1088 三人行 python
猜你喜欢
转载自blog.csdn.net/weixin_41775301/article/details/87933320
今日推荐
周排行