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 < 231) and k (1 ≤ k ≤ 107). Output: For each case, print the case number and the three leading digits ...