石浩瀚 @ 2016-02-04 23:40:13
var
n:longint;
i,j:longint;
out:array[1..500] of longint;
sta:array[1..1000] of longint;
procedure solve(n:longint);
begin
if n=0 then
exit;
solve(n div 2);
for i:=1 to 500 do
for j:=1 to 500 do
if n mod 2=0
then
sta[i+j-1]:=sta[i+j-1]+out[i]*out[j]
else
sta[i+j-1]:=sta[i+j-1]+out[i]*out[j]*2;
for i:=1 to 500 do
begin
out[i]:=sta[i] mod 10;
sta[i+1]:=sta[i+1]+sta[i] div 10;
end;for i:=1 to 1000 do
sta[i]:=0
end;
begin
readln(n);
writeln(trunc(ln(2)/ln(10)*n)+1);
out[1]:=1;
solve(n);
for i:=500 downto 2 do
begin
write(out[i]);
end;
writeln(out[1]-1);
end.
by wangzh @ 2016-08-05 11:58:16
你猜
by Joyee—Jin @ 2017-03-12 19:53:58
懒得回答
by Ydkwia @ 2019-08-14 09:50:41
2468烤咕
by team109 @ 2019-10-20 10:36:36
kaogu
@happynewyear
我又来考古了
又:我的足迹散布在24680,1357,19683,59049,78125,117650,16807等等
by Happynewyear @ 2019-10-20 13:37:42
@team109 考古
by xh39 @ 2020-04-03 10:45:17
考古。
by xh39 @ 2020-04-03 10:45:56
@team109
19683,59049,78125,117650,16807有什么好考古的。