#include using namespace std; typedef long long ll; #define max 200005 struct st{ ll index,freq,val; }s[max];; int main(){ ll t; ci