Update README.md

master
pmj8gckvu 3 years ago
parent 39f59b4491
commit 7aaaeb5352

@ -1,3 +1,4 @@
~~~c
#include<stdio.h>
#define max(x,y)((x)>(y)?(x):(y))
#define MAXN 20 //最多物品数
@ -43,7 +44,9 @@ int main() {
printf("\n");
printf("总价值=%d", maxv);
}
***
~~~
~~~c
#include<stdio.h>
int fib(int n){
if(n<=2){
@ -62,7 +65,9 @@ int main(){
}
return 0;
}
***
~~~
~~~c
#include<stdio.h>
typedef struct{
int number;
@ -101,7 +106,9 @@ int main(){
printf("众数为:%d,重数为:%d",result.number,result.count);
return 0;
}
***
~~~
~~~c
#include<stdio.h>
#include<stdlib.h>
#define max(a,b)((a)>(b)?(a):(b))
@ -148,4 +155,5 @@ int main(){
free(root->right);
free(root);
return 0;
}
}
~~~
Loading…
Cancel
Save