原创 codeforces - 257c View Angle 【數學】

C. View Angle time limit per test 2 seconds memory limit per test 256 megabytes input standard input out

原创 poj - problem 3070 Fibonacci 【矩陣 +快速冪】

Fibonacci Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 13732   Accepted: 9728 Description In the F

原创 HDU - problem 1757 A Simple Math Problem【矩陣 + 快速冪】

A Simple Math Problem Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submi

原创 poj 2823 - Sliding Window【單調隊列模板】

Sliding Window Time Limit: 12000MS   Memory Limit: 65536K Total Submissions: 55797   Accepted: 16048 Case Time Lim

原创 hdu - 4506 小明系列故事——師兄幫幫忙 【快速冪】

小明系列故事——師兄幫幫忙 Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 65535/32768 K (Java/Others) Total Submission(s)

原创 poj - 1579 Function Run Fun 【dp】

Function Run Fun Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 18338   Accepted: 9372 Description W

原创 codeforces - 732D Exams 【二分 + 貪心】

Exams time limit per test 1 second memory limit per test 256 megabytes input standard input output standard o

原创 poj - 2406 Power Strings 【KMP】

Power Strings Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 45224   Accepted: 18873 Description Giv

原创 POJ - 3041 Asteroids 【二分圖匹配】

Asteroids Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 20881     Description Bessie wants to na

原创 codeforces -297c Splitting the Uniqueness【構造】

 Splitting the Uniqueness time limit per test 1 second memory limit per test 256 megabytes input standard input

原创 UVA - 1388 Graveyard 【數學】

題目鏈接 題意: 給一個周長爲10000的圓,一開始有n個距離相等的點, 現在要添加m個點使其仍舊保持距離相等的狀態,問最小的移動距離。 思路: 遍歷原來的每一個點,找出離他最近的新的位置。 #include <map> #include

原创 HDU - problem Tr A 【快速冪 + 矩陣】

Tr A Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4488    

原创 codeforces - 444c DZY Loves Physics【水】

DZY Loves Physics DZY loves Physics, and he enjoys calculating density. Almost everything has density, even a gra

原创 hdu - 5945 Fxx and game 【dp + 單調隊列】

Fxx and game Time Limit: 3000/1500 MS (Java/Others)    Memory Limit: 131072/65536 K (Java/Others) Total Submission(s)

原创 codeforces - 337c Quiz【貪心】

C. Quiz time limit per test 1 second memory limit per test 256 megabytes input standard input output sta