上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页
摘要: 题目如下: 思路: f(x,z)=y 已知x,y 求z 1.有解:y是最小的,z可以等于y本身(只需要求一个符合条件的z) 2.无解:y比x中字母的大 代码如下: #include<cstdio> #include<iostream> using namespace std; int main(){ 阅读全文
posted @ 2020-06-08 11:33 miao-xixixi 阅读(187) 评论(0) 推荐(0)
摘要: 题目如下: 思路: 1.输入完成后会按enter 要记得\n也会被计入数字喔! 代码: #include<cstdio> #include<cstring>> #include<iostream> using namespace std; int main(){ string ss; getline 阅读全文
posted @ 2020-06-03 12:05 miao-xixixi 阅读(407) 评论(0) 推荐(0)
摘要: 题目如下: 思路: 1.看清题目:每个数字保留五个场宽!意思是每个数字前面要空四个格子 2.利用c++的函数进行全排列 代码如下: #include<cstdio> #include<iostream> #include<algorithm> using namespace std; int mai 阅读全文
posted @ 2020-05-31 15:18 miao-xixixi 阅读(139) 评论(0) 推荐(0)
摘要: 1.函数原型为: #include <algorithm> bool next_permutation(iterator start,iterator end) 2.用法 (1):需要将要数字按照升序排列 (2):使用方法: #include<cstdio> #include<iostream> # 阅读全文
posted @ 2020-05-31 14:52 miao-xixixi 阅读(176) 评论(0) 推荐(0)
摘要: 1.1.1 数据 数据库(DB):长期存储在计算机内,有组织的,可共享的大量数据的集合 理解:看作水库(数据库),里面有很多的水构成(数据)。 数据库管理系统(DBMS):位于用户和操作系统之间的一层数据管理软件 理解:对于数据库管理软件。 数据库系统(DBS):在计算机系统中引入数据库后的系统构成 阅读全文
posted @ 2020-05-27 11:46 miao-xixixi 阅读(231) 评论(0) 推荐(0)
摘要: 题目已经说了限制4MB,那我们一定不要用数组,肯定会超,要尽可能的缩小内存 用异或来解决 代码如下: #include<cstdio> //#include<iostream> //using namespace std; int main(){ int n,a; scanf("%d",&n); i 阅读全文
posted @ 2020-05-27 11:10 miao-xixixi 阅读(146) 评论(0) 推荐(0)
摘要: 题目如下: 思路: 也就给三个abc赋值 用数组即可 代码如下: #include<cstdio> #include<iostream> using namespace std; int main(){ char s1,s2; int m[3]={0}; while(scanf("%c:=%c;", 阅读全文
posted @ 2020-05-25 11:08 miao-xixixi 阅读(439) 评论(0) 推荐(1)
摘要: if(scanf("%d%d",&a,&b)==2) 1.用途:用来判断scanf输入是否成功 scanf的返回值是参数被成功赋值的个数 阅读全文
posted @ 2020-05-25 10:44 miao-xixixi 阅读(590) 评论(0) 推荐(0)
摘要: 2.1.1 关系 1.域:一组具有相同数据类型的值的集合 eg:学号的取值范围是一个域 2.笛卡尔积 :为域上的一种集合运算 笛卡尔积可以表示为一张二维表,表中每行对应一个元组,表中每一列都来自一个域 若一个关系有多个候选码,则选定其中一个为主码 主属性:候选码的诸属性 可以多个主属性只有一个码 2 阅读全文
posted @ 2020-05-23 11:28 miao-xixixi 阅读(361) 评论(0) 推荐(0)
摘要: 1.两个实体之间的联系 (1) 一对一联系(1:1) A 中的每一个实体,B中至多有一个实体与其联系,反之亦然 记作1:1 eg:学校和班长 (2)一对多联系(1:n) A的每一个实体,B中则有n个实体与其联系,反之亦然,记作1:n eg:班级与学生 (3)多对多联系(m:n) A的每一个实体,B中 阅读全文
posted @ 2020-05-21 23:25 miao-xixixi 阅读(329) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页