这个小型控制台应用程序计算一个BigInteger并给我一个指数它命中的反馈。 现在我很好奇一些速度改进。我能做什么? Thx为您的建议! using System;
using System.Collections.Generic;
using System.Numerics;
namespace Counter
{
internal class Program
{
我试图在数组的帮助下减去两个大的正整数。但是当运行下面的代码时,在g ++(Ubuntu)上运行时会出现分段错误(核心转储)。 我跟着Subtract numbers using arrays - C++和Subtracting two long positive integers in an array c++但是找不到很多帮助。您使用operator[]提领其元素之前 int main() {
以下是我写查找N 1,N的前k个位数的Java private static int firstK(int n,int k)
{
double x, y;
x = n * Math.log10(n);
y = Math.floor(Math.pow(10, x - Math.floor(x) + k - 1));
return((int)y);
}