Interesting way to solve 573C

Правка en1, от vitux, 2015-08-30 12:11:38

I was upsolving problem 573C - Bear and Drawing.

My solution 12772765 got wa12.

But after I shuffled nodes it got AC.

12772768

Difference is only in line random_shuffle(q.begin(), q.end());

After that I fixed a bug, and solved it honestly 12773232. But imho tests are a little bit weak.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский vitux 2015-08-30 12:11:38 365 Initial revision for English translation
ru2 Русский vitux 2015-08-30 12:02:15 80
ru1 Русский vitux 2015-08-30 11:40:17 368 Первая редакция (опубликовано)