struct BigInteger
{
static const int BASE = 100000000;
static const int WIDTH = 8;
vector<int> s;
BigInteger(long long num = 0)
{
*this = num;
}
BigInteger operator=(long long num)
{
s.clear();
do {
s.push_back(num%BASE);
num /= BASE;
} while (num > 0);
return *this;
}
BigInteger operator=(const string& str)
{
刘汝佳 BigInteger 大数模板
最新推荐文章于 2020-03-28 14:04:29 发布