摘要: Fox Ciel is playing a card game with her friend Jiro. Jiro has n cards, each one has two attributes: position (Attack or Defense) and strength. Fox Ci 阅读全文
posted @ 2016-10-02 22:20 TenderRun 阅读(416) 评论(0) 推荐(0) 编辑
摘要: Andrew and Jerry are playing a game with Harry as the scorekeeper. The game consists of three rounds. In each round, Andrew and Jerry draw randomly wi 阅读全文
posted @ 2016-10-02 22:18 TenderRun 阅读(274) 评论(0) 推荐(0) 编辑
摘要: Fox Ciel is participating in a party in Prime Kingdom. There are n foxes there (include Fox Ciel). The i-th fox is ai years old. They will have dinner 阅读全文
posted @ 2016-10-02 22:16 TenderRun 阅读(292) 评论(0) 推荐(0) 编辑
摘要: Emuskald considers himself a master of flow algorithms. Now he has completed his most ingenious program yet — it calculates the maximum flow in an und 阅读全文
posted @ 2016-10-02 22:13 TenderRun 阅读(400) 评论(0) 推荐(0) 编辑
摘要: A gourmet came into the banquet hall, where the cooks suggested n dishes for guests. The gourmet knows the schedule: when each of the dishes will be s 阅读全文
posted @ 2016-10-02 22:10 TenderRun 阅读(206) 评论(0) 推荐(0) 编辑
摘要: In the country there are n cities and m bidirectional roads between them. Each city has an army. Army of the i-th city consists of ai soldiers. Now so 阅读全文
posted @ 2016-10-02 22:07 TenderRun 阅读(224) 评论(0) 推荐(0) 编辑
摘要: You have written on a piece of paper an array of n positive integers a[1], a[2], ..., a[n] and m good pairs of integers (i1, j1), (i2, j2), ..., (im,  阅读全文
posted @ 2016-10-02 22:04 TenderRun 阅读(346) 评论(0) 推荐(0) 编辑