Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

我想这样的:第二种,你后面申明了一个很大的数组

Posted by hawk at 2004-10-24 19:43:44 on Problem 1936
In Reply To:郁闷ing Posted by:windbells at 2004-10-24 19:32:01
所以前面的s和t越界就都在这个数组的范围里
系统就没报re了
而前者s和t一越界之后就到别的进程空间里去了,系统就报了re
> #include<stdio.h>
> #include<string.h>
> #define Max 10000
> char s[Max],t[Max];
> int ls,lt;
> 这样是RE;
> 
> #include<stdio.h>
> #include<string.h>
> #define Max 10000
> char s[Max],t[Max];
> int ls,lt,arry[Max][Max];
> 这样是WA;(应该是RE的呀)
> 
> 变量都是全局的
> why?????

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator