洛谷在线IDE为什么不能使用c#的BigInteger?
查看原帖
洛谷在线IDE为什么不能使用c#的BigInteger?
1189340
aishiteru_mitsu_ha楼主2024/5/15 18:18

代码如下

using System;
using System.Numerics;
class p1601{
    private static string a,b;
    static void Main(){
        a=Console.ReadLine();
        b=Console.ReadLine();
        Console.WriteLine(BigInteger.Parse(a)+BigInteger.Parse(b));
    }
}

运行后显示

/tmp/compiler_03nzrdel/src(8,27): error CS0103: The name `BigInteger' does not exist in the current context
Compilation failed: 1 error(s), 0 warnings

官方文档 求大佬指点

2024/5/15 18:18
加载中...