码迷,mamicode.com
首页 >  
搜索关键字:uva live 3882    ( 10951个结果
jQuery新的事件绑定机制on()
今天浏览jQuery的deprecated列表,发现live()和die()在里面了,赶紧看了一下,发现从jQuery1.7开始,jQuery引入了全新的事件绑定机制,on()和off()两个函数统一处理事件绑定。因为在此之前有bind(), live(), delegate()等方法来处理事件绑定...
分类:Web程序   时间:2014-07-17 23:12:23    阅读次数:270
kali系统安装
kali live 安装到U盘http://www.backtrack.org.cn/thread-17197-1-1.html用Live U盘安装Kali Linuxhttp://cn.docs.kali.org/installing-kali-linux-cn/%E7%94%A8live-u%E...
分类:其他好文   时间:2014-07-17 21:35:06    阅读次数:244
UVA 11346 - Probability(概率)
UVA 11346 - Probability 题目链接 题意:给定a,b,s要求在[-a,a]选定x,在[-b,b]选定y,使得(0, 0)和(x, y)组成的矩形面积大于s,求概率 思路:这样其实就是求xy > s的概率,那么画出图形,只要求y = s / x的原函数, y = slnx,带入两点相减就能求出面积,面积比去总面积就是概率 代码: #include ...
分类:其他好文   时间:2014-07-17 21:15:07    阅读次数:241
UVA 11291 - Smeech(概率+词法分析)
UVA 11291 - Smeech 题目链接 题意:给定一个表达式形如e=(p,e1,e2) 该表达式的值为 p?(e1+e2)+(1?p)?(e1?e2),求出值 思路:题目是很水,但是处理起来还挺麻烦的,模拟写编译器LEX分析器原理去写了。 代码: #include #include const int N = 100005; char str[N];...
分类:其他好文   时间:2014-07-17 21:07:29    阅读次数:170
UVA 10168 Summation of Four Primes(数论)
Summation of Four Primes Input: standard input Output: standard output Time Limit: 4 seconds Euler proved in one of his classic theorems that prime numbers are infinite in number. But can every nu...
分类:其他好文   时间:2014-07-17 21:05:16    阅读次数:299
uva 568(数学)
题解:从1开始乘到n,因为结果只要最后一位,所以每乘完一次,只要保留后5位(少了值会不准确,刚开始只保留了一位,结果到15就错了,保留多了int会溢出,比如3125就会出错) 和下一个数相乘,接着保留5位,注意5位没有后导零,最后取5位中最后一个不是零的就可以了。 #include #include using namespace std; int main() { int n; ...
分类:其他好文   时间:2014-07-17 19:14:19    阅读次数:181
UVA 10139 Factovisors(数论)
Factovisors The factorial function, n! is defined thus for n a non-negative integer: 0! = 1 n! = n * (n-1)! (n > 0) We say that a divides b if there exists an integer k such that k*a =...
分类:其他好文   时间:2014-07-17 19:05:06    阅读次数:235
UVA - 536 Tree Recovery
Description   Tree Recovery  Little Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capital letters i...
分类:其他好文   时间:2014-07-17 17:21:38    阅读次数:253
UVA 11427 - Expect the Expected(概率递推期望)
UVA 11427 - Expect the Expected 题目链接 题意:玩一个游戏,赢的概率p,一个晚上能玩n盘,如果n盘都没赢到总赢的盘数比例大于等于p,以后都不再玩了,如果有到p就结束 思路:递推,dp[i][j]表示玩i盘,赢j盘的概率,那么一个晚上玩了n盘小于p的概率递推式为: dp(i,j)=dp(i?1,j)?(1?p)+dp(i?1,j?1)?p 总和为...
分类:其他好文   时间:2014-07-17 16:30:01    阅读次数:171
UVA 11722 - Joining with Friend(概率)
UVA 11722 - Joining with Friend 题目链接 题意:你会在[t1,t2]时刻到,你朋友会在[s1,s2]时刻到,两个人都停留w,问两人碰面的概率 思路:概率题,画图,计算围成面积/总面积就是概率 代码: #include #include int t; double t1, t2, s1, s2, w; double cal(dou...
分类:其他好文   时间:2014-07-17 15:31:30    阅读次数:262
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!