先写结论:做笔记,首要目的是为了获得一个知识梳理的过程。而笔记,只是学习的副产品,是一种学习方式,不要当成是学习目的。
以上结论放在前面,是为了告诉大家。做数学笔记这种学习方式,未必是每个同学都必须经历或者适用的学习方式。大家要根据自己的学习情况来取舍。
学...
PS:学校具体考研信息在院校信息中输入学校名称搜索可查看
传送门:https://noobdream.com/schoollist/
计算机科学与技术学硕
北京大学
中国人民大学
北京工业大学
北京理工大学
北京邮电大学
中国农业大学...
一、相关概念和知识点
1.数据依赖:反映一个关系内部属性与属性之间的约束关系,是现实世界属性间相互联系的抽象,属于数据内在的性质和语义的体现。
2. 规范化理论:是用来设计良好的关系模式的基本理论。它通过分解关系模式来消除其中不合适的数据依赖,以解决插入异常、删除异常、更新异常和数...
第一章、计算机系统概述
1.计算机发展历程
计算机硬件发展历程:
电子管时代-->晶体管时代-->中小规模集成电路时代-->超大规模集成电路时代-->智能计算机-->生物计算机和量子计算机。
计算机的分类:
专用计算机、通用计算机。
摩尔定律:...
#include
int main()
{
return -40
}
#include <stdio.h>
#include <string.h>
int main(){
char str[100];
scanf("%s",st...
time out limit exceeded 时间复杂度太高(未AC)
思路是每查一次就要寻找这个区间的最小值。
#include <iostream>
#include<bits/stdc++.h>
using names...
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
while(scanf("%d",&n)!= EOF){
...
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
int main(){
string s="I want to take the MS's rocket to live...
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
bool cmp(double a,double b){
return a>b;
}
double a[100...
#include<stdio.h>
int a[100000]={0};
int b[100000]={0};
int main(){
int n;
int count=0;
scanf("%d",&n);
...
这题以前也算碰过,不过第二次做的话思路相对清楚了一些,花了也有很久的考试,考试的时候可能就很难写出来了。
思路汇总,这题给定了一个日期那就是1965.1.1是周五,总的就是要算出距离这一天过了多少天,然后%7,最后加上当天的周五就可以了。这块处理的话自己是加上5再%7,但是要注意周天%7...
时间复杂度太大,不能AC的代码
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
const long long p=1e9+7;
long long a[1000005]...
属于简单类动态规划,可以采用递归的方法。
爬到n阶可由n-1阶和n-2阶爬上来。以此类推,f(n)=f(n-1)+f(n-2) f(n)代表爬到n阶总的方法数。f(1)=1,f(2)=2
用long long 以防超出int范围
#include ...
#include <iostream>
#include<stdio.h>
#include<string.h>
#include<bits/stdc++.h>
using namespace std;
int main(){
...
思路:
把输入的数据用结构体存起来,然后对价格进行排序,然后输出。
在输入的过程涉及一些基本语法问题,标题已提示
scanf输入字符串:
char str[100]
scanf("%s",str) 不用+&,因为数组名就代表...
#include <iostream>
#include<stdio.h>
#include<string.h>
#include<bits/stdc++.h>
using namespace std;
int main(){
...
int a[10000];
int main(){
int youxiu=0; //统计优秀的人数
int tongguo=0; //统计通过的人数
int bujige=0; //统计不及格的人数
int n;
...
自己的思路,循环标记,对于出现的需要作为建筑物的就标记,然后统计未标记的即为剩余的树木。
#include <iostream>
#include<stdio.h>
#include<string.h>
#include<b...
#include<stdio.h>
#include<string.h>
#include<bits/stdc++.h>
using namespace std;
int a[25][25]; //n最大为20
int m...
cin.getline可用于char a[100],格式为 cin.getline(a,100)
#include <iostream>
#include<stdio.h>
#include<string.h>
#in...
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
while(cin>>n){
if(n==0) break;
int coun...
打印菱形,高度为奇数,这里的高度为总高度,所以最外层循环为 i<=(n+1)/2 (n/2向下取整)
1、分为上下两块打印
2、先打印空格,再打印*号
3、每行总的打印数为n,*号打印数为2*i-1(i为行数),那么空格数就是(n-(2*1-1))/2
...
没有输入,输出100-200内素数的个数以及具体值
#include <iostream>
#include<stdio.h>
#include<string.h>
#include<bits/stdc++.h>
u...
一刷,这种做法不太好,存在以下几个问题:
1、先把最大值最小值及其坐标找到后,在进行交换时,可能交换的恰是最小值与最大值,这样原本的下标就乱了,最终的结果也就错了。
2、本题做的时候还发现一个问题,就是开始传入数字到int[]里面,但是strlen()是不能用来求其长度的,strl...
#include <iostream>
#include<stdio.h>
#include<string.h>
#include<math.h>
using namespace std;
int main(){
int ...