ACM:组合数+乘法逆元
使用技能
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283##河南省2021CCPC 数学期望 (组合数学+乘法逆元)每个技能性质相同,只需求出一个技能的贡献值*m即可;枚举技能使用1--n次的贡献值,对于每个贡献值*m当前技能使用i次,则剩余(m-1)个技能,占用(n-i)个位置,#pragma GCC optimize(3,"Ofast","inline")#pragma comment(linker, "/STACK:1024000000,1024000000")#include<bits/stdc++.h>using namespace std;#define endl '\n'typedef long long ll; ty ...
ACM:线段树(创造乐曲)
创造乐趣
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104#pragma GCC optimize(3,"Ofast","inline")#pragma comment(linker, "/STACK:1024000000,1024000000")#include<bits/stdc++.h>using namespace std;#define endl '\n'typedef long long ll; #define int long long#define ld long doubleconst int N=100010;struct ...
ACM:线段树(2024杭电多校,单峰数列)
[单峰数列]https://acm.hdu.edu.cn/showproblem.php?pid=7463)!
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131#include<bits/stdc++.h>using namespace std;#define endl '\n'#define int long longconst int N=100010;int n,m,a[N];struct node{ int l,r; i ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment