摘要:
Problem . 2 Input file: power.in Output file: power.out Time limit: 1 second Memory limit: 256 MB Mr. Ding 打算考一道比较显然的题目,低头一想,就有了这道题。Mr. Ding 需要你计算:3^n 阅读全文
摘要:
Problem 3. comb一天,Mr. Ding 对组合数产生了兴趣,他想要知道满足下面条件的数i 有多少个: gcd=( C( n , i ) , p ) = p ; 其中p 是素数。Input第1 行,2 个整数:n p。Output输出所求。Samplecomb.in comb.out5 阅读全文