原创 TOJ 10008 a^b mod c

題目鏈接 : TOJ10008 10008 - a^b mod c Time Limit: 1000MS Memory Limit: 65536KB DescriptionThe calculation of ab mod c a

原创 FZOJ 1752 A^B mod C

題目鏈接 : Problem 1752 A^B mod C Accept: 563    Submit: 2535 Time Limit: 1000 mSec    Memory Limit : 32768 KB Proble

原创 TOJ 10009 GCD and LCM

題目鏈接 : TOJ10009   10009 - GCD and LCM Time Limit: 1000MS Memory Limit: 65536KB DescriptionIn mathematics, the grea

原创 博弈 以後整理

①策略  (煩) ②sg    (規律 dp) ③P-N (記憶化搜索 dp)  (暴力) EX結論: N階Nim 遊戲 結論:當且僅當在每一個不同的二進制位上,x1,x2…xk中在該位上 1的個數 是N+1 的倍數時,後手方有必勝策略

原创 POJ 2337 Catenyms

題目鏈接 : POJ2337 Catenyms Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 8095   Accepted: 2130 Descripti

原创 ZOJ 2290 Game

題目鏈接 : ZOJ2290 Game     Time Limit: 2 Seconds                                    Memory Limit: 65536 KB               

原创 POJ 2481 Cows

題目鏈接 : POJ2481 Cows Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 9715   Accepted: 3183 Description Fa

原创 二分圖一些定理 以後整理

點覆蓋集:無向圖G的一個點集,使得該圖中所有邊都至少有一個端點在該湊集內。最小點權覆蓋集:在帶點權無向圖G中,點權之和最小的覆蓋集。點自力集:無向圖G的一個點集,使得任兩個在該湊集中的點在原圖中都不相鄰。最大點權自力集:在帶權無向圖G中,

原创 POJ 3468 A Simple Problem with Integers

題目鏈接 : POJ3468 A Simple Problem with Integers Time Limit: 5000MS   Memory Limit: 131072K Total Submissions: 43012   Ac

原创 POJ 3683 Priest John's Busiest Day

題目鏈接 : POJ3683 Priest John's Busiest Day Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 6797   Accepted:

原创 ZOJ 2314 Reactor Cooling

題目鏈接 : ZOJ2314 Reactor Cooling     Time Limit: 5 Seconds                 

原创 ZOJ 3647 Gao the Grid

題目鏈接 : ZOJ3647 Gao the Grid     Time Limit: 2 Seconds                                     Memory Limit: 65536 KB      

原创 POJ 3678 Katu Puzzle

題目鏈接 : POJ3678 Katu Puzzle Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 6427   Accepted: 2346 Descrip

原创 TOJ 10004 Prime Factorization

題目鏈接 : TOJ10004 10004 - Prime Factorization Time Limit: 1000MS Memory Limit: 65536KB   DescriptionFor a given inte

原创 TOJ 10006 Josephus Problem

題目鏈接 : TOJ10006   10006 - Josephus Problem Time Limit: 1000MS Memory Limit: 65536KB DescriptionGiven a group of n