摘要: 1 #include //包含cin cout 2 #include //包含向量 vector 3 #include //包含算法 accumulate 4 #include //包括stl的很多算法 5 #include 6 using namespace std; 7 bool cmp(const int &a,const int &b)//这里参数类型要是const型的 8 { 9 if(a!=b)//这里判断的意思就是说 如果a>b 结果就为真 否则就为假10 return a>b;11 else12 return a>b;13 }14 int ma 阅读全文
posted @ 2013-02-07 11:53 在河之博 阅读(1361) 评论(4) 推荐(1)