partition by parity by uru

#define F(x)for b:=0to 49999do for c:=1to a[x]do writeln(x);
var a:array[0..99999]of word;b,c:word;begin
repeat
read(b);inc(a[b])until eof;F(2*b)writeln;F(2*b+1)end.

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page