题解列表

筛选

信息学奥赛一本通T1454-山峰和山谷

```/*在判断是否是山峰或者山谷时不能用简单的if-else判断,因为可能会有即是山峰又是山谷的情况出现*/#include#definexfirst#defineysecondusingnamespacestd;typedefpairpii;constintN=1010;intg[N][N];bo

Tetrahedrons and Spheres

摘要:#include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> #include <algorithm> #……

2175: 信息学奥赛一本通T1250-The Castle

```/*在标注四个方向时一定要注意本题中往下是y轴增加的方向,和我们平时用的数学中的坐标轴不同!!!*/#include#definexfirst#defineysecondusingnamespacestd;typedefpairpii;//西北东南constintdx[4]={0,