链接:https://leetcode.cn/problems/sqrtx/
我的代码
int mySqrt(int x){
long res=0,i;
for(i=1;i<=x;i++){
if(i*i>x){
break;
}
}
res=i-1;
return res;
}
提交结果
提交结果 执行用时 内存消耗 语言 提交时间 备注
通过
20 ms 5.4 MB C 2022/07/01 15:09