Source Code
#include<bits/stdc++.h>
#include<cstdlib>
#define ll long long
#define ln length()
#define sz size()
#define ff first
#define ss second
#define pq priority_queue<ll,vector<ll>,greater<ll>>
#define all(v) v.begin(),v.end()
#define FS ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
#define ul unsigned long long
#define tc ll tt; cin>>tt; while(tt--)
#define ld long double
#define ln length()
#define el "\n"
#define ts(c) to_string(c)

using namespace std;

int main()
{
    FS
    tc {
        ll n,k;
        cin>>n>>k;
        cout<<k/2<<el;
    }
}
Copy
Ramadan Candies heba.daraghmeh
GNU G++17
6 ms
320 KB
Accepted