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

PASCAL的代码,这题超级水啊

Posted by demaxiya at 2012-08-27 15:59:08 on Problem 2013
var
n,i,j:integer;
s:array [1..15] of string;
begin
j:=0;
while true do
begin
readln(n);
if n=0 then exit;
inc(j);
writeln('SET ',j);
for i:=1 to n do readln(s[i]);
for i:=1 to n do
if odd(i) then writeln(s[i]);
for i:=n downto 1 do
if not(odd(i)) then writeln(s[i]);
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