摘要: //算法笔记STL部分vector篇 #include #include #include #include using namespace std; const int M = 26*26*26*10+1;//一共有M种姓名组合的可能 (主营常量的定义方式与宏的定义方式的区别) vector s[M];//每个vector对应每个学生的选课情况 int getID(char na... 阅读全文
posted @ 2018-11-05 20:23 justdoit~ 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 1 //算法笔记STL部分set篇 2 #include 3 #include 4 const int N = 50; 5 using namespace std; 6 set st[N]; //定义一个集合数组 7 void compare(int x, int y) //输出st[x]与st[y]... 阅读全文
posted @ 2018-11-05 20:18 justdoit~ 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 1 //字符串处理部分第一题 2 #include 3 int main() 4 { 5 int n; 6 scanf("%d", &n); //输入一个不超过三位的正整数 7 int a[3]; 8 int num = 0; 9 while(n != 0) //1.将输入的三... 阅读全文
posted @ 2018-11-05 20:11 justdoit~ 阅读(131) 评论(0) 推荐(0) 编辑