文章
4
粉丝
486
获赞
2
访问
37.2k
#include<cstdio>
#include<string.h>
#include<string>
#include<algorithm>
using namespace std;
const int N = 50;
int prime[]={0,2,3,5,7,11,13,17,
19,23,29,31,37,41,
43,47,53,59,61,67,
71,73,79,83,89,97};
char a[N],b[N],ans[N];
int ra[N],rb[N];
//将每个逗号前的数转化为10进制
void tran(char *str,int r[])
{
int ans = 0,cnt = 0,len = (int)(strlen(str)+1)/2;
for(int i =0;str[i]!='\0';)
{
ans = 0;
while(str[i] != ',' && str[i] != '\0')
{
ans *= 10;
ans += str[i]-'0';
++i;
}
...
登录后发布评论
暂无评论,来抢沙发