### Abdullah_Al_Mahmud's blog

By Abdullah_Al_Mahmud, history, 2 months ago,

How is the brightness calculated for the pyramid? I understand the calculation for all the rooms. But room (5, 2) is not clear. Also in the explanation of test case 3, how the brightness of room (3, 2) is 3? Here is the problem link : Round #822 B.

• -18

 » 2 months ago, # |   0 Just read problem again
 » 2 months ago, # |   0 The brightness is calculated using torches. There are of course more than 3 squares from where you can reach (5, 2) but only 3 of them have torches so the brightness is 3.
•  » » 2 months ago, # ^ | ← Rev. 2 →   0 Can you kindly explain (5,2). Brightness given for room (5, 2) is 4. But my calculation says 3.
•  » » » 2 months ago, # ^ |   0 If you want to reach (5,2) there are 4 torches with which you can go there.You can go on (5,2) with:-(1,1) (2,1) (3,2) (4,1)So the answer is 4
 » 2 months ago, # |   0 1734D — Slime Escape Can anyone give me a TestCase for which my submission is Wrong? 173399106
•  » » 2 months ago, # ^ |   0 Just do stress testing :).
•  » » » 2 months ago, # ^ |   0 Stressed!