PersonalCorpus 版 (精华区)

158990 05:55:1210 Mar 2002
Bozhang,HIT,P.R.China 1120 Pascal Accepted 0.02 sec 49K


var
    n,p,k:integer;
begin
    readln(n); n:=n*2;
    for p:=round(sqrt(n))+1 downto 1 do
        if n mod p=0 then begin
            k:=n div p;
            k:=k-p;
            if odd(k) and (k>0) then begin
                writeln((k+1) div 2,' ',p);
                break;
            end;
        end;
end.
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.250毫秒