摘要: 2020ICPC上海 L-Traveling in the Grid World 题意 给定一个$n\times m$的网格图,你站在起始点$(0,0)\(,每次移动可以选择一个点\)(x,y)\(走线段到达它且这条线段不能经过其他格点,可以做任意次移动,问到达\)(n,m)$所需的移动距离总和最小 阅读全文
posted @ 2020-12-15 19:50 xyq0220 阅读(520) 评论(0) 推荐(0) 编辑
摘要: 2020ICPC上海 C-Sum of Log 题意 给定两个非负整数$X,Y$,求 \[ \sum_{i=0}^{X} \sum_{j= [i=0] }^{Y} [i\&j=0] \lfloor log_2(i+j)+1 \rfloor \] \(X,Y\le 10^9,T\le 10^5\) 分 阅读全文
posted @ 2020-12-15 14:44 xyq0220 阅读(303) 评论(0) 推荐(0) 编辑