Competitive Programming Solutions
415 subscribers
11 files
33 links
Download Telegram
DM me for solutions
All questions done
First join the channel then send me screenshot in DM and will provide you the solution
Releasing answers in 5 minutes
#include <bits/stdc++.h>
using namespace std;
int main(){
long long t;
cin>>t;
for(int j=0;j<t;j++){
long long n,s,y;
cin>>n>>s;
y=s/((n/2)+1);
cout<<y<<endl;
}
return 0;
}
MEDIAN MAXIMIZATION SOLUTION