组合数取合数mod

using namespace std; const int MAXN = 200005; bool ispri[MAXN]; int prime[MAXN]; int priCnt; void CalPrime() { priCnt = 0; memset(ispr...

2018-08-29 23:06:35

阅读数:37

评论数:0

湖南大学ACM程序设计新生杯大赛 - Yuanyuan Long and His Ballons(环形染色问题)

时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 题目描述  Yuanyuan Long is a dragon like this picture?        ...

2018-01-23 19:45:08

阅读数:166

评论数:0

FZU 2238 - Daxia & Wzc's problem(Lucas)

Problem 2238 Daxia & Wzc's problem Accept: 42    Submit: 166 Time Limit: 1000 mSec    Memory Limit : 32768 KB  Problem Description D...

2017-11-15 15:37:44

阅读数:184

评论数:0

Codeforces Round #439 (Div. 2) - C. The Intriguing Obsession(组合数)

C. The Intriguing Obsession time limit per test 1 second memory limit per test 256 megabytes input standard input output stan...

2017-10-08 22:40:17

阅读数:303

评论数:0

2017 ACM-ICPC 亚洲区(西安赛区)网络赛 - Coin(二项式展开)

Bob has a not even coin, every time he tosses the coin, the probability that the coin's front face up is qp(qp≤12)​p​​q​​(​p​​q​​≤​2​​1​​). The ques...

2017-09-23 18:16:06

阅读数:164

评论数:0

Codeforces Round #428 (Div. 2) - D Winter is here

D. Winter is here time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard outp...

2017-08-13 22:36:33

阅读数:204

评论数:0

HDU 1709 The Balance(母函数)

The Balance Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 8192    Accepted Submission(s)...

2017-08-04 19:06:24

阅读数:133

评论数:0

HDU 母函数简单题 - 找单词/Ignatius and the Princess III/Square Coins/Holding Bin-Laden Captive!

简单的四道母函数题。都做了2遍,一次母函数,一次计数DP(或叫背包)。 但是这几题背包的效率比母函数高,而且代码也短多了。。。 HDU 1028 Ignatius and the Princess III 代码: #include #include #include #i...

2017-08-04 19:03:30

阅读数:152

评论数:0

CSU 1563 Lexicography (搜索+组合数)

1563: Lexicography Submit Page     Summary    Time Limit: 1 Sec     Memory Limit: 128 Mb     Submitted: 469     Solved: 150     ...

2017-07-31 22:03:01

阅读数:123

评论数:0

HDU 2068 RPG的错排 (错排+组合数)

RPG的错排 Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 13530    Accepted Submission(s): 55...

2017-07-28 23:40:13

阅读数:174

评论数:0

HDU 4135 Co-prime(容斥原理+分解质因数)

Co-prime Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5239    Accepted Submission(s): 2...

2017-07-28 23:34:48

阅读数:186

评论数:0

HDU 5794 A Simple Chess (lucas定理+费马小定理)

A Simple Chess Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 2672    Accepted Submission...

2017-07-15 23:59:22

阅读数:144

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭