摘要:
#include #include using namespace std; long long n,k,ans; string m; int main(){ cin>>m>>k; long long x=0,sum=0,y=1; for(int i=0;i=k)break; y*=10; } if(i==1001){printf("... 阅读全文
摘要:
#include #include using namespace std; int m,cnt,a[1000000]; int main(){ scanf("%d",&m); while(m>0){ a[++cnt]=(m+1)>>1; m>>=1; } printf("%d\n",cnt); for(int i=c... 阅读全文
摘要:
#include #include #define reg register using namespace std; const int N=14; const int S=(1>1&i)); f[0][0]=1; for(reg int i=1;i<=n;i++) for(reg int j=0;j<s;j++) if(g[j] &... 阅读全文
摘要:
#include #include #define regint register int using namespace std; long long n,k,p[1000010],cnt,sum[1000010],ans=1e18; long long check(long long n,long long k){ long long cnt=0; for(n/=k;n... 阅读全文