原创 GCJ Round 1A 2016 C.BFFS

Problem You are a teacher at the brand new Little Coders kindergarten. You have N kids in your class, and each one has

原创 Codeforces Round #308 (Div. 2) C.Vanya and Scales

Vanya has a scales for weighing loads and weights of masses w0, w1, w2, ..., w100 grams where w is some integer not

原创 Codeforces Round #376 (Div. 2) F. Video Cards (數論 前綴和 分塊求和)

F. Video Cards time limit per test 1 second memory limit per test 256 megabytes input standard input output s

原创 UVA - 10870 Recurrences (矩陣快速冪)

Recurrences Time Limit: 3000MS     64bit IO Format: %lld & %llu Submit Status uDebug Description 題意: 考慮線性遞推

原创 Codeforces Round #368 (Div. 2) D. Persistent Bookcase 離線 暴力

參考:http://www.cnblogs.com/qscqesze/p/5791698.html 寫的超級好,我就懶得寫了。。。

原创 UVA - 1386 Cellular Automaton (矩陣快速冪)

Cellular Automaton Time Limit: 18000MS     64bit IO Format: %lld & %llu Submit Status uDebug Description 題意

原创 URAL-1542 Autocompletion (字典序)

Autocompletion Time Limit:2000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Practic

原创 UVA-3516 Exploring Pyramids (DP)

Exploring Pyramids Time Limit: 3000MS     64bit IO Format: %lld & %llu Submit Status uDebug Description

原创 UVA - 11168 Airport (凸包+整理模板)

Airport Time Limit: 3000MS     64bit IO Format: %lld & %llu Submit Status uDebug Description 題意: 給平面上n個點,找一

原创 Codeforces Round #378 (Div. 2) C.Epidemic in Monstropolis (分塊處理)

C. Epidemic in Monstropolis time limit per test 1 second memory limit per test 256 megabytes input standar

原创 HDU-5945 Fxx and game (單調隊列與BFS)

借鑑自:http://blog.csdn.net/queuelovestack/article/details/52970866 Fxx and game    Accepts: 74    Submissions: 185

原创 Codeforces Round #353 (Div. 2) D. Tree Construction (BST)

D. Tree Construction time limit per test 2 seconds memory limit per test 256 megabytes input standard inpu

原创 Codeforces Round #353 (Div. 2) C. Money Transfers (思維題)

C. Money Transfers time limit per test 1 second memory limit per test 256 megabytes input standard input

原创 Codeforces Round #352 (Div. 2) C - Recycling Bottles

C. Recycling Bottles time limit per test 2 seconds memory limit per test 256 megabytes input standard inpu

原创 Codeforces Round #377 (Div. 2) D. Exams (二分)

D. Exams time limit per test 1 second memory limit per test 256 megabytes input standard input output sta