2个整数A B,中间用空格分割。(0 <= A, B <= 10^9)输出A + B的计算结果。-------------------------------------------------------------------------using System; using System.IO; using System.Numerics; public class Sum { public static void Main() { StreamReader sr = new StreamReader(Console.OpenStandardInput()); StreamWriter sw = new StreamWriter(Console.OpenStandardOutput()); string[] s = sr.ReadLine().Split(' '); sw.WriteLine(BigInteger.Parse(s[0]) + BigInteger.Parse(s[1])); sr.Close(); sw.Close(); } }
用C#求A+B A,B在同一行输入,之间用空格隔开
最新推荐文章于 2022-09-30 13:51:09 发布