摘要: #include <iostream> #include <string> #include <set> using namespace std; int main() { multiset<int> ss; set<int> his; int cmd ; cin >> cmd; for (int 阅读全文
posted @ 2022-03-01 10:15 icefield817 阅读(20) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <list> using namespace std; list<int> no; int getIndex(int id) { int res=0; list<int>::iterator ii; for 阅读全文
posted @ 2022-02-28 17:09 icefield817 阅读(34) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <list> #include <string> using namespace std; template <class T1, class T2> void Copy(T1 s, T1 e, T2 x) { for (; s != e; 阅读全文
posted @ 2022-02-28 15:52 icefield817 阅读(72) 评论(0) 推荐(0) 编辑
摘要: #include <cstdio> #include <iostream> #include <algorithm> #include <list> using namespace std; int main() { double a[] = { 1.2,3.4,9.8,7.3,2.6 }; lis 阅读全文
posted @ 2022-02-28 15:26 icefield817 阅读(49) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> using namespace std; struct A { int v; A() { } A(int n) :v(n) { }; bool operator<(const A& a) const { return v < 阅读全文
posted @ 2022-02-28 14:56 icefield817 阅读(35) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <iomanip> #include <cstring> using namespace std; template <class T> class CArray3D { // 在此处补充你的代码 public: int x, y, z; T 阅读全文
posted @ 2022-02-28 14:38 icefield817 阅读(164) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cmath> #include <algorithm> #include <string> using namespace std; template <class T1, class T2> struct Closer { // 在此处补 阅读全文
posted @ 2022-02-28 10:41 icefield817 阅读(44) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; template <class T> struct GoodCopy { // 在此处补充你的代码 GoodCopy() {} void operator()(T * arr, T * arrEnd, T * brr) 阅读全文
posted @ 2022-02-27 16:22 icefield817 阅读(63) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; bool Greater2(int n1, int n2) { return n1 > n2; } bool Greater1(int n1, int n2) { return n1 < n2; } bool Grea 阅读全文
posted @ 2022-02-24 17:54 icefield817 阅读(81) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <cstring> using namespace std; template <class T> class myclass { // 在此处补充你的代码 public: T * p; int size; 阅读全文
posted @ 2022-02-24 13:14 icefield817 阅读(40) 评论(0) 推荐(0) 编辑