Hoố Xií
Mẹ......me may beo
 
 
You are given an array A of size N such that Aᵢ=0 initially, for all 1≤ᵢ≤N.
You have M enemies and each enemy will blast one bomb on an index. The ᵢᵗ enemy (1≤ᵢ≤M) will place their bomb at index Xᵢ, and the bomb will have a range of Yiᵢ.
Due to the iᵗ bomb, all indices in the range [Xᵢ−Yᵢ,Xᵢ+Yᵢ] might be affected:
For indices j, max(1,Xᵢ−Yᵢ)≤j<Xᵢ), the value at jᵗ index decreases by ((Xᵢ−j)⋅(Xᵢ−j+1).
For indices Xi​<k≤min(N,Xi​+Yi​)), the value at the ndex increases by ((k−Xi​)⋅(k−Xi​+1).
Find the resultant array after your mom fell down the 5th floor :D
Offline
Komentarze
Chi Dân 10 sierpnia 2023 o 3:53 
🐸🐸🐸🐸🐸__🐸🐸🐸🐸
__🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸
🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸
🐸🐸⚪️⚫️⚫️⚪️🐸🐸🐸⚪️⚫️⚫️⚪️
🐸⚪️⚫️⚫️⚪️⚫️⚪️🐸⚪️⚫️⚫️⚪️⚫️⚪️
🐸⚪️⚫️⚪️⚫️⚫️⚪️🐸⚪️⚫️⚪️⚫️⚫️⚪️
🐸🐸⚪️⚫️⚪️⚪️🐸🐸🐸⚪️⚫️⚪️⚪️
🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸
🔴🔴🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸
🐸🔴🔴🐸🐸🐸🐸🐸🐸🐸🐸🐸
🐸🐸🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴
🐸🐸🐸🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴
🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸
🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸
🐸🐸🐸🐸🐸🐸🐸🐸🐸
Chi Dân 29 lipca 2023 o 11:09 
chim be qua
Chi Dân 30 czerwca 2023 o 23:11 
free cheat
Chi Dân 1 maja 2023 o 21:55 
chim tiểu học
sab1 30 grudnia 2022 o 8:14 
ôi buồi to quá