#25618: Mathmatica solution


hiroshi0916 (hiroshi0916)

學校 : 臺北市立成功高級中學
編號 : 31381
來源 : [27.246.96.92]
最後登入時間 :
2021-08-27 11:27:37

Let a = answer
Let n_0 = n
Let n_a = n+(a-1)

Problem => (n_0 + n_a) * a / 2 > m, find a
Feed the formula to wolframalpha(google it youself)

Convert it to code, ac.

Hint 1 math.h

Hint 2 check if n>m

 

#25619: Re:Mathmatica solution


hiroshi0916 (hiroshi0916)

學校 : 臺北市立成功高級中學
編號 : 31381
來源 : [27.246.96.92]
最後登入時間 :
2021-08-27 11:27:37

solve (n+n+a-1) * a / 2 > m , a