标签:
sqrt(122333444455555)=11060445.038765619 .
题解:题目说的很明白了——跟我念square root——平方根= =
然后就没别的了,注意设求出的平方根为r,则\({r}^{2} >= N\)= =为此又逗比了几次= =
1 /************************************************************** 2 Problem: 1349 3 User: HansBug 4 Language: Pascal 5 Result: Accepted 6 Time:0 ms 7 Memory:220 kb 8 ****************************************************************/ 9 10 var i,j:qword; 11 begin 12 readln(i); 13 j:=trunc(sqrt(i)); 14 if (j*j)<>i then inc(j); 15 writeln(j);readln; 16 end.
标签:
原文地址:http://www.cnblogs.com/HansBug/p/4487029.html