I64 mp_n; I64 MPSum(I64 my_mp_cnt) {//We could use the formula n*(n+1)/2 I64 lo=mp_n*Gs->num/my_mp_cnt, hi=mp_n*(Gs->num+1)/my_mp_cnt, res=0,i; for (i=lo;ipix_width, v=Fs->pix_height; F64 t1,t2,ress[TESTS_NUM]; CDC *dc=DCAlias; for (i=0,n=VAL_MIN;icolor=BLUE; for (i=PERCENT_MAX/10;icolor=RED; dc->thick=2; GrLine3(dc,i*h/(TESTS_NUM-1), v-ress[i ]/PERCENT_MAX*v,0, (i+1)*h/(TESTS_NUM-1),v-ress[i+1]/PERCENT_MAX*v,0); dc->color=GREEN; GrPrint(dc,i*h/(TESTS_NUM-1),v-FONT_HEIGHT,"10e%d",i+TEST_MIN); GrLine(dc,i*h/(TESTS_NUM-1),0,i*h/(TESTS_NUM-1),v); } PressAKey; DCFill; DCDel(dc); } MPAdd;