
快速幂
文章平均质量分 92
詹明捷
此博客停止更新,迁移至www.zhanmingjie.com
展开
-
数论+快速幂 SRM 661 Div1 450: ColorfulLineGraphs
You are given the longs N and K. You are also given an int M. Compute and return the number of different graphs Bob may construct, modulo M.原创 2015-08-02 21:45:13 · 935 阅读 · 0 评论 -
埃氏筛法+快速幂+dp SRM 660 Div 2 Hard: Powerit
You are given three ints: n, k, and m. For each i between 1 and n, inclusive, Fox Ciel calculated the number i^(2^k - 1). ("^" denotes exponentiation.) Return the sum of all numbers Fox Ciel calculated, modulo m.原创 2015-08-03 21:31:30 · 781 阅读 · 0 评论