全tle,打卡第二天,赏关注
查看原帖
全tle,打卡第二天,赏关注
1095322
mc_xiexie楼主2023/10/10 13:36
#include<bits/stdc++.h>
using namespace std;
int y;
int count = 1;
int main()
{
    int n,s,sum,o,t,b,qwe,asd[14514],yui=0,uio=1,asdf=0,zxcv;
    int a[14514];
    cin>>n>>s;
    sum=n+s;
    for(int i=s;i<=sum;i++)
    {
        for(int w=0;w<n;w++)
        {
            a[w]=s+1;
        }
        for(int q=1;q<=n;q++)
        {
            y=a[q];
            o=a[q];
            while(qwe!=0)
            { 
                b++; 
                qwe=o/10; 
            }
            for(int x=1;x<=b;x++)
            {
                t=1*10;
                
            }
            if(o%t==o%10)
            {
                for(int ert=10;ert>=t;ert=ert*10)
                {
                    asd[yui]=o%ert;
                    yui++;
                }
                for(int fgh=1;fgh<=o;fgh++)
                {
                    for(int wqer=1;wqer<=114514;wqer++)
                    {
                        if(asd[fgh]!=0)
                        {
                            asd[fgh]=asd[fgh]/2;
                        
                        }
                        else
                        {
                            uio=asd[fgh];
                            break;
                            
                        }
                    }
                }
                b=0;
                while(asdf!=0)
                { 
                    b++; 
                    asdf=uio/10; 
                }
                for(int ghjk=1;ghjk<=b;ghjk++)
                {
                   zxcv=1*10;
                
                }
                if(o%zxcv==o%10)
                {
                    cout<<n;
                    
                }
                
            }
            
        }

    }
    return 0;
}

2023/10/10 13:36
加载中...