
快速幂
云淡风轻jzl
一路脚踏实地,不忘仰望星空。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Coloring Game-快速幂
题目描述:David has a white board with 2×N grids.He decides to paint some grids black with his brush.He always starts at the top left corner and ends at the bottom right corner, where grids should be blac...原创 2019-04-21 09:18:42 · 221 阅读 · 0 评论 -
Leading and Trailing-求n^k的前三位和后三位-LightOJ1282
You are given two integers: n and k, your task is to find the most significant three digits, and least significant three digits of nk.InputInput starts with an integer T (≤ 1000), denoting the numbe...原创 2019-07-22 14:31:25 · 219 阅读 · 0 评论