#include <bits/stdc++.h>      using namespace std;      #define ll long long   #define ld long double   #define pii pair <ll, ll>   #define mp make_pair      // const int inf = 1e9 + 111;   const int NMAX = 200111;   const int inf = 1e9 + 7;   const ld eps = 0.00000000001;   const ll mod = 1e9 + 7;      constexpr int64_t MOD = 998244353;      int main() {    cin.tie(0);    cout.tie(0);    cin.sync_with_stdio(0);    cout.sync_with_stdio(0);    cout << setprecision(20) << fixed;       int t;       cin >> t;       for (int i = 0; i < t; ++i) {           int n, k;           cin >> n >> k;           if (k < n) {               if (n % k == 0) {                   cout << 1 << endl;               } else {                   cout << 2 << endl;               }           } else {               cout << (k + n - 1) / n << endl;           }       }       return 0;   }   