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 / 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 |
Hi friends i have i question please reply me asap. what would be coding in DDS and programing part for this condition suppose that i have three fields in the display file(subfile)which has 7 record format. Condition is ''The supplier LOT, ISSUED TO PROD and LINE GRP fields in display file(Subfile) will not be shown if their respective fields are blank/zero in the record formats WIM311FM and Record format WIM311FM. I want coding part in DDS and Programing. Please reply me as soon as posible.
In Which Specs Arrays, Tables & Constants Are Defined?
can error messages as a result of a comp, range or values keyword be overridden?
What is a library list ?
what is the use of data structures?
What is difference between fully procedural file and primary file?
what is difference between accespath and datapath? what is the difference between accespath and open datapath?
when do you use f-spec. Continuation line ?
What are the different types of messages in CL?
in conjunction with what other keyword must ovrdta and ovrata be used?
explain the difference between defining subfile and message-subfile?
which type of object is used in db2/400?