摘要:
题解:先判断第一个是否负号。如果是把第一个符号拿掉之后判断后面的长度是否#include char s[150],ss[150];int A,B;long long a,b;using namespace std;int main(){ while((gets(s)!=NULL)&&(~sca... 阅读全文
posted @ 2014-10-14 15:35
forever97
阅读(195)
评论(0)
推荐(0)
摘要:
#include #include using namespace std;map a,b;int t[105],x,n;int main(){ while(~scanf("%d",&n)){ int flag=1; a.clear(); b.clear(); ... 阅读全文
posted @ 2014-10-14 15:33
forever97
阅读(158)
评论(0)
推荐(0)
摘要:
题解:前缀和计算统计。#include #include using namespace std;typedef long long LL;LL ans; char s[100010];int T,k,t[200],i,j,n;int main(){ scanf("%d",&T); wh... 阅读全文
posted @ 2014-10-14 15:27
forever97
阅读(341)
评论(0)
推荐(0)
摘要:
#include int t,n,a[10];int main(){ while(~scanf("%d",&n)){ int flag=0; for(int i=0;i0)flag=1; if(flag==0){puts("-1");continue;... 阅读全文
posted @ 2014-10-14 15:25
forever97
阅读(222)
评论(0)
推荐(0)
摘要:
#include int main(){ int n,m,x,y; while(~scanf("%d%d%d%d",&n,&m,&x,&y)){ if(2*x==n&&2*y==m)puts("YES");else puts("NO"); }return 0;} 阅读全文
posted @ 2014-10-14 15:23
forever97
阅读(123)
评论(0)
推荐(0)
摘要:
题解:筛出约数,然后计算即可。#include #include typedef long long LL; LL a1[1000005],a2[1000005],x,y,k,g;int cnt1,cnt2,T;LL gcd(LL a,LL b){if(b==0)return a;else retu... 阅读全文
posted @ 2014-10-14 15:19
forever97
阅读(271)
评论(0)
推荐(0)
摘要:
题解:直接计算即可。#include #include using namespace std;int main(){ int T; scanf("%d",&T); while(T--){ int a,b,c; bool flag=1; scanf("%... 阅读全文
posted @ 2014-10-14 15:17
forever97
阅读(132)
评论(0)
推荐(0)

浙公网安备 33010602011771号