1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| #include <iostream> using namespace std; int T, n, m; int main() { cin >> T; for (int i = 0; i < T; ++i) { cin >> n >> m; int cnt = 0; for (int i = 0; i < n;) { ++i; if (m % i == 0 && m / i <= n) ++cnt; } cout << cnt << endl; } return 0; }
|