Comments

Noted, will integrate soon.

Completely agree but CP is all about consistency and sometimes u just need a small hint to keep going.

Auto comment: topic has been updated by um_ashit (previous revision, new revision, compare).

Removed the max token limit. Fixed

Thanks, hoping to improve much more based on your inputs

thanks :)

Auto comment: topic has been updated by um_ashit (previous revision, new revision, compare).

-10

EASY APPROACH FOR PROBLEM B (SOCIAL DISTANCE) Plus I am not able to understand the editorial :( Can anyone tell me why i am not able to understand most of the codeforces editorial. I feel like there is very difficult logic used in editorial ,seeing all those complex signs used in editorial it looks horrible may be its because i am new to it. int n,m; cin>>n>>m; int arr[n]; rep(i,0,n) cin>>arr[i]; if(n>m) re("NO") sort(arr,arr+n); reverse(arr,arr+n); int p=1; //Lets say the first person sits on first chair rep(i,0,n-1) p+=(arr[i]+1); //chair on which i+1th person sit if((max(arr[0],arr[n-1])+p)<=m) re("YES") else re("NO")

** NO RESPONSE ON SUBMITTED SOLUTIONS **