代码:
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long n,w=0,k;
int t;
cin>>t;
for(int i=0;i<t;i++)
{
cin>>k>>n;
w=0;
long long m=n;
while(m!=0)
{
m/=10;
w++;
}
if(w%k==0)
cout<<"aya"<<endl;
else
cout<<"baka"<<endl;
}
return 0;
}
是我思路不对还是怎么了