快速幂
凌晨四点的洛杉矶fly
这个作者很懒,什么都没留下…
展开
-
hdu5478
iven a prime number C(1≤C≤2×105)C(1≤C≤2×105), and three integers k1, b1, k2 (1≤k1,k2,b1≤109)(1≤k1,k2,b1≤109). Please find all pairs (a, b) which satisfied the equation ak1⋅n+b1ak1⋅n+b1 + bk2⋅n−k2+1bk2...原创 2019-01-16 10:27:31 · 174 阅读 · 0 评论 -
lightoj-1282
You are given two integers:nandk, your task is to find the most significant three digits, and least significant three digits ofnk. Input Input starts with an integerT (≤ 1000), denoting the num...原创 2019-03-20 15:24:36 · 171 阅读 · 0 评论 -
light oj 1213
If you think codes, eat codes then sometimes you may get stressed. In your dreams you may see huge codes, as I have seen once. Here is the code I saw in my dream. #include <stdio.h>intcases,c...原创 2019-03-20 19:29:25 · 106 阅读 · 0 评论 -
C - Lining Up(思维+快速幂)
Problem Statement There areNNpeople, conveniently numbered11throughNN. They were standing in a row yesterday, but now they are unsure of the order in which they were standing. However, each pers...原创 2019-05-27 20:36:24 · 391 阅读 · 0 评论