Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

How to solve this modulo related problem ?

Правка en1, от LovesProgramming, 2020-03-27 01:15:22

Given three arrays a,b,c all of same length N. You want to minimize the value of :

max( (a(i)+t)%k + (b(i)+t)%k + (c(i)+t)%k ) , for all 1<=i<=n .

where 't' can be any non-negative integer.

Теги #modular_theory

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский LovesProgramming 2020-03-27 01:17:20 108
en1 Английский LovesProgramming 2020-03-27 01:15:22 246 Initial revision (published)