#20773: 一種想法


Easonsfriend (KenIsGenius)

School : 臺北市私立延平高級中學
ID : 89827
IP address : [106.105.188.90]
Last Login :
2021-09-21 20:17:07
c669. missing and duplicate -- it's david | From: [106.105.188.90] | Post Date : 2020-03-03 21:11

int d[3]={seq[1]-seq[0],seq[2]-seq[1],seq[3]-seq[2]};

        sort(d,d+3);

//d[1] 即是公差

 
ZeroJudge Forum