08 2019 档案
摘要:icpc的老题了,最近学校oj调出来拿来在训练赛做了,比赛的时候跟队友讨论了两种做法,一种是for循环加树状数组(分析了分析时间复杂度感觉虽然会t,但是应该不存在那种故意卡的数据,就直接交了,没想到一下就过了,于是第二种做法就没有实践),然而没想到比赛刚一结束学长反手就交了这样的一组hack数据卡掉
阅读全文
摘要:问题 D: Tally Counters 题目描述 A number of tally counters are placed in a row. Pushing the button on a counter will increment the displayed value by one, o
阅读全文
摘要:Welcome Party 题目描述 The annual welcome party of the Department of Computer Science and Technology is coming soon! Many students have been applying to s
阅读全文
摘要:Valentine's Day 题目描述 Oipotato loves his girlfriend very much. Since Valentine's Day is coming, he decides to buy some presents for her.There are n pre
阅读全文
摘要:#define ls p<<1 #define rs p<<1|1 struct Seg { int p,l,r; ll sum,tag,mx; #define l(i) t[i].l #define r(i) t[i].r #define mx(i) t[i].mx #define tag(i)
阅读全文
摘要:最近心血来潮安装了linux系统后,本来打算使用Codeblocks (平时打ACM用的比较多),但是编译的时候一直报 ”It seems that this project has not been built yet.Do you want to build it now?"就很难受,百度找了很
阅读全文
摘要:Governing sand 传送门:https://ac.nowcoder.com/acm/contest/887/C来源:牛客网 题意:给了n种树,每种树的个数是p[i],高度是h[i],砍掉每个树花费是c[i]。要求最高的树要严格比总数目的一半多,问砍掉一些树使得条件满足的最小代价。 思路:这
阅读全文
摘要:template<class T> void read(T &res) { res = 0; char c = getchar(); T f = 1; while(c < '0' || c > '9') { if(c == '-') f = -1; c = getchar(); } while(c
阅读全文

浙公网安备 33010602011771号