高端品牌网站建设电商网站设计,科技时代,连云港专业网站制作,张雪峰说软件工程CodeForces - 627Ahttps://vjudge.net/problem/326413/originab (ab)1 (a^b);然后是位运算#xff0c;如果对于这一位置#xff0c;异或值为1时#xff0c;有两种可能#xff0c;由乘法原理#xff0c;答案1。如果sx#xff0c;就会出现一方全0b (ab)1 (a^b);然后是位运算如果对于这一位置异或值为1时有两种可能由乘法原理答案1。如果sx就会出现一方全0一方全1的情况所以-2. #includeiostream
#includecstdio
#includequeue
#includealgorithm
#includecmath
#includectime
#includeset
#includemap
#includestack
#includecstring
#define inf 2147483647
#define ls rt1
#define rs rt1|1
#define lson ls,nl,mid,l,r
#define rson rs,mid1,nr,l,r
#define N 100010
#define For(i,a,b) for(long long ia;ib;i)
#define p(a) putchar(a)
#define g() getchar()using namespace std;
long long s,x,k,ans1,t;
void in(long long x){long long y1;char cg();x0;while(c0||c9){if(c-)y-1;cg();}while(c9c0){x(x1)(x3)c-0;cg();}x*y;
}
void o(long long x){if(x0){p(-);x-x;}if(x9)o(x/10);p(x%100);
}
int main(){in(s);in(x);tx;k(s-x)1;if(sx||(s-x)%21){o(0);return 0;}while(x0){if(x1)ans1;if((x1)(k1)){ans0;break;}k1;x1;}if(st)ans-2;o(ans);return 0;
} 转载于:https://www.cnblogs.com/war1111/p/11205777.html