Birthday Paradox lightoj 1104 生日悖论(概率)
摘要:Description Sometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in a party wh
阅读全文
posted @
2016-08-13 20:19
不忧尘世不忧心
阅读(202)
推荐(0)
F(N) hdu 2802(循环节)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2802 分析:一猜这道题就该是规律,就是怎么样也没想到周期那么大(4018),我的悲伤比它还大(%>_<%) #include <iostream> #include <stdio.h> #include <str
阅读全文
posted @
2016-08-11 21:00
不忧尘世不忧心
阅读(152)
推荐(0)
Light oj 1008(规律)
摘要:http://acm.hust.edu.cn/vjudge/contest/121398#problem/B #include<stdio.h> #include<string.h> #include<math.h> #include<queue> #include<algorithm> using
阅读全文
posted @
2016-08-10 10:38
不忧尘世不忧心
阅读(152)
推荐(0)
玲珑杯热身赛A--Alarm (找规律)
摘要:DESCRIPTION Given a number sequence [3,7,22,45,116,...][3,7,22,45,116,...]. Please tell me the kk-th number. DESCRIPTION Given a number sequence [3,7,
阅读全文
posted @
2016-08-05 20:32
不忧尘世不忧心
阅读(180)
推荐(0)