|
|
back to boardIn what position brick can fall through the hole? Why program like follows doesn't work properly? var a, b, c, d, e: real; begin readln(a, b, c, d, e); if (a<=d)and(b<=e)or (a<=e)and(b<=d)or (a<=d)and(c<=e)or (a<=e)and(c<=d)or (b<=d)and(c<=e)or (b<=e)and(c<=d) then writeln('YES') else writeln('NO') end. We can rotate bricks! Example 1x10x10 we can push to 9x9 Thanks for Your hint! I've got AC now. Edited by author 28.07.2004 11:31 Thanks for Your hint! I've got AC now. Edited by author 28.07.2004 11:31 Thanks for Your hint! I've got AC now. Edited by author 28.07.2004 11:31 Haha, I wrote the exactly same code... |
|
|