I tried this in Pascal but it didn't work also, i need to check if N has integer square root . Please help !
[pascal] program p10110; var n: integer; begin while not eof(input) do begin readln(n); if (n = 0) then break; if frac(sqrt(n))<0.000001 then writeln('yes') else writeln('no'); end ...
I give up from this problem and P.E. response, i tried many methods for output but none of them works,
if anyone has AC whthout P.E would you please send it to me at mailto: anblasko@globalnet.hr
Thanx in advance
for i=1 to length(str1) for j=1 to length(str2) begin if str1 =str2[j] then begin delete char at j position in str2 add char at i position to temporary string exit j loop end end write alphabet. sorted temporary string
I got P.E. in Pascal, if anyone knows what's the catch ?