Codeforces functionality may be limited from June 18, 19:00 (UTC) to June 19, 3:00 AM (UTC) due to technical maintenance. Polygon will work as usual. ×

Interesting way to solve 573C

Revision en1, by 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.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English vitux 2015-08-30 12:11:38 365 Initial revision for English translation
ru2 Russian vitux 2015-08-30 12:02:15 80
ru1 Russian vitux 2015-08-30 11:40:17 368 Первая редакция (опубликовано)