| ||||||||||
| 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 | |||||||||
一个关于 Pascal 的问题 弱弱的问???var s,t:int64;
Result:Wrong Answer
for i:=1 to n do
begin
s:=a[i]*(right[i]-left[i]+1);
if s>t then t:=s;
end;
Result:Accepted
for i:=1 to n do
begin
s:=right[i]-left[i]+1;
if a[i]*s>t then t:=a[i]*s;
end;
这两个究竟有什么不同??郁闷啊!!!!!!!!
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator