|
|
@ -1,4 +1,5 @@
|
|
|
|
################################
|
|
|
|
################################
|
|
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <vector>
|
|
|
|
#include <string>
|
|
|
|
#include <string>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdlib.h>
|
|
|
@ -99,6 +100,7 @@ int main()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
##############################
|
|
|
|
##############################
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
//求解结果表示
|
|
|
|
//求解结果表示
|
|
|
|
int num; //全局变量,存放众数
|
|
|
|
int num; //全局变量,存放众数
|
|
|
@ -144,6 +146,7 @@ int main()
|
|
|
|
printf(" 众数: %d, 重数: %d\n", num, maxcnt);
|
|
|
|
printf(" 众数: %d, 重数: %d\n", num, maxcnt);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
####################################
|
|
|
|
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
|
@ -168,6 +171,7 @@ int main()
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
######################################
|
|
|
|
######################################
|
|
|
|
|
|
|
|
|
|
|
|
#include<stdio.h>
|
|
|
|
#include<stdio.h>
|
|
|
|
int Fibon1(int n)
|
|
|
|
int Fibon1(int n)
|
|
|
|
{
|
|
|
|
{
|
|
|
|