class Program
{
Dictionary<string, int> di = new Dictionary<string, int>();
//int[] di = new int[3];
if (a.Length <= 0)
{
Console.WriteLine("数组为空");
}
int MaxStart = 0,MaxEnd=0, curr = 0; //当前位置和最大子数组的及起始和终止位置,当前位置
int SumStart = 0, SumEnd = 0; //当前位置子数组的起始和终止位置
int sum=0; //当前位置的和
int max = 0; //当前位置最大的和
{
//方法1
public static Dictionary<string, int> maxSubArry(int[] a){
Dictionary<string, int> di = new Dictionary<string, int>();
//int[] di = new int[3];
if (a.Length <= 0)
{
Console.WriteLine("数组为空");
}
int MaxStart = 0,MaxEnd=0, curr = 0; //当前位置和最大子数组的及起始和终止位置,当前位置
int SumStart = 0, SumEnd = 0; //当前位置子数组的起始和终止位置
int sum=0; //当前位置的和
int max = 0; //当前位置最大的和