码迷,mamicode.com
首页 >  
搜索关键字:fun    ( 10813个结果
python中的参数传递和返回值
python中的参数传递类似java,有着自己的内存回收机制,这和C++有着很大的差别。1.函数的参数传递:>>> a = [1, 2, 3]>>> def fun(a): for i in a: print i a.append(4)>>> fun...
分类:编程语言   时间:2015-06-07 20:16:59    阅读次数:133
Tree Traversals Again (25)
这题在于分治法的利用#include #include #include using namespace std;void fun(int *pre, int *mid, int len, int * result);int main(){ int n; int *a, *b; i...
分类:其他好文   时间:2015-06-07 18:43:09    阅读次数:116
codeforces Looksery Cup 2015 H Degenerate Matrix 二分 注意浮点数陷阱
#include #include #include #include #include #include using namespace std; bool fun(double l1,double r1,double l2,double r2){ return (l1 = l2) || (l2 >= l1 && l2 <= r1); } int main() { doub...
分类:其他好文   时间:2015-06-07 09:31:20    阅读次数:101
Oracle开发常用函数
max最大数自动加 1create or replace function fun_getmaxlot( vend in varchar2 , domain IN VARCHAR2, tag in varchar2) RETURN VARCHAR2 AS MAX...
分类:数据库   时间:2015-06-06 12:02:29    阅读次数:140
二分法求多项式单根(20)
这么简单并没有什么要说的#include using namespace std;double a3, a2, a1, a0;double fun(double x);int main(){ double a, b, mid; cin >> a3 >> a2 >> a1 >> a0; ...
分类:其他好文   时间:2015-06-05 19:17:28    阅读次数:121
00-自测4. Have Fun with Numbers
Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 2469135...
分类:其他好文   时间:2015-06-05 11:54:10    阅读次数:117
AngularJS 学习笔记(三)
现在我想在页面上显示一个变量i,i的初始值是0,我希望通过controller每1秒给i加1,使得在页面上i从0,1,2,3,4……一直增长,我会这么做:<scripttype="text/javascript"> /** *Module * *Description */ angular.module(‘app‘,[]).controller(‘firstController‘, fun..
分类:Web程序   时间:2015-06-04 17:23:49    阅读次数:155
HDU ACM 1071 The area 定积分计算
分析: 1、求抛物线方程F(x)=a*x^2+b*x+c; 2、求直线方程f(x)=k*x+b; 3、利用定积分计算F(x)-f(x)在x2到x3之间的面积。 #include using namespace std; double fun(double a,double b,double c,double d,double k,double x) { return a*x*x*x/3...
分类:其他好文   时间:2015-06-04 13:53:03    阅读次数:238
【BZOJ1690】【Usaco2007 Dec】奶牛的旅行 分数规划 判断负环
题解:分数规划+判断负环。代码:#include #include #include #include #include #define N 1010 #define M 5050 #define eps 1e-8 using namespace std; double mid,fun[N]; str...
分类:其他好文   时间:2015-06-03 21:34:10    阅读次数:162
HackerRank - "Building a Smart IDE: Programming Language Detection"
So fun! It connects algorithm(regex) with real world usages!So basically speaking, C:pointer syntax, #include\scanf\typedef; Java: import\public class...
分类:其他好文   时间:2015-06-03 07:20:29    阅读次数:156
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!