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

Why my code got WA
Разница между en1 и en2, 40 символ(ов) изменены
given 2 intergers $N,M$.↵

you have an array of $N$ integers and $M$ queries. Each query has 2 types:↵

type "1": $1$ $pos$ $val$ (change the value at position $pos$ to $val$)↵

type "2": $2$ $l$ $r$ $k$ (printf the value of the minimum element in range [l,r] that's not smaller than $k$)↵

i used segment tree with multiset to solve this problem, i'm wondering why my code got WA.↵

here is my code:https://
paste.ofcode.org/jibGJwc6Z3qgpmnMtqnK4xideone.com/6DtYsJ

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский TuHoangAnh 2021-12-26 15:26:20 40 Tiny change: 'e:https://paste.ofcode.org/jibGJwc6Z3qgpmnMtqnK4x' -> 'e:https://ideone.com/6DtYsJ'
en1 Английский TuHoangAnh 2021-12-26 06:53:39 470 Initial revision (published)