using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProgramDesign {
class Program {
static void Main(string[] args) {
//Console.WriteLine(Answer2String(GetAnswer(1, 2, 1, 1)));
//Console.WriteLine(Answer2String(GetAnswer(1, 1, 1, 1)));
//Console.WriteLine(Answer2String(GetAnswer(1, 3, 1, 1)));
Console.WriteLine("请输入a,b,c,d 四个整数,注意以英文逗号隔开");
string str = Console.ReadLine();
string[] strs = str.Split(',');
Console.WriteLine(Answer2String(GetAnswer(int.Parse(strs[0]), int.Parse(strs[1]), int.Parse(strs[2]), int.Parse(strs[3]))));
Console.ReadKey();
}
/// <summary>
/// 格式化方程的根为字符串
/// </summary>
public static string Answer2String(double[] answers) {
if(double.IsNaN(answers[0])) {