原创 CodeForces 111B(數組模擬,記錄因子位置)
Petya and DivisorsTime Limit:5000MS Memory Limit:262144KB 64bit IO Format:%I64d
原创 CodeForces 257C View Angle(求角度)
View Angle Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Practice CodeF
原创 CodeForces 444C. DZY Loves Physics
DZY Loves PhysicsDZY loves Physics, and he enjoys calculating density.Almost e
原创 POJ 3259 Wormholes (Bellman) (負權迴路)
Wormholes Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Submit Status Description
原创 POJ 3041 Asteroids(二分匹配)
DescriptionBessie wants to navigate her spaceship through a dangerous asteroid field in the shape of an N x N grid (1 <
原创 HDU 1575 Tr A (矩陣乘法)
Tr A Time Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other) Total Submission(s) : 11 Acc
原创 CodeForces 337C Quiz(1等比數列找規律)
Quiz Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Practice CodeForces
原创 HDU-1175-連連看BFS+轉彎
連連看 Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K
原创 HDU 1214 圓桌會議
圓桌會議 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Su
原创 codeforces 232A Cycles (構建圖,貪心+模擬)
Cycles Description 描述 John Doe started thinking about graphs. Aft
原创 Codeforces 445 A DZY Loves Chessboard(預處理)
DZY Loves ChessboardTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I6
原创 HDU 2136Largest prime factor(打表)
Largest prime factor Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Prac
原创 CodeForces 237C Primes on Interval(數學加二分)
Primes on Interval Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Pract
原创 51nod-1009 數字1的數量
1009 數字1的數量 基準時間限制:1 秒 空間限制:131072 KB 分值: 5 難度:1級算法 給定一個十進制正整數N,寫下從1開始,到N的所有正數,計算出其中出現所有1的個數。 例如:n = 12,包含了5個
原创 數據結構之圖的儲存,搜索
實驗目的:掌握圖的鄰接矩陣和鄰接表兩個存儲結構及表示。 掌握圖的DFS和BFS兩種遍歷算法。 理解並掌握下述完整算法的基本思想以及算法實現方法:最小生成樹算法、最短路徑算法、拓撲排序算法及關鍵路徑算