using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace yuliufa_1
{
class Program
{
static void Main(string[] args)
{
int[] indexs = new int[100];
for (int i = 0; i < 100; i++)
{
indexs[i] = i + 1;
}
int[] A = new int[100];
Random r = new Random();
int site = 100;
int rindex = 0;
A[0] = 58;
A[1] = 62;
for (int j = 2; j < 100; j++)
{
rindex = r.Next(0, site);
A[j] = indexs[rindex];
for (int q = 0; ; q++)
{
if (((A[j - 2] - A[j - 1]) * (A[j - 1] - A[j]) < 0) && (A[j - 2] != A[j - 1]) && (A[j - 1] != A[j]))
{
break;
}
else
{
rindex = r.Next(0, site);
A[j] = indexs[rindex];
continue;
}
//break;
}
}
int[] B = new int[100];
//double []Sa =new double [100];
//double []Sm =new double [100];
double Sa, Sm;
int C = 100;
int n=0,m=2;
int Y1, Y2, Y3;
if (m < C - 1)
{
if (m == 2)
{
B[n] = A[m - 2];
n = n + 1;
}
else
{
评论0