
数学
xxzccccccc
python/C++, 深度学习,ACM算法竞赛
阿里算法工程师
前百度算法工程师
前滴滴算法工程师
展开
-
ZOJ 3981 && 2017CCPC秦皇岛 A:Balloon Robot
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3981题意:第一行三个数字n, m, q表示有m个座位围成一个环,n个队伍,q次A题接下来n个数表示n个队伍所在位置(1再接下来q行,每行a, b表示第a个队伍在第b秒A了一道题有一个只会每一秒顺时针移动一个位置的原创 2017-11-05 16:55:01 · 270 阅读 · 0 评论 -
Codeforces Round #382 (Div. 2) -- D. Taxes
Codeforces Round #382 (Div. 2) -- D. TaxesD. Taxestime limit per test 2 secondsmemory limit per test 256 megabytesinput standard inputoutput standard outp原创 2017-06-07 15:19:12 · 286 阅读 · 0 评论 -
一些巧妙的公式
1.输入N求N的阶乘的10进制表示的长度。例如6! = 720,长度为3。使用阶乘近似公式--斯特林公式 例题 51nod上面的 1130 N的阶乘的长度double PI=acos(-1);cin>>n;long long ans=0.5*log10(2.0*PI*n)+n*log10(n*1.0/exp(1))+1;cout2.数字每位和公式(就是一个数的所有位的和)原创 2017-03-10 21:29:40 · 404 阅读 · 0 评论