replace last occurrence FIXED by hallvabo

while 1:r,s,t=raw_input().split();print s.join(t.rsplit(r,1))

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page