
数学问题
passer__
这个作者很懒,什么都没留下…
展开
-
HDU 4465 (candy)(期望+log优化)
CandyTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2890 Accepted Submission(s): 1305Special JudgeProblem DescriptionLazyChi原创 2017-10-05 10:57:00 · 339 阅读 · 0 评论 -
HDU 5514 (Frogs) (容斥原理)
FrogsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2920 Accepted Submission(s): 931Problem DescriptionThere are m stones原创 2017-10-05 13:17:23 · 325 阅读 · 0 评论 -
2017 ACM-ICPC 亚洲区(西安赛区)网络赛 B Coin (概率计算)
传送门: https://nanti.jisuanke.com/t/17115Bob has a not even coin, every time he tosses the coin, the probability that the coin's front face up is \frac{q}{p}(\frac{q}{p} \le \frac{1}{原创 2017-10-05 13:59:02 · 307 阅读 · 0 评论 -
HDU 4710 Balls Rearrangement
Balls RearrangementTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1136 Accepted Submission(s): 474Problem DescriptionBob has原创 2018-02-02 15:19:56 · 187 阅读 · 0 评论 -
AtCoder Regular Contest 077 D 11(思维题)
题目链接 : https://arc077.contest.atcoder.jp/tasks/arc077_bD - 11Time limit : 2sec / Memory limit : 256MBScore : 600 pointsProblem StatementYou are given an integer sequence of length n+1, a1,a2...原创 2018-07-26 10:13:37 · 464 阅读 · 0 评论 -
51nod 组合数+ Lucas的题目 1118 1119 1120
1118链接 : http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1118普通的一个2位的DP 直接跑就行了#include<bits/stdc++.h>using namespace std;int dp[1005][1005];const int mod=1e9+7;int main(...原创 2018-07-23 09:47:44 · 207 阅读 · 0 评论 -
洛谷P4562 [JXOI2018]游戏 (Bzoj 5323)(Upc 6887)游戏
题目链接:https://www.luogu.org/problemnew/show/P4562 (不开氧气就RE,不知道为啥) https://www.lydsy.com/JudgeOnline/problem.php?id=5323题目描述九条可怜是一个热爱游戏的女孩子,她经常在网上和一些网友们玩一款叫做《僵尸危机》游戏。在这款游戏中,玩家们会需...原创 2018-08-05 12:00:13 · 323 阅读 · 0 评论 -
数论之欧拉函数+欧拉线性筛
以下资料整理来自:https://www.cnblogs.com/linyujun/p/5194170.html https://blog.youkuaiyun.com/YxuanwKeith/article/details/52387873 void Getphi(int Max) { phi[1] = ...转载 2018-08-22 16:12:22 · 553 阅读 · 0 评论