diff --git a/706B Interesting drink/706B.cpp b/706B Interesting drink/706B.cpp new file mode 100644 index 0000000..7ac059c --- /dev/null +++ b/706B Interesting drink/706B.cpp @@ -0,0 +1,44 @@ +#include +using namespace std; +using ll = long long; + + +void solve() +{ + ll n; + ll N=1e5+10; + cin>>n; + vectorshop(N); + for(ll i=0; i>x; + shop[x]++; + } + vectorpresum(N); + for(ll i=1; i>q; + while(q--) + { + ll x; + cin>>x; + if(x> TC; + //cin.ignore(); + while (TC--) solve(); +} \ No newline at end of file