why is this answer wrong?

Revision en1, by kofhearts, 2015-12-29 07:17:26

I am confused by a case for the following problem

http://codeforces.net/contest/108/problem/B

the answer to the following test case is YES

7 1 2 3 4 8 16 32

I thought it was NO since the value that can fit in 16 bits, the square of that value will fit in 32 bits so therefore Tuftuf will not stop using Gava.

Thanks for the help!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English kofhearts 2015-12-29 07:17:26 372 Initial revision (published)