10 2020 档案
摘要:#include <stdio.h> #include <math.h> int reverse(int data) { //请在此填写代码,实现将参数data的值反转,并返回的功能 /* begin */ int ans=0,cnt=0,a[1000],flag=0; if(data<0){ fl
阅读全文
摘要:#include <stdio.h> #include<string.h> #include<stdlib.h> //第一关代码 struct node {//此处填写代码,定义链表结点类型,包含一个存放整型数据的 成员,和一个指向下一个结点的成员 int data; struct node* ne
阅读全文
摘要:https://blog.csdn.net/a845717607/article/details/86530433 map使用: 声明:map<键,值> 变量名; 存储: scanf("%d %lf",&e,&coe); mp1[e]=coe; 遍历:for(map<int,double>::ite
阅读全文
摘要:#include <iostream> #include <cstdio> #include <cstring> int main() { //std::cout << "Hello, World!" << std::endl; int n , tmp=0, floor,ans=0; scanf("
阅读全文
摘要:#include <iostream> #include <cstdio> #include <cstring> const int maxn = 10050; struct node { int start,end; int sum; int value; }dp[maxn]; int main(
阅读全文
摘要:1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 const int maxn = 110; 5 bool compare(int a[],int b[]){//a小于b返回真,否则返回假 6 if(a[0]!=b[0]
阅读全文
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 //第一关代码 4 typedef int DataType; 5 typedef struct node * PNode; 6 struct node 7 {//此处填写代码,定义链表结点类型,包含一个存放整
阅读全文
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 4 /*此处是顺序线性表数据结构定义*/ 5 typedef int DataType; 6 struct seqList 7 {//有3个数据成员 8 int MAXNUM;//用于记录顺序线性表中能存放的最
阅读全文
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 4 /*此处是链栈数据结构定义*/ 5 typedef int DataType; 6 struct node 7 { 8 DataType info; 9 struct node *link; 10 }; 1
阅读全文
摘要:http://www.520xiazai.com/soft/CLion-2020.html
阅读全文
摘要:1 #include <stdio.h> 2 3 /*此处是顺序栈数据结构定义*/ 4 typedef int DataType; 5 struct seqStack 6 {//有3个数据成员 7 int MAXNUM;//用于记录顺序栈中能存放的最大元素个数的 整型 MAXNUM 8 int to
阅读全文
摘要:1 #include <iostream> 2 using namespace std; 3 4 typedef char DataType; 5 6 //二叉树数据结构 7 struct node 8 { 9 DataType info ; //存放结点数据 10 struct node *lch
阅读全文
摘要:1 #include <stdio.h> 2 #include <stdbool.h> 3 #include <stdlib.h> 4 5 #define MAXSIZE 10000 6 typedef struct{ 7 char data[MAXSIZE]; 8 int top; 9 10 }S
阅读全文
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 typedef int DataType; 4 struct seqStack 5 {//有3个数据成员 6 int MAXNUM;//用于记录顺序栈中能存放的最大元素个数的 整型 MAXNUM 7 int t
阅读全文
摘要:#include <stdio.h> #include <stdlib.h> typedef int DataType; struct node{ DataType data; struct node *next; }; typedef struct node* PNode; PNode creat
阅读全文