寫出一個可以工作的程序并不夠
Given an int m and a vector <int> a containing n numbers, return the result of the following expression:
Notes
-
The expression is calculated from top to bottom.
"x mod y" means the remainder of x divided by y.
Assume 0! = 1.
Constraints
a will contain between 1 and 50 elements, inclusive.
Each element of a will be between 0 and 2147483647, inclusive.
m will be between 1 and 40000, inclusive.
posted on 2006-12-21 10:58 Dain 閱讀(1008) 評論(6) 編輯 收藏 引用 所屬分類: 算法 、問題
好好想一想,冪與模的幾個定理都忘了 你現在有些什么想法? 回復 更多評論
在想ing 有什么想法,交流交流 回復 更多評論
做出來有獎 回復 更多評論
看不到圖了 回復 更多評論
@李錦俊 能看到阿,可能顯示慢吧 回復 更多評論
看來,沒人做出來啊 我只好貼答案咯 http://www.topcoder.com/tc?module=Static&d1=match_editorials&d2=srm283 回復 更多評論
Powered by: C++博客 Copyright © Dain