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

给我个WA的理由。。。

Posted by Alex_Wong93 at 2010-09-22 14:59:15 on Problem 2013
var
  n,i,j,se:longint;
  a:array[1..100]of string;
begin
  readln(n); se:=1;
  while n>0 do
    begin
      writeln('set ',se);
      for i:=1 to n do
        readln(a[i]);
      j:=1;
      while j<=n do
        begin
          writeln(a[j]);
          inc(j,2);
        end;
      j:=n-n mod 2;
      while j>=2 do
        begin
          writeln(a[j]);
          dec(j,2);
        end;
      readln(n); inc(se);
    end;
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