Codeforces 1324 D

I have tried many times but i can’t find my mistake .

code:

https://codeforces.com/contest/1324/submission/76953135

https://codeforces.com/contest/1324/submission/76991489

Hi @goyalaman
refer to dis code


u were declaring
typedef tree<pait<int,int>, null_type, less<pair<int,int>>, rb_tree_tag,
tree_order_statistics_node_update>
new_data_set;
wrong.
and use long long as output might be >10^9