高精度
算法 高精度
Water_Coder
正在学算法
展开
-
大数加法板子(函数)C++
大数加法板子(函数)#include<stdio.h>#include<string.h>#include <iostream>using namespace std;string sum(string s1,string s2){ if(s1.length()<s2.length()){ string temp=s1; ...原创 2020-01-11 09:34:08 · 425 阅读 · 0 评论 -
HDU-6027-Easy Summation(快速幂)
Easy SummationYou are encountered with a traditional problem concerning the sums of powers.Given two integers n and k. Let f(i)=ik, please evaluate the sum f(1)+f(2)+…+f(n). The problem is simple as...原创 2020-01-11 09:11:41 · 222 阅读 · 0 评论