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 · 261 阅读 · 0 评论 -
codeforce #387 D. Winter Is Coming
D. Winter Is Comingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe winter in Berland lasts n days. For原创 2016-12-21 17:23:12 · 275 阅读 · 0 评论 -
Codeforces Round #430 (Div. 2) C. Ilya And The Tree dfs+set
传送门C. Ilya And The Treetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIlya is very fond o原创 2017-09-02 00:14:14 · 212 阅读 · 0 评论 -
Codeforces Round #437 (Div. 2 E. Buy Low Sell High 先买后卖 贪心
传送门转自:点击打开链接input910 5 4 7 9 12 6 2 10output20input203 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4output41题意:我们知道股票每一天的价格,当我们手中没有股票的时候不可以出售,问最后所能获得的最大价原创 2017-10-01 23:51:19 · 415 阅读 · 0 评论