Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:怎么会是WA呢?In Reply To:怎么会是WA呢? Posted by:pl02206984 at 2010-01-05 19:54:56 > 怎么回事WA呢? > #include <cstdio> > int main() > { > int n,r,e,c,q; > scanf("%d",&n); > while(n--) > { > scanf("%d %d %d",&r,&e,&c); > q=e-c; > if(r<q) > printf("advertise\n"); > else if(r>q) > printf("do not advertise\n"); > else if(r=q)//这里错了应该为r==q > printf("does not matter\n"); > } //再加个return 0; > } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator