ACM Problem #10523

2007-02-09 6:34 am
http://acm.uva.es/p/v105/10523.html

Any sample program or hints?

Thanks

回答 (1)

2007-02-10 3:49 am
✔ 最佳答案
here it is

int acm10523(int N, int A)
{
if(N < 1 || N >15 || A < 0 || A > 15)
throw new exception;

int sum = 0;
for(int i = 1; i < N; i++)
sum = sum + i * Math.exp(A, i);

return sum;
}


收錄日期: 2021-04-25 13:03:53
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20070208000051KK04343

檢視 Wayback Machine 備份