题解 1245: 神奇的fans

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

神奇的fans(c语言)

```c#include#includeintcompare(constvoid*n1,constvoid*n2){return*((int*)n1)-*((int*)n2);}intmain(){intn=0;scanf("%d",&n);while(n--){intm;scanf("%d",

排序+遍历

摘要:先对数列进行排序,定义a[1]-a[0]为公差,遍历数列,如果有相邻两个数的差不等于公差输出no 否则输出yes ```cpp #include "iostream" using names……

神奇的fans(模拟)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constintN&……