【数论】A - Leading and Trailing
A - Leading and Trailing
给定两个数n,k 求n^k的前三位和最后三位
Input:
Input starts with an integer T (≤ 1000), denoting the number of test cases.
Each case starts with a line containing two integers: n (2 ≤ n < 2...
原创
2019-09-07 04:29:46 ·
119 阅读 ·
0 评论