1 #include <iostream> 2 #include <cstdlib> 3 4 using namespace std; 5 6 class TheArithmeticProgression{ 7 public: 8 double minimunChange(int a,int b, int c){ 9 return (abs(2*b-a-c)+0.0)/2; 10 } 11 12 };
转载于:https://www.cnblogs.com/xiongqiangcs/p/3378492.html