吴文涛 @ 2017-07-27 11:01:13
var n,i,j,x,y:longint;
function pd(a:longint):boolean;
begin
for j:=2 to trunc(sqrt(a)) do
if a mod j=0 then exit(false);
exit(true);
end;
begin
readln(n);
for x:=2 to n-1 do
if pd(x) then begin
for y:=2 to n-1 do
if pd(y)then if pd(n-x-y) then begin
write(x,y,n-x-y);
halt;
end;
end;
end.
by metalluster @ 2017-08-05 10:52:48
输出要用空格隔开
by 加载错误 @ 2017-08-22 23:29:31
这是什么语言
by 起名真的很难 @ 2017-08-23 21:39:45
@z1243074465 厉害厉害,这是Pascal啊,我学会的第一种计算机语言啊
by 加载错误 @ 2017-08-23 21:49:01
@大神罗宇扬 呵呵,才疏学浅~~