大数运算
B题 HDU1060 Leftmost DigitTime Limit: 2000/1000 MS (Java/Others)??? Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 22158??? Accepted Submission(s): 8577 Problem Description Given a positive integer N,you should output the leftmost digit of N^N. Input The input contains several test cases. The first line of the input is a single integer T which is the number of test cases. T test cases follow. Output For each test case,you should output the leftmost digit of N^N. Sample Input
Sample Output
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |