using System; using System.Collections.Generic; using System.Text; namespace MaxDAtaToMut ...{ publicclass OP ...{ publicstring Mut(string str1,string str2) ...{ int l1=str1.Length; int l2=str2.Length; string[] re =newstring[l1 + l2] ; for (int i =0; i < re.Length; i++) ...{ re[i] ="0"; } int x; int y; for (int i = l1-1; i >=0; i--) ...{ x=int.Parse(str1[i].ToString()); for (int j = l2-1; j >=0; j--) ...{ y=int.Parse(str2[j].ToString()); re[l1 - i + l2 - j -2] = ((int)(int.Parse(re[l1 - i + l2 - j -2]) + x * y)).ToString(); } } string RE=""; for (int i =0; i < re.Length-1; i++) ...{ int t=int.Parse(re[i]); if (t >=10) ...{ int m = t /10; int n = t %10; re[i+1] = ((int)(int.Parse(re[i+1]) + m)).ToString(); re[i] = n.ToString(); } RE = re[i] + RE; } if (re[l1 + l2 -1] !="0") ...{ RE = re[l1 + l2 -1]+RE; } return RE; } } }
using System;using System.Collections.Generic;using System.Text;namespace MaxDAtaToMut...{ public class OP ...{ public string Mut(string str1,string str2) ...{ int l1=str1.Len