主题:tju1131
program tj;
const n=1048576;
label 1;
var a:array[1..n] of longint;
b,c,d:longint;
function chengfang(x,y:integer):longint;
var z,i:longint;
begin
z:=1;
for i:=1 to y do
z:=z*x;
chengfang:=z;
end;
begin
1:
readln(c);
for d:=1 to chengfang(2,c) do
a[d]:=d;
for d:=1 to chengfang(2,c)-1 do
begin
readln(b);
a[b]:=0;
end;
for d:=1 to chengfang(2,c) do
if a[d]<>0
then writeln(a[d]);
goto 1;
end.
内存!!!!!!!!!!
const n=1048576;
label 1;
var a:array[1..n] of longint;
b,c,d:longint;
function chengfang(x,y:integer):longint;
var z,i:longint;
begin
z:=1;
for i:=1 to y do
z:=z*x;
chengfang:=z;
end;
begin
1:
readln(c);
for d:=1 to chengfang(2,c) do
a[d]:=d;
for d:=1 to chengfang(2,c)-1 do
begin
readln(b);
a[b]:=0;
end;
for d:=1 to chengfang(2,c) do
if a[d]<>0
then writeln(a[d]);
goto 1;
end.
内存!!!!!!!!!!