上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 48 下一页
摘要: Description 两 只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它 们出发之前忘记了一件很重要的事情,既没有问清楚对方的特征,也没有约定见面的具体位置。不过青蛙们都是很乐观的,它们觉得只要一直朝 阅读全文
posted @ 2016-09-25 18:53 ljh_2000 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Description 背景 小K是个特么喜欢玩MC的孩纸。。。 描述 小K在MC里面建立很多很多的农场,总共n个,以至于他自己都忘记了每个农场中种植作物的具体数量了,他只记得 一些含糊的信息(共m个),以下列三种形式描述:农场a比农场b至少多种植了c个单位的作物,农场a比农场b至多 多种植了c个单 阅读全文
posted @ 2016-09-25 11:08 ljh_2000 阅读(364) 评论(0) 推荐(0) 编辑
摘要: Description 给n个人安排座位,先给每个人一个1~n的编号,设第i个人的编号为ai(不同人的编号可以相同),接着从第一个人开始,大家依次入座,第i个人来了以后尝试坐到ai,如果ai被占据了,就尝试ai+1,ai+1也被占据了的话就尝试ai+2,……,如果一直尝试到第n个都不行,该安排方案就 阅读全文
posted @ 2016-09-25 10:07 ljh_2000 阅读(735) 评论(0) 推荐(2) 编辑
摘要: Description Anatoly lives in the university dorm as many other students do. As you know, cockroaches are also living there together with students. Coc 阅读全文
posted @ 2016-09-24 22:29 ljh_2000 阅读(437) 评论(0) 推荐(0) 编辑
摘要: Description Every summer Vitya comes to visit his grandmother in the countryside. This summer, he got a huge wart. Every grandma knows that one should 阅读全文
posted @ 2016-09-24 20:28 ljh_2000 阅读(481) 评论(0) 推荐(0) 编辑
摘要: Description Given a n × n matrix A and a positive integer k, find the sum S = A + A2 + A3 + … + Ak. Given a n × n matrix A and a positive integer k, f 阅读全文
posted @ 2016-09-24 16:14 ljh_2000 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 【问题描述】一场战争正在 A 国与 B 国之间如火如荼的展开。B 国凭借其强大的经济实力开发出了无数的远程攻击导弹,B 国的领导人希望,通过这些导弹直接毁灭 A 国的指挥部,从而取得战斗的胜利!当然,A 国人民不会允许这样的事情发生,所以这个世界上还存在拦截导弹。现在,你是一名 A 国负责导弹拦截的 阅读全文
posted @ 2016-09-23 17:40 ljh_2000 阅读(331) 评论(0) 推荐(0) 编辑
摘要: Description Input Output Sample Input 5 1 1 2 2 1 Sample Output 1 2 4 0 3 HINT 30%的数据中N≤50; 60%的数据中N≤500; 100%的数据中N≤10000。 正解:二分图匹配 解题报告: 今天考试T2,考场上几乎 阅读全文
posted @ 2016-09-23 15:16 ljh_2000 阅读(291) 评论(0) 推荐(0) 编辑
摘要: Description As we all know, machine scheduling is a very classical problem in computer science and has been studied for a very long history. Schedulin 阅读全文
posted @ 2016-09-23 14:26 ljh_2000 阅读(239) 评论(0) 推荐(0) 编辑
摘要: Description ZS the Coder has drawn an undirected graph of n vertices numbered from 0 to n - 1 and m edges between them. Each edge of the graph is weig 阅读全文
posted @ 2016-09-22 22:28 ljh_2000 阅读(908) 评论(0) 推荐(1) 编辑
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 48 下一页