数论 求逆元&费马小定理求逆元
obsorb_knowledge
心有不甘,呼唤着我
展开
-
第十四届华中科技大学程序设计竞赛(Beautiful Trees Cutting)二项式定理 & 快速幂 & 费马小定理求逆元
It’s universally acknowledged that there’re innumerable trees in the campus of HUST.One day Xiao Ming is walking on a straight road and sees many trees line up in the right side. Heights of each tree ...原创 2018-05-01 15:10:07 · 189 阅读 · 0 评论 -
Wand FZU - 2282 (组合数 + 错排公式)
N wizards are attending a meeting. Everyone has his own magic wand. N magic wands was put in a line, numbered from 1 to n(Wand_i owned by wizard_i). After the meeting, n wizards will take a wand one b...原创 2018-05-05 20:12:58 · 216 阅读 · 0 评论