【枚举】Petrozavodsk Summer Training Camp 2016 Day 6: Warsaw U Contest, XVI Open Cup Onsite, Sunday, Aug.
f(n)定义为n的十进制表示下所有位的平方和。问你方程K*f(n)=n在a#includeusingnamespacestd;typedeflonglongll;llK,a,b;intmain(){//freopen("g.in","r",stdin);intans1=0,ans2=0;cin>>K>>a>>b;for(llfn=1;fn(a-1ll)/K){break;}llN=fn*K;llt