topcoder SRM 591 DIV2 TheArithmeticProgression

 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 };

posted @ 2013-10-19 22:38  OpenSoucre  阅读(163)  评论(0编辑  收藏  举报