4 persons a, b , c , d have to go to concert which will held
in 17 minutes. there is a bridge which only 2 persons at a
time can cross. its night and they have only one flashlight
with them. Flashlight cannot be thrown. one person should
return with the flashlight
all 4 person have different speed.
a = crosses bridge in 1 min.
b = crosses bridge in 2 min.
c = crosses bridge in 5 min.
d = crosses bridge in 10 min
how can they all reach in time.??
Ex- suppose a and d crosses bridge which will take 10 mins
and then d returns back with a flashlight which will make 20
mins and mission is failed.
Answer Posted / ajit kumar jha
A and B will cross the bridge. --> 2 mins
A will come back with the flashlight. --> 1 min
C and D will cross the bridge --> 10 mins
B will come back with the flashlight. --> 2 mins
A and B will cross the bridge. --> 2 mins
Total is 17 mins.
| Is This Answer Correct ? | 26 Yes | 3 No |
Post New Answer View All Answers
What is access path in as400?
The content of Physical file is as below: hfcftp wruquief SENDPASV 0 CDUP ASCII GET 01100901.CSV ramndk/ECP505.EC0110090 (REPLACE QUIT Thw above commands will get executed when we call STRTCPFTP from CL program.... Now if I want to use SFTP what can be the solution? plz reply in detail....Thank you for ny help... I m using RPG/ILERPG to download...
how may a cgi control duplicate inputs?
what are the various types of device files?
What is the use of jdftval in as400?
how to get the cursor position?
which are the figurative constants used in rpg?
how you will find an error which is not in the first page of the subfile without using rolldown key?
how do you use exceptional write in c specs?
how many levels are there in a physical file?
http default port 80 is used by some other production http service. How can I create an http instance on another port to run cgidev2 and my future cgi developments?
what is logical file?
is there any way I can ease my rpg controls on numeric input fields? How about an input date field?
define the purpose of the *bcat function?
what is the maximum number of files allowed in rpg?