Source Code
#include<iostream>

using namespace std;
int main(){
    int Test;
    cin>>Test;
    while(Test>0){
        int n;
        int k;
        cin>>n;
        cin>>k;
        cout<<k/2<<endl;
        Test--;
    }
}
Copy
Ramadan Candies King_Of_Asgard
GNU G++17
56 ms
376 KB
Accepted