1991C — Absolute Zero :- DOUBT.

Revision en1, by saptarshikuar2003, 2025-02-13 19:35:39

submission link:-- https://codeforces.me/contest/1991/submission/305969839 problem link:-- https://codeforces.me/contest/1991/problem/C

My idea is to come to a state of balance that's why I am taking x=(v[0]+v[1])/2.then to have a greater value of x I larger vales v[0] and v[1].

I also tried to take the average but still didn't work.....(v[0]+v[1]+v[2]+....+v[v.size()-1])/v.size().

but it is not working as may taking more oppertion than it should take....

then I come across the editorial and there they used the narrowing the range concept....

can someone help my what is mistake I am doing.......

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English saptarshikuar2003 2025-02-13 19:35:39 657 Initial revision (published)