Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

lower_bound vs upper bound

Правка en1, от michael_jordon, 2021-01-06 22:18:10

question link : https://codeforces.me/problemset/problem/459/D solution link: https://codeforces.me/contest/459/submission/103579274

here if i am using arr[i]=upper_bound(arr1.begin(),arr1.begin()+n1,arr[i])-arr1.begin(); than it is showing wrong answer . why?

pls help.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский michael_jordon 2021-01-06 22:18:10 315 Initial revision (published)