0 赞
题解:AT_abc449_d [ABC449D] Make Target 2
官方题解(原网址) 原题网址 D - Make Target 2 题解 by en\_translator To conveniently handle the expression max(|x|, |y|), we count those with |x| gt |y| an…
题解
存档题解 2 篇按获赞排序
在洛谷打开官方题解(原网址) 原题网址 D - Make Target 2 题解 by en\_translator To conveniently handle the expression max(|x|, |y|), we count those with |x| gt |y| an…
原题传送门 很简单的 O(1) 做法,但我写得很麻烦,可以当成娱乐文章来读。建议自己画张图一起食用。 第一步:特殊情况 考虑 L=0,D=0 时的情况(默认 R>U,因为两者互换不影响答案),可把这一块拆成两块:(0,0) 到 (U,U) 和 (U+1,0) 到 (R,U)。 第…