Ciel and Earthquake
The country in which Chef Ciel lives has many earthquakes. Since Ciel's restaurant is far away from an evacuation center, Ciel is afraid of earthquakes. So, Ciel would like to know the probability that Ciel can reach from Ciel's restaurant to the evacuation center when an earthquake occurs. Your task is calculating the probability under the following assumptions. Ciel's city has R*C junctions
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start