摘要:
晚上回来的路上、 仰望苍穹,夜空很美、 墨蓝星空、 朵朵白云、 在星空与白云之间,颗颗繁星、 真有感觉~ 又是一天,充实~ 阅读全文
摘要:
题意:区间染色,求染色次数大于等于k的长度。思路:因为n的范围比较小,直接离散化。----经典好题!!题目链接:http://acm.jlu.edu.cn/joj/showproblem.php?pid=2746例:View Code 1 #include <cstdio> 2 #include <cstring> 3 #include <cmath> 4 #include <string> 5 #include <algorithm> 6 #include <iostream> 7 #include <map> 阅读全文
摘要:
突然间发现,Map中的元素是自动按key升序排序的。附代码:View Code 1 #include <map> 2 #include <iostream> 3 using namespace std; 4 5 int main( ) 6 { 7 // freopen("data.in","r",stdin); 8 // freopen("data.out","w",stdout); 9 10 map <int, int> m1; 11 map <int, int>: 阅读全文