| ||||||||||
| 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
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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator