摘要: // #include<iostream> using namespace std; int gcd(int n,int m) { int test,t,ans; test=m; n=n%1000; ans=1; while(test){ if(test&1==1) ans=n*ans%1000; 阅读全文
posted @ 2019-02-28 16:32 Hello_World2020 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 分析:简单点就是求方程的解,四舍五入保留最后两位,所以要计算到最后三位, 1.枚举IRR的范围(-00,-1】V(0,++00); 注意事项:该题中函数npv(IRR)在IRR∈(-1,+∞)上是递减的,故最多有一个根; 大佬很嚣张的解答: #include<iostream> #include<c 阅读全文
posted @ 2019-02-28 11:39 Hello_World2020 阅读(615) 评论(0) 推荐(0) 编辑