- 博客(4)
- 收藏
- 关注
原创 快速幂
Time Limit: 1sec Memory Limit:256MBDescription输入a和b和p,输出(a^b)%p的值Input三个整数:a,b,p (2Output(a^b)%p的值Sample Input Copy sample input to clipboard2 3 5
2015-11-26 10:27:48
321
原创 Power
Time Limit: 1sec Memory Limit:256MBDescription You should write a program to calculate the power of 3. For example, given a positive integer n, you should calculate 3^n. Input
2015-11-26 10:23:42
515
原创 T-primes
Time Limit: 1sec Memory Limit:256MBDescriptionWe know that prime numbers are positive integers that have exactly two distinct positive divisors. Similarly, we'll call a positive integer t
2015-11-25 22:01:29
879
原创 Yaroslav and Permutations
Time Limit: 1sec Memory Limit:256MBDescription Yaroslav has an array that consists of n integers. In one second Yaroslav can swap two array elements. Now Yaroslav is wondering if
2015-11-25 21:42:25
346
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人