
STL set
twh233
嘻嘻
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
codeforce 659B
659B #include using namespace std; #define LL long long #define INF 0x3f3f3f3 #define pi acos(-1) const int maxn=1e3+5; const int maxx=1e6+5; set >v[11111]; string s[111111]; int n,m,a[111111],原创 2017-01-02 17:04:28 · 309 阅读 · 0 评论 -
codeforce #387 D. Winter Is Coming
D. Winter Is Coming time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output The winter in Berland lasts n days. For原创 2016-12-21 17:23:12 · 317 阅读 · 0 评论 -
Codeforces Round #430 (Div. 2) C. Ilya And The Tree dfs+set
传送门 C. Ilya And The Tree time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Ilya is very fond o原创 2017-09-02 00:14:14 · 247 阅读 · 0 评论 -
Codeforces Round #437 (Div. 2 E. Buy Low Sell High 先买后卖 贪心
传送门 转自:点击打开链接 input 9 10 5 4 7 9 12 6 2 10 output 20 input 20 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 output 41 题意: 我们知道股票每一天的价格,当我们手中没有股票的时候不可以出售,问最后所能获得的最大价原创 2017-10-01 23:51:19 · 460 阅读 · 0 评论