level 9
var
n,x,y,z,s:longint;
m:real;
begin
read(n);
m:=4/n;
for x:=1 to 98 do
for y:=x+1 to 99 do
for z:=y+1 to 100 do
if 1/x+1/y+1/z=m then inc(s);
writeln(s);
end.
//有待验证
2014年08月24日 06点08分
4
好吧不用看了这个是错的
2014年08月24日 06点08分
回复 猎火电脑工作室 :为什么?
2014年08月24日 06点08分
回复 1156jins :输入5得0
2014年08月24日 06点08分
level 3
var
n,x,y,z,s:longint;
m:real;
begin
read(n);
m:=4/n;
for x:=1 to 98 do
for y:=x+1 to 99 do
for z:=y+1 to 100 do
if 4*x*y*z=y*z*n+x*z*n+x*y*n then inc(s);
writeln(s);
end.
2014年08月24日 07点08分
7