摘要:
题目 "传送门" 思路 首先有一点必须明确 我们买这个人不是因为要满足他的要求,而是因为他便宜 对于$a_i==n$的情况 这些人明摆了就不想和你做朋友 所以你必须拿钱来买 考虑对解决$a_i$的需求 解决$a_i$的需求的时候, 所有的$a_j include include using name 阅读全文
摘要:
题目 思路 快速幂版题 代码 cpp include using namespace std; const int mod=200907; define int long long int t; int a,b,c,k; int qkpow(int a,int b) { if(b==0) retur 阅读全文