I have Submitted the Code But I got only 30 Marks.
I am not able to understand what does it mean by sub tasks given in the Problem.
Please Help!
Problem:- CodeChef: Practical coding for everyone
included libraries: string, iostream, vector

using namespace std;
int main(){
long long temp_sum{0}, tot_rev{0}, price{0}, t;
cin>>t;
vector prices(t);

I know that I am using two loops which makes the time complexity O(n^2) But other peoples are using a sorting method (By using inbuilt libraries) which also results in O(n^2) then why my code is slow please explain dear, everule1

It means that due to slow program I am not able to pass the other test cases.
So, I have to use that inbuilt sorting logic to get 100 Marks. Please tell if I still can go with this solution by editing this one.
Please help!