- 博客(5)
- 资源 (4)
- 收藏
- 关注
原创 hdu5597GTW likes function 欧拉函数
#include #include #include using namespace std ; typedef long long ll ; ll Euler(ll n) { ll rea = n ; for(ll i = 2;i*i <= n;i++) { if(n%i == 0) rea -= rea/i ; while
2015-12-12 21:45:10 603
原创 hdu5593ZYB's Tree 树形dp
#include #include #include #include using namespace std ; const int maxn = 5e5+10; typedef long long ll ; int dp[maxn][12]; int ans[maxn][12]; int n , k ; vector vec[maxn] ; void dfs(int u){ for(
2015-12-12 21:28:09 419
原创 hdu5596GTW likes gt stl set
#include #include #include #include using namespace std ; const int maxn = 50000+10 ; multiset se[2] ; int id[maxn] ; int b[maxn] ; int c[maxn] ; int main() { int t ; scanf("%d" , &t) ; wh
2015-12-12 21:26:53 476
原创 bestcoder#65ZYB's Premutation 树状数组+二分
#include #include #include using namespace std ; const int maxn = 50010 ; int tree[maxn] ; int n ; int getsum(int x){ int sum = 0 ; while(x){ sum += tree[x] ; x -= x&(-x) ; }
2015-12-05 21:26:43 549
原创 hdu5586Sum
#include #include #include using namespace std ; const int mod = 10007 ; const int maxn = 1e5+10 ; int a[maxn] ; int b[maxn] ; int s[maxn] ; int main() { int n ; while(~scanf("%d" , &n)){
2015-12-05 17:28:30 309
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人