ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1234. Bricks

Help! Please, give some hints!
Posted by Pasha 25 Jul 2004 20:34
In 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.
Re: Help! Please, give some hints!
Posted by Kopeliovitch Sergey (1) 26 Jul 2004 12:36
We can rotate bricks!
Example 1x10x10 we can push to 9x9
Re: Help! Please, give some hints!
Posted by Pasha 28 Jul 2004 10:35
Thanks for Your hint! I've got AC now.

Edited by author 28.07.2004 11:31
Re: Help! Please, give some hints!
Posted by komp 30 Apr 2011 17:49
Pasha wrote 28 July 2004 10:35
Thanks for Your hint! I've got AC now.

Edited by author 28.07.2004 11:31
Pasha wrote 28 July 2004 10:35
Thanks for Your hint! I've got AC now.

Edited by author 28.07.2004 11:31
Re: Help! Please, give some hints!
Posted by Edric Mao 3 Oct 2011 19:32
Thanks for your hint!!!
Re: Help! Please, give some hints!
Posted by zhangweilst 28 Nov 2015 15:37
Haha, I wrote the exactly same code...