topcoder SRM 591 DIV2 TheArithmeticProgression

OpenSoucre發表於2013-10-19
 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 };

相關文章