原创 HDU 3790 最短路徑問題(單源最短路)
最短路徑問題 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 14259
原创 模板整理(總結別人的及自己的,每週更新)
一、二分圖 1.二分圖最大匹配(匈牙利算法模板): #include<iostream> #include<stdlib.h> #include<string.h> #include<stdio.h> #define max(a,b) a
原创 poj 1026 Cipher(置換羣循環節)
Cipher點擊打開題目鏈接 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 19570 Accepted: 5260 Description Bob an
原创 poj 1469 COURSES(判斷是否是存在不匹配的點(對於右邊的點集來說))
COURSES 點擊打開題目鏈接 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 17858 Accepted: 7038 Description C
原创 uva 11388 GCD LCM(簡單數學)
Problem D: GCD LCM Input: standard input Output: standard output The GCD of two positive integers is the lar
原创 unique函數(STL)
(⊙o⊙)…有空該學學STL了 原文地址:http://www.cnblogs.com/heyonggang/archive/2013/08/07/3243477.html 一.unique函數 類屬性算法unique的作用是從輸入序
原创 bestcoder#17 1001&&HDU 5100 Chessboard(數學)
Chessboard 點擊打開題目鏈接 Time Limit: 2000/1000 MS (Java/Oth
原创 uva 11889 Benefit(簡單數學)
Benefit Recently Yaghoub is playing a new trick to sell some more. W
原创 poj 1325 Machine Schedule(二分圖的最小點覆蓋)
Machine Schedule 點擊打開題目鏈接 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 12035 Accepted: 5129 Desc
原创 poj 1459 Power Network(最大流)
Power Network 點擊打開題目鏈接 Time Limit: 2000MS Memory Limit: 32768K Total Submissions: 23459 Accepted: 12284 Descri
原创 組合數取餘(轉)
組合數取模在ACM競賽中是一個很重要的問題,很多選手因爲數據太大而束手無策,今天就來詳細講解它。 組合數取模就是求的值,當然根據,和的取值範圍不同,採取的方法也不一樣。 接下來,我們來學習一些常見的取值情況 (1)和
原创 HDU 1576 A/B(數論-簡單逆元)
A/B Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2432 Ac
原创 poj 1328 Radar Installation(貪心)
Radar Installation 點擊打開題目鏈接 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 55857 Accepted: 12596 D
原创 uva 10673Play with Floor and Ceil(擴展歐幾里得算法)
Play with Floor and Ceil 點擊打開題目鏈接 Input: standard inputOutput: standard outputTime Limit: 1 second Theorem For any tw