foo.cc: In function 'double cal(ll, ll)':
foo.cc:35:17: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
return (dp[r&1^1][k]-(sum[k]*sum[k])-dp[r&1^1][j]+(sum[j]*sum[j]))*1.0/(sum[j]-sum[k]);
~^~
foo.cc:35:46: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
return (dp[r&1^1][k]-(sum[k]*sum[k])-dp[r&1^1][j]+(sum[j]*sum[j]))*1.0/(sum[j]-sum[k]);
~^~
foo.cc: In function 'int main()':
foo.cc:57:28: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
dp[r&1][i]=dp[r&1^1][q[h]]+sum[q[h]]*(sum[i]-sum[q[h]]);
~^~
自豪的采用jd5进行评测(github.com/masnn/jd5)
{"receive":"2020-02-16T02:10:21.691Z","handle":"2020-02-16T02:10:21.691Z","cache_start":"2020-02-16T02:10:21.692Z","read_cases":"2020-02-16T02:10:22.525Z","judge":"2020-02-16T02:10:22.525Z","done":"2020-02-16T02:10:25.272Z"}