Source Code
#include <bits/stdc++.h>

using namespace std;

int main()
{
	int t;
	scanf("%d",&t);
	while(t--)
	{
		int n,k;
		scanf("%d %d",&n,&k);
		printf("%d\n",k/2);
	}
}
Copy
Ramadan Candies mahmoudbadawy
GNU G++17
7 ms
376 KB
Accepted