摘要: Mahmoud and Ehab live in a country with n cities numbered from 1 to n and connected by n - 1 undirected roads. It's guaranteed that you can reach any 阅读全文
posted @ 2017-02-09 23:42 perplex 阅读(271) 评论(0) 推荐(0)
摘要: Mahmoud wants to write a new dictionary that contains n words and relations between them. There are two types of relations: synonymy (i. e. the two wo 阅读全文
posted @ 2017-02-09 23:36 perplex 阅读(431) 评论(0) 推荐(0)
摘要: Mahmoud wrote a message s of length n. He wants to send it as a birthday present to his friend Moaz who likes strings. He wrote it on a magical paper 阅读全文
posted @ 2017-02-09 23:30 perplex 阅读(325) 评论(0) 推荐(0)