#居然通过了,不解释 import sys data= sys.stdin.readlines() for i in range(len(data)): data[i]=data[i].strip("\n") e=data[i].split("/") # print(e) n=int(e[0]) # print(n) value="1/"+e[1] for i in range(n-1): value=value+"+1/"+e[1] print(value)
#居然通过了,不解释 import sys data= sys.stdin.readlines() for i in range(len(data)): data[i]=data[i].strip("\n") e=data[i].split("/") # print(e) n=int(e[0]) # print(n) value="1/"+e[1] for i in range(n-1): value=value+"+1/"+e[1] print(value)