码迷,mamicode.com
首页 >  
搜索关键字:anton and currency y    ( 406个结果
POJ 1860 Currency Exchange
题意:第一排输入n(货币的种类)  m(兑换货币的站点数)   t(你现在拥有的货币是第几类货币)   v(你现在拥有多少该类货币) 下面每行输入的数:a  b   就是a兑换b  rab 兑率  cab (手续费)  rba 同样的意思   (ab表示a  兑换  b) 问t币的金额经过交换最终得到的t币金额数能否增加 思路:寻找正环   果断bellman_ford算法  寻找最长的路,...
分类:其他好文   时间:2014-08-01 13:49:01    阅读次数:182
poj1860--Currency Exchange
Bellman-ford算法的反向应用--正循环检查 /** \brief poj 1860 Bellman-Ford * * \param date 2014/7/24 * \param state AC * \return memory 708K time 141ms * */ #include #include #include using namespace std...
分类:其他好文   时间:2014-07-31 00:01:23    阅读次数:213
poj 1860 Currency Exchange (SPFA、正权回路 bellman-ford)
题意:给定n中货币,以及它们之间的税率,A货币转化为B货币的公式为 B=(V-Cab)*Rab,其中V为A的货币量, 求货币S通过若干此转换,再转换为原本的货币时是否会增加 分析:这个题就是判断是否存在正权回路,可以用bellman-ford算法,不过松弛条件相反 也可以用SPFA算法,判断经过转换后,转换为原本货币的值是否比原值大、、、...
分类:其他好文   时间:2014-07-24 23:32:33    阅读次数:297
POJ2240——Arbitrage(Floyd算法变形)
ArbitrageDescriptionArbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of th...
分类:其他好文   时间:2014-07-24 17:34:26    阅读次数:380
AngularJS学习笔记filter
filter是对数据进行过滤操作,比如按某个字段搜索、格式化数据等等,是一个非常有用的接口。下面就简单介绍下它的用法。AngularJS自带的filter接口,|是filter的分隔符,参数用:分隔;currency,格式化number,货币化,默认是转化成美元 param(number,symbo...
分类:Web程序   时间:2014-07-22 22:54:56    阅读次数:247
[ACM] hdu 1217 Arbitrage (bellman_ford最短路,判断是否有正权回路或Floyed)
Arbitrage Problem Description Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of the same currency. For example, ...
分类:其他好文   时间:2014-07-16 10:05:49    阅读次数:260
关于Currency类型和 TCurrencyFiled的悲剧
这2天程序出问题, 用户结算金额经常莫名其妙的多出了小数点后几位, 不用思考 肯定是因为浮点精度不准确的问题查了一下, 程序中的数据类型使用的是Currency, 按照数据类型的描述, 这个金额类型应该是以实数形式存储的, 完全不会出现精度不准确的问题, 那为什么现实中还是会有莫名其妙的小数出现呢继...
分类:其他好文   时间:2014-07-11 11:11:33    阅读次数:216
2-0SBO学习心得(格式化搜索)
SBO的大部分业务单据都是主、从表的关系结构,类似于单头和单身的关系。格式化搜索的原理就是抓取到当前激活页面(单据)里显示的任意值。抓取方式:1.针对表头:$[表名.字段名]或者$[$Item.0]2.针对表身:$[$Item.Column.0/number/currency/date],最常用的还...
分类:其他好文   时间:2014-07-07 19:56:21    阅读次数:178
C#高级编程(第8版)——委托声明、使用(第一节)
首先,声明一个Currency的结构。Currency结构有自己的ToString()重载方法和一个与GetCurrencyUnit()的签名相同的静态方法。这样,就可以用同一个委托变量调用这些方法了: struct Currency { public uint Dollars...
分类:其他好文   时间:2014-07-07 17:01:13    阅读次数:121
Codeforces Round #253 (Div. 2) A. Anton and Letters
题目很简单,只需要注意带空格的输入用getline即可#include #include #include #include #include using namespace std;int main(){ string str; getline(cin,str); set a; ...
分类:其他好文   时间:2014-06-21 14:29:06    阅读次数:200
406条   上一页 1 ... 38 39 40 41 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!