爱笑往事

文章
8
资源
0
加入时间
3年1月8天

组合数模板(取模,大数)

#include <iostream>#include <bits/stdc++.h>#define maxn 200005typedef long long ll;using namespace std;const ll mod=998244353;ll fac[maxn],inv[maxn];ll pow_mod(ll a,ll n){ ll ...

POJ1177----Picture

PictureTime Limit: 2000MS Memory Limit: 10000KTotal Submissions: 10727 Accepted: 5662DescriptionA number of rectangular posters, photographs and other pictures of t

redis多机数据库的实现

两个redis服务器,让其中一个服务器变成另外一个服务器的从服务器,只要在从服务器上执行ALAVEOF命令,即可开始从主服务器同步数据到从服务器整个同步过程会遇到两个问题    1.同步操作是如何进行的。     2.如果主服务器的数据库状态被修改,导致了主从服务器的数据库状态出现不一致,如果让主从服务器的数据库重新回到一致状态。一、同步     同步的步骤分为以下几步: