摘要: "K Count the Buildings" 参考: "Count the Buildings" 思路可以借鉴,但是代码略有问题 写的时候 re 了 9 发,然后把变量定义的顺序换了一下居然 A 了,以为这个是个骚操作,最后才发现是真的会越界,当 f+b n+2 的时候就有可能会发生越界,而这种情 阅读全文
posted @ 2019-08-17 23:25 caoanda 阅读(161) 评论(0) 推荐(0) 编辑
摘要: $O(n^2)$: 阅读全文
posted @ 2019-08-17 18:42 caoanda 阅读(147) 评论(0) 推荐(0) 编辑
摘要: "Buy the Ticket" 参考: "Buy the Ticket" 上面博客中好像 n 和 m 的意思写反了,不过问题不大,反着输入就好了,题目中说 n 是 50 的人数,m 是 100 的人数,这里反了一下。另外还需要用到高精度。 公式(m 是 50 的人数,n 是 100 的人数): $ 阅读全文
posted @ 2019-08-17 10:07 caoanda 阅读(198) 评论(0) 推荐(0) 编辑
摘要: `from kuangbin` 包含了 `+ / ^ % = (istream&, BigNum&); friend ostream& operator(const BigNum & T)const; bool operator==(const BigNum & T)const; bool oper 阅读全文
posted @ 2019-08-17 09:47 caoanda 阅读(198) 评论(0) 推荐(0) 编辑