- 博客(7)
- 收藏
- 关注
原创 codeforces Alice and the list of presents
爱丽丝的礼物清单#include<iostream>const int A=1e9+7;using namespace std;int pow(int x,int n){ int result=1; while(n>0){ if(n%2==1) result=(1ll*result*x)%A; x=(1ll*x*x)%A;//乘以 1(long lon...
2019-10-18 17:27:05
143
原创 c语言实现x的n次方
**#include <stdio.h>const int MOD= 1e9 + 7;long x,n;long chooseAll = 1, doNotChoose1 = 1;long pow(long base, long power) {long result = 1;while(power > 0) {if(power % 2 == 1) { //判断p...
2019-10-18 16:52:35
3735
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人