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 |
如果是runtime error,建议把数组开大一点,尽量的大,100000就差不多啦.....我的小小代码 如下.....ac啦#include<stdio.h> int main() { int n; int x[100000],y[100000]; scanf("%d",&n); while(n--) { scanf("%d %d",&x[n],&y[n]); if(x[n] == y[n] || x[n] == y[n] + 2) { printf("%d\n",x[n] + y[n] - x[n] % 2); } else printf("No Number\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