|
|
|
|
@ -45,7 +45,7 @@ int main() {
|
|
|
|
|
printf("总价值=%d", maxv);
|
|
|
|
|
}
|
|
|
|
|
~~~
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
~~~c
|
|
|
|
|
#include<stdio.h>
|
|
|
|
|
int fib(int n){
|
|
|
|
|
@ -66,7 +66,7 @@ int main(){
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
~~~
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
~~~c
|
|
|
|
|
#include<stdio.h>
|
|
|
|
|
typedef struct{
|
|
|
|
|
@ -107,7 +107,7 @@ int main(){
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
~~~
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
~~~c
|
|
|
|
|
#include<stdio.h>
|
|
|
|
|
#include<stdlib.h>
|
|
|
|
|
|