PRMQ june long challenge tutorial Please

Please some one share tutorial of PRMQ. IT is there in 2017 june challenge

Have you tried to use the search in the forum? A couple of people have made some editorials already. Next time do that so you can save some time. Refer to these links:

https://discuss.codechef.com/questions/102086/prmq-editorialunofficial-simplicity-gauranteed

2 Likes

can anyone tell if why my solution is not working…here

In a node,i have stored vector of pair where first is prime factor and second is the power.

struct node{
    vector<pair<int,int> >pr;
    int size;
};

i have submitted it around 35 times but no luck.Please help me.

//