delete pics to save space
This commit is contained in:
17
1.2759.cpp
Normal file
17
1.2759.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include<cstdio>
|
||||
#include<cmath>
|
||||
#include<algorithm>
|
||||
using namespace std;
|
||||
int L=1,R=2000000000,M,res=2000000000,n;
|
||||
int main()
|
||||
{
|
||||
scanf("%d",&n); n--;
|
||||
while(L<=R)
|
||||
{
|
||||
M=(L+R)>>1;
|
||||
if(M*log10(M)>=(double)n) res=M,R=M-1;
|
||||
else L=M+1;
|
||||
}
|
||||
printf("%d\n",res);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user