该文被密码保护。 阅读全文
该文被密码保护。 阅读全文
摘要:
http://codeforces.com/contest/750/problem/D 题目大意: 放鞭炮,鞭炮会爆炸n次,每次只会往目前前进方向的左上和右上放出他的子鞭炮。问,最后能有多少格子被覆盖? 思路: 感觉是期末复习阶段太久没有敲代码了的缘故吧,记忆化搜索的状态找的都不准确了。 bfs,然 阅读全文
摘要:
http://codeforces.com/contest/750/problem/C 反正我不会这道题。。。为什么那么多人做出来了。。。我好菜.jpg 题目大意:cf每个人都有分数,每次都会在div2(<=1899)或者div1(>=1900)打比赛。有n个输入,每次输入ci和di,ci表示打了该 阅读全文
该文被密码保护。 阅读全文
摘要:
http://codeforces.com/contest/583/problem/D 原题:You are given an array of positive integers a1, a2, ..., an × T of length n × T. We know that for any i 阅读全文
摘要:
const LL mod = 1e9 + 7; LL fac[maxn]; LL mypow(LL val, LL n){ LL ans = 1; while (n){ if (n & 1) ans = ans * val % mod; n >>= 1; val = val * val % mod; } retur... 阅读全文