2013年11月30日

B. Valera and Contest 构造水题

摘要: B. Valera and Contesttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputValera loves to participate in competitions. Especially in programming contests. Today he has participated in the contest with his team, consisting ofnstudents (including Valera) 阅读全文

posted @ 2013-11-30 21:09 keep trying 阅读(156) 评论(0) 推荐(0) 编辑

C. Valera and Elections DFS

摘要: C. Valera and Electionstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe city Valera lives in is going to hold elections to the city Parliament.The city hasndistricts andn - 1bidirectional roads. We know that from any district there is a path al 阅读全文

posted @ 2013-11-30 21:06 keep trying 阅读(259) 评论(0) 推荐(0) 编辑

G - Jeff and Furik 逆序对 + 贪心

摘要: G -Jeff and FurikTime Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusAppoint description:DescriptionJeff has become friends with Furik. Now these two are going to play one quite amusing game.At the beginning of the game Jeff takes a piece of paper and writes down a per 阅读全文

posted @ 2013-11-30 19:28 keep trying 阅读(444) 评论(0) 推荐(0) 编辑

导航