你不需要知道,你只需看一下题解了解一下题目意思就能做出来了。$\color{white}\text{(除非是蒟蒻)}$
by sss7020 @ 2018-10-01 07:44:09
但是我并不想打表@[陈博文1412](/space/show?uid=84626)
by Fractures @ 2018-10-01 08:17:57
```cpp
#include<cstdio>
#include<cmath>
using namespace std;
int a;
int main(){
scanf("%d",&a);
for(int i=1;i<=a;i++){
if(pow(i,2)>a){
printf("%d",i-1);
break;
}
}
return 0;
}
```
这样就能过前四个测试点,但是第五个好像说答案格式不对……
by Fractures @ 2018-10-01 08:19:36
OEIS了解一下
by _FILARET_ @ 2018-11-02 22:39:15
我咋感觉这道题像是:给定一个正整数p求至少2的k次方大于等于p呢我???
by yuzh2005 @ 2020-09-22 22:46:22