#include <cstdio>
#include <cstring>
#include <algorithm>
#include <cstdlib>
#include <string>
#include <iostream>
#include <utility>
#include <cstdio>
const int N = 100009;
using namespace std;
string ans[110];
char str[N];
struct Node
{
int d[N];
int len;
Node() {memset(d, 0, sizeof(d));len=1;}
Node(char *s)
{
memset(d, 0, sizeof(d));
len = strlen(s);
int i = 0;
while(s[i] != '\0')
{
d[len-i-1] = s[i] - '0';
++i;
}
}
int cmp(const Node &t)
{
int l = this->len - t.len;
if(l < 0)
return -1;
int i;
for(i=t.len-1;i>=0;i--)
{
if(this->d[i+l] < t.d[i])
break;
else if(this->d[i+l] > t.d[i])
{
c++ 大数加法 乘法 除法 (模板)
最新推荐文章于 2024-04-27 16:33:41 发布