#include
using namespace std;
int n, m, tl, hed[505], mp[505], cnt, f[505], jb[505], pre[505];
int inx, vis[505];
struct node {
int v, nxt;
}e[500005];
void add(int u, int v) {
e[++tl].v = v;
e[tl].nxt = hed[u];
hed[u]...
class="markdown_views prism-github-gist">
题目描述
给一个数整数n,求sum{n%i} (1 b ? b : a;
}
inline int max_(int a, int b)
{
return a < b ? b : a;
}
int N, M;
int main()
{
#ifndef ONLINE_JUDGE
freopen("mod...