Runtime Error on Uva 12874
Hi, I've been trying to solve the following problem Blanket
but my code just get RTE and I don't know why, could someone help me to find my bug?
Here is my code Code
Atcoder ABC #354 Solution Discussion
Interview with orz | IMO Gold Medalist, ICPC World Finalist, IGM in CF