anthony1314
anthony1314
全部文章
分类
acm(40)
ACM题目和算法(130)
C++(1)
codeforces(1)
DP(1)
hdu(1)
Java(4)
Linux(2)
Maven(1)
MySQL(1)
OJ----codeforces(6)
OJ----hdu(4)
OJ----POJ(1)
OJ----牛客(1)
poj(1)
Python(2)
Web(3)
二分算法(1)
动态规划(1)
数据库(1)
数据结构----树状数组(1)
未归档(55)
比赛----2019暑假hdu多校(1)
牛客(1)
软件工程(1)
随笔(1)
归档
标签
去牛客网
登录
/
注册
top500acm菜鸡
我是个弟弟
全部文章
(共263篇)
树状数组模板
// 单点更新区间求和 树状数组 #include<bits/stdc++.h> using namespace std; #define ll long long int n,c[1000010]; int lowbit(int x){ return x&(-x);...
2018-07-28
0
381
2018 Multi-University Training Contest 2 ---- hdu6318 Swaps and Inversions【离散化+归并排序】
Swaps and Inversions Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1070 Accepted Submis...
2018-07-26
0
671
2018 Multi-University Training Contest 2 ---- hdu6318 Swaps and Inversions【离散化+归并排序】
Swaps and Inversions Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1070 Accepted Submis...
2018-07-26
0
0
2018 Multi-University Training Contest 2-----hdu6313Hack It【构造题】
Hack It Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 668 Accepted Sub...
2018-07-26
0
404
2018 Multi-University Training Contest 2-----hdu6313Hack It【构造题】
Hack It Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 668 Accepted Sub...
2018-07-26
0
326
2018 Multi-University Training Contest 2 ---------hdu 6315 Naive Operations【线段树】
Naive Operations Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 502768/502768 K (Java/Others) Total Submission(s): 853 Accepted Submissio...
2018-07-26
0
386
2018 Multi-University Training Contest 2 ---------hdu 6315 Naive Operations【线段树】
Naive Operations Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 502768/502768 K (Java/Others) Total Submission(s): 853 Accepted Submissio...
2018-07-26
0
347
2018 Multi-University Training Contest 1 ------ 1002 hdu6299 Balanced Sequence【贪心】
Balanced Sequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2802 Accepted Submissio...
2018-07-24
0
353
2018 Multi-University Training Contest 1 ------ 1002 hdu6299 Balanced Sequence【贪心】
Balanced Sequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2802 Accepted Submissio...
2018-07-24
0
382
2018 Multi-University Training Contest 1 ------ 1004 hdu6301 Distinct Values【贪心+优先队列】
题意: 给出一个数组大小,这个数组里面所有的数范围从 1到100000,这个数组有这样一个规则,某个子区间内的所有数必须不相同,求按字典序最小输出这个数组。 解法: 贪心+优先队列 先把所有区间按前端进行排序,再按后端进行排序,进行遍历,每次把前面区间用过的数字但现在遍历的区间没覆盖的数存进...
2018-07-24
0
395
首页
上一页
18
19
20
21
22
23
24
25
26
27
下一页
末页