![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法训练 之 数学
囧九
大学萌新
展开
-
A - A^B Mod C
给出3个正整数A B C,求A^B Mod C。 例如,3 5 8,3^5 Mod 8 = 3。 Input 3个正整数A B C,中间用空格分隔。(1 <= A,B,C <= 10^9) Output 输出计算结果 Sample Input 3 5 8 ...原创 2018-03-14 19:56:04 · 270 阅读 · 0 评论 -
B - n^n的末位数字
给出一个整数N,输出N^N(N的N次方)的十进制表示的末位数字。 Input 一个数N(1 <= N <= 10^9) Output 输出N^N的末位数字 Sample Input 13 Sample Output 3#incl...原创 2018-03-14 19:57:19 · 151 阅读 · 0 评论 -
C - Big Number HDU - 1212
As we know, Big Number is always troublesome. But it's really important in our ACM. And today, your task is to write a program to calculate A mod B. To make the problem easier, I promise that B will ...原创 2018-07-30 20:23:06 · 112 阅读 · 0 评论 -
A - Will he Die? Gym - 101778A
Unfortunately, Conan is in a real danger! Conan discovered who is the killer after searching for the evidence in a dangerous cave. Now, he is standing in front of a bomb that about to explode. The bom...原创 2018-09-05 16:52:08 · 222 阅读 · 0 评论 -
C - Recursive sequence HDU - 5950
Farmer John likes to play mathematics games with his N cows. Recently, they are attracted by recursive sequences. In each turn, the cows would stand in a line, while John writes two positive numbers a...原创 2018-09-12 09:38:56 · 235 阅读 · 0 评论