easy(全是for)
#include<iostream>
#include<map>
using namespace std;
int main()
{
int N,n,m;
cin >> N;
map<int,int>mp;
while(N--){
cin >> n >> m;
mp.clear();
for(int i = 1;i <= n;++i){
for(int j = 1;j <= n;++j){
mp[i * j]++;
}
}
cout << mp[m] << endl;
}
}
登录后发布评论
暂无评论,来抢沙发