#include
摘要: J题:company 题目描述 There are n kinds of goods in the company, with each of them has a inventory of cnti and direct unit benefit vali. Now you find due to 阅读全文
posted @ 2017-10-07 12:04 0一叶0知秋0 阅读(460) 评论(0) 推荐(0) 编辑
摘要: K题:CF 题目描述 LYD loves codeforces since there are many Russian contests. In an contest lasting for T minutes there are n problems, and for the ith probl 阅读全文
posted @ 2017-10-06 20:42 0一叶0知秋0 阅读(320) 评论(0) 推荐(0) 编辑
摘要: G: sum of power 题目描述 Calculate mod (1000000000+7) for given n,m. Calculate mod (1000000000+7) for given n,m. 输入 Input contains two integers n,m(1≤n≤10 阅读全文
posted @ 2017-10-06 15:22 0一叶0知秋0 阅读(283) 评论(0) 推荐(0) 编辑
摘要: F题:quadratic equation 时间限制: 2 秒 内存限制: 128 MB | 提交: 277 解决: 44 题目描述 With given integers a,b,c, you are asked to judge whether the following statement i 阅读全文
posted @ 2017-10-06 15:00 0一叶0知秋0 阅读(295) 评论(0) 推荐(0) 编辑
摘要: A题:Return of the Nim 时间限制: 1 秒 内存限制: 64 MB | 提交: 33 解决: 16 题目描述 Sherlock and Watson are playing the following modified version of Nim game: There are 阅读全文
posted @ 2017-10-06 12:54 0一叶0知秋0 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 1069 Nim游戏(51NOD基础) 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 有N堆石子。A B两个人轮流拿,A先拿。每次只能从一堆中取若干个,可将一堆全取走,但不可不取,拿到最后1颗石子的人获胜。假设A B都非常聪明,拿石子的过程中不会出现失误。给出N及每堆 阅读全文
posted @ 2017-10-06 11:57 0一叶0知秋0 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1072 威佐夫游戏51NOD基础题 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 有2堆石子。A B两个人轮流拿,A先拿。每次可以从一堆中取任意个或从2堆中取相同数量的石子,但不可不取。拿到最后1颗石子的人获胜。假设A B都非常聪明,拿石子的过程中不会出现失误。给出 阅读全文
posted @ 2017-10-06 11:11 0一叶0知秋0 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 我们的城市有几个货币兑换点。让我们假设每一个点都只能兑换专门的两种货币。可以有几个点,专门从事相同货币兑换。每个点都有自己的汇率,外汇汇率的A到B是B的数量你1A。同时各交换点有一些佣金,你要为你的交换操作的总和。在来源货币中总是收取佣金。 例如,如果你想换100美元到俄罗斯卢布兑换点,那里的汇率是 阅读全文
posted @ 2017-10-01 00:08 0一叶0知秋0 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://poj.org/problem?id=3268 题意:有 编号 1 -> n 的牛,牛之间有 m 条边 ,经过每条边需要一定的时间 ti(权值),输出所有牛里面 去源点 然后返回的 最小的 最大时间 给出 源点 x 1 ≤ N ≤ 1000 1 ≤ M ≤ 100,000 1 阅读全文
posted @ 2017-09-27 20:34 0一叶0知秋0 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://poj.org/problem?id=1797 题意:n 个 点 m 个通道 , 从 1 -> n 最少存在一条不同的路径 , 计算 从 1 -> n 所有路径上 权值最小的那条边 权值最大为多少 思路: 最多存在 1000 个点 (肯定不用floyd算法) 可以有 dijk 阅读全文
posted @ 2017-09-26 15:57 0一叶0知秋0 阅读(298) 评论(0) 推荐(0) 编辑