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

Re:严重置疑本题

Posted by william1121 at 2006-03-18 14:25:12 on Problem 2366
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:
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