text: nos . in [ ( n - 0.5 ) X , ( n + 0.5 ) X ) range will add n to the ans
code: ans += times * con * ( freq [ int ( val ) ] - freq [ int ( cur ) ] ) NEW_LINE cur = val NEW_LINE if ( val == maxx ) : NEW_LINE INDENT break NEW_LINE DEDENT j += 1 NEW_LINE