CF527 ABCDE
來源:程序員人生 發(fā)布時間:2015-04-21 08:23:17 閱讀次數(shù):3365次
XGG Blog
- CF527A Playing with Paper
- CF527B Error Correct System
- CF527C Glass Carving
- CF527D Clique Problem
- CF527E Data Center Drama
CF527A Playing with Paper
Divide.
Code
CF527B Error Correct System
Greedy.
Code
CF527C Glass Carving
O(nlogn): use stl set
and upper_bound
.
O(n): solve the problem from the last query to the first.
Code
CF527D Clique Problem
Find the maximum set of intervals which are not intersect with each other. Sort the intervals by their right position and choose them greedily.
Code
CF527E Data Center Drama
Eulerian Cycle.
Code
生活不易,碼農(nóng)辛苦
如果您覺得本網(wǎng)站對您的學(xué)習(xí)有所幫助,可以手機掃描二維碼進行捐贈