Here are two submission for problem d , of ABC 087. one is giving due to declaration of int xdp[][] and int ydp[][] while other is passing using bool xdp[][] and bool ydp[][] . while long long is give RE much more than int.
Any idea, why its happening so!
AC : https://atcoder.jp/contests/abc082/submissions/5496820
int RE : https://atcoder.jp/contests/abc082/submissions/5496847
long long RE : https://atcoder.jp/contests/abc082/submissions/5496780