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

Pasha Help! Please, give some hints! [5] // Problem 1234. Bricks 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.
Kopeliovitch Sergey (1) Re: Help! Please, give some hints! [3] // Problem 1234. Bricks 26 Jul 2004 12:36
We can rotate bricks!
Example 1x10x10 we can push to 9x9
Pasha Re: Help! Please, give some hints! [1] // Problem 1234. Bricks 28 Jul 2004 10:35
Thanks for Your hint! I've got AC now.

Edited by author 28.07.2004 11:31
komp Re: Help! Please, give some hints! // Problem 1234. Bricks 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
Edric Mao Re: Help! Please, give some hints! // Problem 1234. Bricks 3 Oct 2011 19:32
Thanks for your hint!!!
zhangweilst Re: Help! Please, give some hints! // Problem 1234. Bricks 28 Nov 2015 15:37
Haha, I wrote the exactly same code...