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:严重置疑本题In Reply To:严重置疑本题 Posted by:william1121 at 2006-03-18 14:19:45 另外,我交了一个平方的程序,说我TLE就算了,竟然说我WA,难道我平方都写错? 程序见下: program ee; var n,m:longint; i,j:longint; a,b:array[1..50000] of longint; begin readln(n); for i:=1 to n do readln(a[i]); readln(m); for i:=1 to m do readln(b[i]); for i:=1 to n do for j:=1 to m do if a[i]+b[j]=10000 then begin writeln('YES'); exit; end; writeln('NO'); end. Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator