From eb0d64aaef75e0583212ec503910b7716eb9a8b6 Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Thu, 20 Jul 2023 15:26:49 +0600 Subject: [PATCH] initial commit --- 706B Interesting drink/706B.cpp | 44 +++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 706B Interesting drink/706B.cpp 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