Codeforces Round #500 D. Chemical table(图论)

NoSuchKey