Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Program n1;
- var n,m,i,j: integer;
- f: byte;
- begin
- readln(n);
- readln(m);
- f:=0;
- for i:=m-1 downto 1 do begin
- for j:=i-1 downto 1 do if(i*i*i-j*j*j=n) then begin
- write('YES');
- f:=1;
- break;
- end;
- if (f=1) then break;
- end;
- if (f=0) then write('NO');
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement