阅读背景:

codeforces #541 D. Gourmet choice(拓扑+并查集)

来源:互联网 

Mr. Apple, a gourmet, works as editor-in-chief of a gastronomic periodical. He travels around the world, tasting new delights of famous chefs from the most fashionable restaurants. Mr. Apple has his own signature method of review  — in each restaurant Mr. Apple orders two sets of dishes on two different days. All the dishes are different, because Mr. Apple doesn't like to eat the same food. For each pair of dishes from different days he remembers exactly which was better, or that they were of the same quality. After this the gourmet evaluates each dish with a positive integer.Mr. Apple, a gourmet, works as editor-in-ch




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: