codeforces 671D Roads in Yusland & hdu 5293 Tree chain problem

NoSuchKey