![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
多校
tabo0
这个作者很懒,什么都没留下…
展开
-
hdu6336 多校第四场E题 Matrix from Arrays
首先打表找出规律,它是以边长为2*n的正方形为一个周期向下和后扩散的,所以将周期的下标存到二维数组中,然后对于每个询问,求出完整周期有多少个,然后不完整的单独算即可。solve函数求的是(0,0)到(x,y)的和. 所以结果就是: solve(x2,y2)-solve(x2,y1-1)-solve(x1-1,y2)+solve(x1-1,y1-1); #pragma GCC opti...原创 2018-08-01 16:42:11 · 170 阅读 · 0 评论 -
hdu6373 多校第6场 Pinball
Problem Description There is a slope on the 2D plane. The lowest point of the slope is at the origin. There is a small ball falling down above the slope. Your task is to find how many times the ball ...原创 2018-08-08 17:04:22 · 281 阅读 · 0 评论