! Divisible

Правка en2, от YosiefAhmed, 2023-03-20 05:20:51

Given array with n elements unique values, q query’s two type:

1: change the value of the element to other value which unique(not appear in array).

2: find the minimum value > 1 which not divisible by any other value in arrays

Can any one help me to solve this problem ?

Теги math

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский YosiefAhmed 2023-03-20 05:20:51 11
en1 Английский YosiefAhmed 2023-03-20 05:20:19 288 Initial revision (published)