摘要: http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1013 这是一个等比数列,所以先用求和公式,然后和3^(n+1)有关,有n比较大,所以用快速幂来解决,又有/2的操作,所以可以用费马小定理取逆元。 阅读全文
posted @ 2016-03-11 19:35 sweat123 阅读(161) 评论(0) 推荐(0)