python内置函数 Z
Python 解释器内置了很多函数和类型,任何时候都能使用。
Z
名称描述zip返回元组的迭代器。
zip(*iterables, strictFalse)
在多个迭代器上并行迭代,从每个迭代器返回一个数据项组成元组。
示例:
>>> for item in zip([…
C:dp以f[i]为根的时候能获得多少个节点,那么dp就是全部儿子里面找一个切掉,其他就是
f[v]的总和了
#include<bits/stdc.h>
using namespace std;
const int N 1e610,M2*N,mod1e97;
#define int long long
typedef long long LL;
typ…