原创 HDU 4652 Dice (概率DP)

B - Dice Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Practice HDU 4652

原创 Poj 2096 Collecting Bugs (概率DP求期望)

C - Collecting Bugs Time Limit:10000MS     Memory Limit:64000KB     64bit IO Format:%I64d & %I64u Submit Status Descr

原创 HDU 4649 Professor Tian (概率DP)

Professor Tian Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 6553

原创 poj 2398 Toy Storage (計算幾何)

A - Toy Storage Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Descriptio

原创 HDU 5159 Card (概率求期望)

B - Card Time Limit:5000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64u Submit Status Description Ther

原创 poj 3071 Football (概率DP水題)

G - Football Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Description

原创 已知直線上兩點求其一般式

已知直線上兩點P1 P2,求直線的一般式方程。已知直線上的兩點P1(X1,Y1) P2(X2,Y2), P1 P2兩點不重合。求該直線的一般式方程AX

原创 poj 3744 Scout YYF 1 (概率DP+矩陣快速冪)

F - Scout YYF I Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Descriptio

原创 poj1039 Pipe(計算幾何叉積求交點)

F - Pipe Time Limit:1000MS     Memory Limit:10000KB     64bit IO Format:%I64d & %I64u Submit Status Practice POJ 1039

原创 關於一個羣號分解的最大質數的求法

今天加羣遇到了這個問題,百度有在線分解質因數的計算器,附上網址。http://www.atool.org/quality_factor.php? 但是,一個ACMer要會利用百度,而不是依賴百度,這種簡單的代碼,自己也可以輕鬆搞定。

原创 數論四大定理

威爾遜定理、歐拉定理、孫子定理、費馬小定理並稱數論四大定理。 威爾遜定理 編輯 若p爲質數,則p可整除(p-1)!+1。 歐拉定理 歐拉定理,

原创 C語言fopen函數了解

fopen()函數功能:open a file. 原型:FILE * fopen(const char * path,const char * mod

原创 HDU 5345 Joyful(概率題求期望)

D - Joyful Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Description Sa

原创 ZOJ 3822 Domination (三維概率DP)

E - Domination Time Limit:8000MS     Memory Limit:131072KB     64bit IO Format:%lld & %llu Submit Status Description

原创 poj 2318 TOYS (計算幾何)

B - TOYS Time Limit:2000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Description Calc