Codeforces и Polygon могут быть недоступны в период с 23 мая, 7:00 (МСК) по 23 мая, 11:00 (МСК) в связи с проведением технических работ. ×

Can the code be hacked that using simulated annealing in CF1804E?

Правка en1, от Mine_King, 2023-03-17 08:44:49

Some one used simulated annealing to solve CF1804E like this one.

First, it random one set of solutions. Then, it randomly choose one $$$i$$$ at a time and change the value of $$$a_i$$$ and repeat this step until the time limit is about to be exceeded.

I want to know Can this code be hacked?

Thank you very much!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Mine_King 2023-03-17 08:44:49 443 Initial revision (published)