Can anyone hack this solution or prove it correct?

Правка en1, от -Cap1taL-, 2023-12-26 11:58:56

https://mirror.codeforces.com/contest/1175/submission/238928196 For judging whether an array of length n is a 1~n permutation, I judged its sum{i^1} sum{i^2} sum{i^3} sum{i^4} and passed. Can anyone hack this solution or prove it correct? please help me :(

Теги hashing, math, divide and conquer, brute force

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский -Cap1taL- 2023-12-26 11:58:56 300 Initial revision (published)